Plotting CDF of a pandas series in python

后端 未结 7 1144
情话喂你
情话喂你 2020-12-23 09:25

Is there a way to do this? I cannot seem an easy way to interface pandas series with plotting a CDF.

7条回答
  •  南方客
    南方客 (楼主)
    2020-12-23 09:45

    This is the easiest way.

    import pandas as pd
    df = pd.Series([i for i in range(100)])
    df.hist( cumulative = True )
    

    Image of cumulative histogram

提交回复
热议问题