Plotting CDF of a pandas series in python
问题 Is there a way to do this? I cannot seem an easy way to interface pandas series with plotting a CDF. 回答1: I believe the functionality you're looking for is in the hist method of a Series object which wraps the hist() function in matplotlib Here's the relevant documentation In [10]: import matplotlib.pyplot as plt In [11]: plt.hist? ... Plot a histogram. Compute and draw the histogram of *x*. The return value is a tuple (*n*, *bins*, *patches*) or ([*n0*, *n1*, ...], *bins*, [*patches0*,