.. _f-tableformula: module ``mlhelper.table_formula`` ================================= .. inheritance-diagram:: pyensae.mlhelper.table_formula Short summary +++++++++++++ module ``pyensae.mlhelper.table_formula`` Adds functionalities to a dataframe. :githublink:`%|py|6` Classes +++++++ +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | class | truncated documentation | +=====================================================================+=====================================================================================================================+ | :class:`TableFormula ` | Extends class :epkg:`pandas:DataFrame` or proposes extensions to existing functions using lambda functions. See ... | +---------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ Properties ++++++++++ +----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------+ | property | truncated documentation | +====================================================================================================+==============================================================================================================================+ | :py:meth:`_can_fast_transpose ` | Can we transpose this DataFrame without creating any new array objects. | +----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------+ | :py:meth:`_constructor ` | | +----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------+ | :py:meth:`_data ` | | +----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------+ | :py:meth:`_info_axis ` | | +----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------+ | :py:meth:`_is_homogeneous_type ` | Whether all the columns in a DataFrame have the same type. Returns ------- bool See Also ... | +----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------+ | :py:meth:`_is_mixed_type ` | | +----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------+ | :py:meth:`_is_view ` | Return boolean indicating if self is view of another array | +----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------+ | :py:meth:`_series ` | | +----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------+ | :py:meth:`_stat_axis ` | | +----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------+ | :py:meth:`_values ` | Analogue to ._values that may return a 2D ExtensionArray. | +----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------+ | :meth:`at ` | Access a single value for a row/column label pair. Similar to ``loc``, in that both provide label-based lookups. ... | +----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------+ | :meth:`attrs ` | Dictionary of global attributes of this dataset. | +----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------+ | :meth:`axes ` | Return a list representing the axes of the DataFrame. It has the row axis labels and column axis labels as the ... | +----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------+ | :meth:`dtypes ` | Return the dtypes in the DataFrame. This returns a Series with the data type of each column. The result's ... | +----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------+ | :meth:`empty ` | Indicator whether Series/DataFrame is empty. True if Series/DataFrame is entirely empty (no items), meaning any ... | +----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------+ | :meth:`flags ` | Get the properties associated with this pandas object. The available flags are | +----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------+ | :meth:`iat ` | Access a single value for a row/column pair by integer position. Similar to ``iloc``, in that both provide integer-based ... | +----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------+ | :meth:`iloc ` | Purely integer-location based indexing for selection by position. ``.iloc[]`` is primarily integer position based ... | +----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------+ | :meth:`loc ` | Access a group of rows and columns by label(s) or a boolean array. ``.loc[]`` is primarily label based, but may ... | +----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------+ | :meth:`ndim ` | Return an int representing the number of axes / array dimensions. Return 1 if Series. Otherwise return 2 if DataFrame. ... | +----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------+ | :meth:`shape ` | Return a tuple representing the dimensionality of the DataFrame. See Also -------- ndarray.shape ... | +----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------+ | :meth:`size ` | Return an int representing the number of elements in this object. Return the number of rows if Series. Otherwise ... | +----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------+ | :meth:`style ` | Returns a Styler object. Contains methods for building a styled HTML representation of the DataFrame. ... | +----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------+ | :meth:`T ` | The transpose of the DataFrame. Returns ------- DataFrame The transposed DataFrame. ... | +----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------+ | :meth:`values ` | Return a Numpy representation of the DataFrame. | +----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------+ Methods +++++++ +-------------------------------------------------------------------------------------------+------------------------------------------------------------------+ | method | truncated documentation | +===========================================================================================+==================================================================+ | :meth:`add_column_index ` | Changes the index. | +-------------------------------------------------------------------------------------------+------------------------------------------------------------------+ | :meth:`add_column_vector ` | Adds a column knowing its name and a vector of values. | +-------------------------------------------------------------------------------------------+------------------------------------------------------------------+ | :meth:`addc ` | Adds a column knowing its name and a lambda function. | +-------------------------------------------------------------------------------------------+------------------------------------------------------------------+ | :meth:`fgroupby ` | Groups information based on columns defined by lambda functions. | +-------------------------------------------------------------------------------------------+------------------------------------------------------------------+ | :meth:`graph_XY ` | | +-------------------------------------------------------------------------------------------+------------------------------------------------------------------+ | :meth:`sort ` | Sorts rows based on the values returned by *function_sort*. | +-------------------------------------------------------------------------------------------+------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: pyensae.mlhelper.table_formula :members: :special-members: __init__ :show-inheritance: