-1

I have pandas series of type int. I am trying to get a smooth curve rather than a zig-zag structure.

Here is the image link

I saw some previous posta about the same problem but they are smoothing the curve with ( x vs y ) plot whereas in my case I have only a pandas series i.e X axis.

I need a curvy smooth plot.

This is the post which I am referring to.

petezurich
  • 9,280
  • 9
  • 43
  • 57

1 Answers1

0

You have exp in y-axis. You can simply generate another series of 1,2,... for x-axis.

l=[i fo i in range(exp.shape[0])]
series_for_x_axis=pd.Series(l)

There you have values for both x and y axis.

Dimanjan
  • 563
  • 6
  • 13