ZhangZhihui's Blog |
|
||
2022年1月7日
摘要:
import pandas as pd df = pd.DataFrame([[2001, 'D', 2], [2004, 'T', 3], [2003, 'T', 5], [2001, 'T', 4], [2004, 'D', 7]], columns=['year', 'type', 'cnt' 阅读全文
摘要:
print(df_year_month) print(' ') print(df_year_month.index) print(df_year_month.index.tolist()) print(' ') print(df_year_month.index.levels[0]) print(d 阅读全文
|
Copyright © 2024 ZhangZhihuiAAA
Powered by .NET 9.0 on Kubernetes |