Last active
September 3, 2018 22:17
-
-
Save hazelement/01845a0288ed9409ae632d0d44dac8de to your computer and use it in GitHub Desktop.
Python iterrate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pandas dataframe | |
for index, row in df.iterrows(): | |
print row['c1'], row['c2'] | |
# dictionary | |
for key, value in d.iteritems(): | |
print(key, value) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment