earthlab / matplotcheck

A python package for checking and testing matplotlib plots. We use this for autograding student assignments but there are many other potential use cases including package testing (for packages with plots)!
https://matplotcheck.readthedocs.io
BSD 3-Clause "New" or "Revised" License
18 stars 8 forks source link

select columns using [] vs . #54

Open lwasser opened 5 years ago

lwasser commented 5 years ago

currently when checking that the data in a plot is correct, we use [] rather than . to grab the columns. this works well however if the df has an index col you have to call it using .index

it is definitely more complexd to translate a column name to a . rather than [""] BUT might make the assert statement less fragile.