notes/pl/py/libfws/ml/pandas/features/indexing.txt
Ihar Hancharenka 5dff80e88e first
2023-03-27 16:52:17 +03:00

23 строки
592 B
Plaintext

https://pandas.pydata.org/pandas-docs/stable/indexing.html
https://pandas.pydata.org/pandas-docs/stable/advanced.html
https://www.datacamp.com/community/tutorials/pandas-multi-index
https://pandas.pydata.org/pandas-docs/stable/cookbook.html#cookbook-multi-index
https://pandas.pydata.org/pandas-docs/stable/generated/pandas.Index.html
https://pandas.pydata.org/pandas-docs/stable/visualization.html#subplots
df.sort_index(
by='column_name',
inplace=True,
)
df
.index
.unstack().index
dfr = pd.DataFrame(df.unstack())
droplevel
dfr.columns = dfr.columns.droplevel(0)