I am trying to plot a pandas Series with a line.
These lines produce the output shown and a scatter plot.
import pandas as pd
print(pd.__version__)
...
print(type(sam))
print(sam)
sam.plot(kind='line');
0.25.3
<class 'pandas.core.series.Series'>
3300 0.87
3301 0.87
3302 0.87
3303 0.87
3304 0.87
Name: A, dtype: float64
<<SCATTER PLOT>>
I was not able to create a line plot by any means with Series.plot.
What is the correct way of doing it?
PS: I can conceive workarounds, like creating new np arrays, lists, etc.
But I guess this should work right away.
PS2: I am using Jupyter Lab under Chrome from PortableApps.
Strange thing, in one tab in the lab (with few things), the lines above produce a line plot, in another tab (with sklearn loaded), it produces a scatter plot.
I will experiment a little further.
