typeddfs._pretty_dfsο
Defines a DataFrame with simple extra functions like column_names.
Module Contentsο
- class typeddfs._pretty_dfs.PrettyDfο
A DataFrame with an overridden
_repr_html_and some simple additional methods.- property _constructor_expanddim(self)ο
- column_names(self) List[str]ο
Returns the list of columns.
- Returns
A Python list
- index_names(self) List[str]ο
Returns the list of index names. Unlike
self.index.names, returns[]instead of[None]if there is no index.- Returns
A Python list
- is_multindex(self) boolο
Returns whether this is a
pd.MultiIndex.
- n_columns(self) intο
Returns the number of columns.
- n_indices(self) intο
Returns the number of index names.
- n_rows(self) intο
Returns the number of rows.