INNER CODE UNIT · Python

_skim_computation

aeturrell/skimpy · src/skimpy/__init__.py:651

def _skim_computation(
    df_in: pd.DataFrame,
) -> tuple[Table, JSON]:
    """Performs the under-the-hood summary statistics.

    Args:
        df_in (pd.DataFrame): Input pandas dataframe to create a summary of.

    Returns:
        tuple[Table, JSON]: Rich table grid to print to console, JSON of summary stats.
    """
    if hasattr(df_in, "name") and "name" not in df_in.columns:
        name = str(df_in.name)
    else:
        name = "Dataframe"

    # Make a copy so as not to mess with dataframe
    df = df_in.copy()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…