Skip to content

Instantly share code, notes, and snippets.

@buty4649
Created February 4, 2021 04:59
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 buty4649/f6b4a2839f3825682306372522604d17 to your computer and use it in GitHub Desktop.
Save buty4649/f6b4a2839f3825682306372522604d17 to your computer and use it in GitHub Desktop.
>>> pd = pd.DataFrame({'a':[1,2,3], 'b':[10,20,30], 'c':[100,200,300]}
>>> pd["a"]
0 1
1 2
2 3
Name: a, dtype: int64
>>> pd["a"].head(1)
0 1
Name: a, dtype: int64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment