bpw_pde package
Module contents
Top-level bpw_pde package.
Submodules
bpw_pde.common module
Common functions used across the index, series, and dataframe modules.
- bpw_pde.common.clean_name(name: str) str[source]
Applies lowercasing, whitespace tokenization, and rejoining tokens with underscore to
name.- Parameters
name – The name to be cleaned.
- Returns
The cleaned name.
bpw_pde.dataframe module
Module for the pandas.DataFrame accessor class.
- class bpw_pde.dataframe.DataframeAccessor(df: pandas.core.frame.DataFrame)[source]
Bases:
objectAccessor class for
pandas.DataFrame.- property clean_names: pandas.core.frame.DataFrame
Applies
bpw_pde.common.clean_name()to all column names of the capturedpandas.DataFrame.- Returns
A copy of the captured
pandas.DataFramewith cleaned column names.
- freq(*args, **kwargs)[source]
Alias to
sidetable.SideTableAccessor.freq().- Parameters
args –
argsforwarded tosidetable.SideTableAccessor.freq().kwargs –
kwargsforwarded tosidetable.SideTableAccessor.freq().
- Returns
The result of calling
sidetable.SideTableAccessor.freq()on the capturedpandas.DataFrame.
- property msno
Adapted missingno interface to work as a nested accessor.
- Returns
An adapter class that provides access to the functions in missingno.
- samp(n: int = 5) pandas.core.frame.DataFrame[source]
Transposed random sample of the captured
pandas.DataFrame.It is common want to take a quick look at a couple of random samples of rows from a
pandas.DataFrameand have it all fit on screen without mucking with pandas display settings. This usually does a better job of that than just callingpandas.DataFrame.sample()alone.- Parameters
n – The number of rows to sample, defaults to 5.
- Returns
A random sample of the captured
pandas.DataFramerows transposed.
- property stb
Alias to sidetable
pandas.DataFrameaccessor stb.- Returns
The stb accessor on the captured
pandas.DataFrame.
bpw_pde.index module
Module for the pandas.Index accessor class.
Currently, this module has no useful functionality.
bpw_pde.series module
Module for the pandas.Series accessor class.
- class bpw_pde.series.SeriesAccessor(series: pandas.core.series.Series)[source]
Bases:
objectAccessor class for
pandas.Series.- property clean_name: pandas.core.series.Series
Applies
bpw_pde.common.clean_name()to the name of the capturedpandas.Series.- Returns
A copy of the captured
pandas.Serieswith a cleaned name.
- property hashify: pandas.core.series.Series
Applies
bpw_pde.common.md5()to the capturedpandas.Series.- Returns
A copy of the captured
pandas.SeriesMD5 hashes.