столбец, тики и метки года для каждого тика.
Вот код:
Код: Выделить всё
import matplotlib.pyplot as plt
df3 = df2.head(5)
fig, ax = plt.subplots(figsize=(5, 5))
ax.plot(df3.datetimeParse, [0,]* len(df3), "-o", color="black")
ax.set_xticks(pd.date_range(
min(df3["datetimeParse"])
,max(df3["datetimeParse"])
, freq="YS")
,range(int(min(df3["datetimeParse"]).year)
,int(max(df3["datetimeParse"]).year)))
ax.yaxis.set_visible(False)
plt.show()
Код: Выделить всё
df3["datetimeParse"]пока что я получаю вот что:

Подробнее здесь: https://stackoverflow.com/questions/790 ... -specified