Open ericnost opened 9 months ago
https://github.com/npri-tools/npri/blob/ec5ffe632878c6d64141c7659887159b3ff9e36b/npri/npri.py#L176
Especially for strings.
Example - searching for oil and gas sectors using npri.Industries like:
npri.Industries
og = npri.Industries(value=["oil", "gas"]) og.data
will return "toilet preparation manufacturing" because "oil" is in "toilet"
This could be removed with something like:
og.filters(attribute = "NAICSTitleEn", operator = "!=", value = "Toilet preparation manufacturing")
May not fix. Currently have dropped the Filters class. Filtering can be done through adding more parameters to API calls?
Filters
https://github.com/npri-tools/npri/blob/ec5ffe632878c6d64141c7659887159b3ff9e36b/npri/npri.py#L176
Especially for strings.
Example - searching for oil and gas sectors using
npri.Industries
like:will return "toilet preparation manufacturing" because "oil" is in "toilet"
This could be removed with something like: