Advertisement
Guest User

pandas

a guest
Jun 29th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. # Import the data set into a Panda data frame
  2. import pandas as pd
  3. from io import StringIO
  4. import requests
  5.  
  6. act = requests.get('https://docs.google.com/spreadsheets/d/1udJ4nd9EKlX_awB90JCbKaStuYh6aVjh1X6j8iBUXIU/export?format=csv')
  7. dataact = act.content.decode('utf-8') # To convert to string for Stringio
  8. frame = pd.read_csv(StringIO(dataact))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement