PolicyEngine / openfisca-tools

Python tools for enhancing OpenFisca country packages.
1 stars 1 forks source link

Catch `Microsimulation.df("col")` #52

Open MaxGhenis opened 2 years ago

MaxGhenis commented 2 years ago

Microsimulation.df requires a list of column names. When passing a single string instead, it throws:

sim.df("state_code")

KeyError: 's'

Could be more informative or just listify args.