cosimameyer / overviewpy

💡 Easily Extracting Information About Your Data in Python
https://cosimameyer.github.io/overviewpy
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Overview_tab function only works if the input data contains a column labeled 'id' #15

Closed ba66e77 closed 1 year ago

ba66e77 commented 1 year ago

If the overview_tab function is called on a dataframe which does not contain a column labeled 'id', the function fails with KeyError. I think you meant to use the parameter id in the dropna function call instead of the string 'id'.

https://github.com/cosimameyer/overviewpy/blob/6216ede14051afad74bb49f22450eb20f2c662e8/src/overviewpy/overviewpy.py#L20C31-L20C31

cosimameyer commented 1 year ago

Thanks for catching it! That's exactly what I intended to do :)