text_html_output_1.png
import matplotlib.dates as mdates

import matplotlib.pylab as plt

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

dfpub = pd.read_csv('/kaggle/input/academic-publications-and-journals/wiki_query_22_12_2020.csv', encoding='iso-8859-1')

array = {}
for c in dfpub['browsing_date']:
    if '1601' in c:
        continue
    today = c.split()[0]
    array[today] = 1 if today not in array else array[today] + 1

x = list(array.keys())
y = list(array.values())
df_plot = pd.DataFrame()
df_plot['x'] = x
df_plot['y'] = y
df_plot.index = x

plt.figure(figsize=(15, 6))
plt.bar(pd.to_datetime(df_plot['x']), df_plot['y'])
ax = plt.gca()
ax.xaxis.set_major_locator(mdates.DayLocator(interval=13))
ax.xaxis.set_major_formatter(mdates.DateFormatter('%d-%m-%Y'))
plt.gcf().autofmt_xdate()
plt.show()