Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created November 8, 2020 06:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/6e0f0087864e152db2cc43cb473cfae7 to your computer and use it in GitHub Desktop.
Save amankharwal/6e0f0087864e152db2cc43cb473cfae7 to your computer and use it in GitHub Desktop.
data = pd.DataFrame(df['landmark_id'].value_counts())
#index the data frame
data.reset_index(inplace=True)
data.columns=['landmark_id','count']
print(data.head(10))
print(data.tail(10))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment