Open vojtech-filipec opened 4 days ago
Thank you for raising this!
I think there are two potential approaches to take here. One would be to ignore columns that only consist of "None". Another would be to give special treatment to columns of type Object, much as every other data type gets (this is what columns with only None have as their type). Interested in your thoughts on whether it's useful to have a section on any None-only columns.
Note to self: this error happens because the if/else part of _infer_datatypes()
has no clause to catch a column of None, because that has type object, which is not currently featured.
When your dataset contains purely nulls in the first column the
skim()
method throws the Unbound LocalError.I think this is very relevant if you download a sample from a database, and by chance the first column contains only None.
Example code:
Output:
skimpy==0.0.15 Python 3.9.6