【发布时间】:2017-04-23 19:22:44
【问题描述】:
如何阻止 pandas 将 csv 中按时间顺序排列的数据转换为字母顺序(就像我当前的情节一样)。这是我正在使用的代码:
import seaborn as sns
df = pd.read_csv("C:/Users/Paul/Desktop/calendar.csv")
df2 = df.pivot("Month", "Year", "hPM2.5")
ax = sns.heatmap(df2, annot=True, fmt="d")
【问题讨论】:
-
设为日期时间?
标签: python-3.x pandas matplotlib seaborn