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

bugfix/view_ranges #436

Merged
merged 4 commits into from
Jul 27, 2022
Merged

bugfix/view_ranges #436

merged 4 commits into from
Jul 27, 2022

Conversation

Ksteeds
Copy link
Contributor

@Ksteeds Ksteeds commented Jul 19, 2022

Groupby the union, across categories, of cross-sections.

@Ksteeds Ksteeds requested a review from rsueppel July 19, 2022 11:54
@Ksteeds Ksteeds self-assigned this Jul 19, 2022
@Ksteeds
Copy link
Contributor Author

Ksteeds commented Jul 19, 2022

Subtle fix on ordering of the cross-sections on the x-axis.

@Ksteeds Ksteeds linked an issue Jul 19, 2022 that may be closed by this pull request
if ylab is None:
ylab = ""

if sort_cids_by == 'mean':
dfx = df[df['xcat'] == xcats[0]].groupby(['cid'])[val].mean()
dfx = dfd.groupby(['cid'])[val].mean()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where does dfd come from? Also, what category's mean is the basis of the order?
The only solution seeems to be to order by first category, as before, but append any other cids that are not in order alphabetically,

Copy link
Contributor

@rsueppel rsueppel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see comment line 59.

@Ksteeds Ksteeds merged commit 43b35ba into develop Jul 27, 2022
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

Successfully merging this pull request may close these issues.

view_ranges: does not show all of multiple xcats in 0.0.11
2 participants