Skip to content

Instantly share code, notes, and snippets.

@yptheangel
Last active December 16, 2020 09:45
Show Gist options
  • Save yptheangel/27caa2223c9f62b36d41f5fc2a4f00ec to your computer and use it in GitHub Desktop.
Save yptheangel/27caa2223c9f62b36d41f5fc2a4f00ec to your computer and use it in GitHub Desktop.
cheatsheet for pandas
  1. iterate through rows of a dataframe
for index, row in df.iterrows():
    print(row['yourcolumnkey1'], row['yourcolumnkey2'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment