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

Default groups are integers but occasionally expected to be strings #192

Open
jonahpearl opened this issue Dec 1, 2021 · 0 comments
Open
Labels
bug Something isn't working

Comments

@jonahpearl
Copy link

In the analysis-visualization notebook, in the cell for exporting TM's:
group_index = next(i for i, g in enumerate(group) if g == selected_group)
and for me, group is defaults [0, 1, 2, 3, 4, 5, 6].

But then later in the same cell:
group_trans.to_csv(join(save_path, selected_group + '_trans.csv'), index=False)
fails because it can't add an int to a string.

Simple fix: add str() here. But maybe double check to make sure this dual conventioning isn't happening elsewhere.

@jonahpearl jonahpearl added the bug Something isn't working label Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant