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.