Skip to content

add_analysis no longer works #413

@paddymul

Description

@paddymul

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of Buckaroo.

What type of jupyter notebook were you using (VSCode notebook, google colab, Jupyter Lab, Jupyter notebook). Select multiple if you can reproduce this in multiple environments. If other, please add to description.

Other (please describe in Issue Description)

Reproducible example

class Quin99Analysis(StylingAnalysis):
    provides_defaults = {'quin99': None}

    @staticmethod
    def series_summary(sampled_ser, ser):
        if pd.api.types.is_numeric_dtype(ser) and not pd.api.types.is_bool_dtype(ser):
            return dict(
                quin99=ser.quantile(.99))
        return {}
    
    pinned_rows = [{'primary_key_val': 'quin99', 'displayer_args': {'displayer': 'obj' }},
                  {'primary_key_val': 'dtype', 'displayer_args': {'displayer': 'obj'}},
                  ]
    df_display_name = 'quin99'
    data_key = "empty"  # the non pinned rows will pull from the empty dataframe
pbw = BuckarooWidget(df)
pbw.add_analysis(Quin99Analysis)

Issue description

bw.add_analysis() should work

Expected behavior

Installed versions

Details ``` Replace this line with the output of buckaroo.debug_packages(). Leave the backticks in place. ```

Jupyter Log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions