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

hide pytables naming NatrualNameWarnings #8

Open
kain88-de opened this issue May 6, 2016 · 3 comments
Open

hide pytables naming NatrualNameWarnings #8

kain88-de opened this issue May 6, 2016 · 3 comments
Assignees
Milestone

Comments

@kain88-de
Copy link
Contributor

I have a dataframe containing names like out-99. This means I can't use it as a python attribute name in pandas and neither in pytables. Saving the treant pytables gives an annoying NaturalNameWarning: object name is not a valid Python identifier: 'out-99_dtype' .... Since this is only internally handled by datreant it would be good to silence those warnings.

@dotsdl
Copy link
Member

dotsdl commented May 6, 2016

Agreed. However, note that using names like this make it impossible to retrieve subselections of rows based on column criteria using the where keyword on data.retrieve. Happy to silence it, but that's most of what that warning means for users.

@kain88-de
Copy link
Contributor Author

We can silence it and issue our own warning that this will result in problems using where with data.retrieve. From the pytables warning there is no clue what the consequence is for a datreant user.

@dotsdl
Copy link
Member

dotsdl commented May 6, 2016

This is a good solution. We'll do that.

@dotsdl dotsdl self-assigned this May 6, 2016
@dotsdl dotsdl added this to the 0.7.0 milestone May 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants