📜  名称“md”未定义 md.DateFormatter - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:53.857000             🧑  作者: Mango

代码示例1
import matplotlib.dates as mdates
import matplotlib.pyplot as plt
import pandas as pd 

fig = plt.figure(figsize = (10,6))
ax = fig.add_subplot(111)

ax.xaxis.set_major_formatter(mdates.DateFormatter('%Y-%m'))

basicDF['some_column'].plot(ax=ax, kind='bar', rot=75)

ax.xaxis_date()