Pandas Plot A Repeating Dataframe
I'm trying to graph a pandas dataframe that contains 2 columns as shown below: For i in data1: for j in data2: traces.append( go.Scatter( x=df['
Solution 1:
Basically, you need to plot each three lines separately:
ax = plt.axes()
df['span'] = df.index // 3 # Assign identical markers to each span
df.groupby('span').apply(lambda x: x.plot(x='A', y='B', legend=False, ax=ax)
plt.show() # If not in ipython
Post a Comment for "Pandas Plot A Repeating Dataframe"