Skip to content

Instantly share code, notes, and snippets.

@sergiolucero
Created April 15, 2020 02:16
Show Gist options
  • Select an option

  • Save sergiolucero/76d41f8d99397ed9c2012111880ff011 to your computer and use it in GitHub Desktop.

Select an option

Save sergiolucero/76d41f8d99397ed9c2012111880ff011 to your computer and use it in GitHub Desktop.
Como leer Torero desde Pandas
import json, pandas as pd
df = pd.read_json('twitter_premium_api_Lemebel.json', orient = 'records', lines = True)
df.head()
@sergiolucero
Copy link
Copy Markdown
Author

image

@sergiolucero
Copy link
Copy Markdown
Author

Desde Google Colab puedes bajar tu data por ejemplo diciendo
pd.read_csv('s3://bucketdegregorio/carpeta/torero.csv')

@sergiolucero
Copy link
Copy Markdown
Author

df.sort_values('retweet_count',ascending=False).head(20)[['text','id','retweet_count']]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment