bigframes.geopandas.GeoSeries.hist#
- GeoSeries.hist(by: Sequence[str] | None = None, bins: int = 10, **kwargs)#
Draw one histogram of the DataFrame’s columns.
A histogram is a representation of the distribution of data. This function groups the values of all given Series in the DataFrame into bins and draws all bins in one
matplotlib.axes.Axes. This is useful when the DataFrame’s Series are in a similar scale.Examples:
>>> import bigframes.pandas as bpd >>> df = bpd.DataFrame(np.random.randint(1, 7, 6000), columns=['one']) >>> df['two'] = np.random.randint(1, 7, 6000) + np.random.randint(1, 7, 6000) >>> ax = df.plot.hist(bins=12, alpha=0.5)
- Parameters:
- Returns:
matplotlib.AxesSubplot: A histogram plot.
- Return type:
class