import pandas as pd
import matplotlib.pyplot as plt
%matplotlib inline
df = pd.read_csv("data.csv", index_col='index')
df.index=pd.to_datetime(df.index,format='%Y%m')
df.groupby("to_network")['count'].plot()
to_network net_1 Axes(0.125,0.125;0.775x0.775) net_2 Axes(0.125,0.125;0.775x0.775) net_3 Axes(0.125,0.125;0.775x0.775) Name: count, dtype: object