SeriesΒΆ
Summary of Series methods for babypandas. Series are one-dimensional arrays with labeled indices.
Click a method to see its documentation.
Creation
Series.__init__(**kwargs) |
Create an empty Series. |
Selection
Series.take(indices) |
Return the elements in the given positional indices. |
Series.sample([n, replace, random_state]) |
Return a random sample of elements from a Series. |
Transformation
Series.apply(func) |
Invoke function on values of Series. |
Series.sort_values(*[, ascending]) |
Sort by the values. |
Series.describe() |
Generate descriptive statistics. |
Series.reset_index(*[, drop]) |
Reset the index. |
Plotting
Series.plot(*args, **kwargs) |
Series plotting accessor and method. |
IO
Series.to_csv([path_or_buf, index]) |
Write object to a comma-separated values (csv) file. |
Series.to_numpy() |
A NumPy ndarray representing the values in this Series or Index. |
Calculations
Series.count() |
Return number of non-NA/null observations in the Series. |
Series.mean() |
Return the mean of the values for the requested axis. |
Series.median() |
Return the median of the values for the requested axis. |
Series.min() |
Return the minimum of the values in the Series. |
Series.max() |
Return the maximum of the values in the Series. |
Series.sum() |
Return the sum of the values in the Series. |
Series.abs() |
Return a Series with absolute numeric value of each element. |