Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify Query 15 renaming logic #194

Open
ChrisJar opened this issue Mar 15, 2021 · 0 comments
Open

Simplify Query 15 renaming logic #194

ChrisJar opened this issue Mar 15, 2021 · 0 comments

Comments

@ChrisJar
Copy link
Contributor

Currently query 15 relies on a column renaming to both map the column names to new names and to flatten from a multi-index to a single level index. i.e.

regression_groups.columns = regression_groups.columns.map(
        {
            ("x", "count"): "count_x",
            ("x", "sum"): "sum_x",
            ("xx", "sum"): "sum_xx",
            ("xy", "sum"): "sum_xy",
            ("y", "count"): "count_y",
            ("y", "sum"): "sum_y",
        }
    )

It'd be great to simplify the logic leading up to this to avoid relying on complex index naming changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant