-
To count occurrences when aggregating (e.g. in
pivot_table
), uselen
asaggfunc
! -
To drop a row: Cheatsheet
df[df.name != 'Tina']
df.drop(df.index[2])
-
c['a'].shift(periods=1)
Last active
May 9, 2018 09:11
-
-
Save vegarsti/e598ec9844ca2311be8765c7fca0224d to your computer and use it in GitHub Desktop.