Last active
November 1, 2019 09:09
-
-
Save kzinmr/36cf0c6714625e344a2ac8d9bde3a9a6 to your computer and use it in GitHub Desktop.
[1](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.set_index.html) -> [2](https://stackoverflow.com/questions/25929319/how-to-iterate-over-pandas-multiindex-dataframe-using-index)
This file contains hidden or 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
df = df.set_index('date') | |
for date, new_df in df.groupby(level=0): | |
print(new_df) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment