You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update the API bindings such that you can construct a filtered query similar to that which can be done via the API website UI:
Dependencies
No response
Technical Notes
Currently the way to filter/query data coming from the API is to load it all and then use pandas:
from seshat_api.core import Polities
polities = Polities(client)
polities_df = pd.DataFrame(polities.get_all())
# then filter with pandas
Building a way to do a specific query is probably only worth it if it's a simple job. Loading the entire polities table to a dataframe with the code above only takes ~15s on my 10Mb home internet connection, so this way is already practical.
Definition of Done
The feature has been developed on a feature branch.
A pull request has been created for the feature branch to be merged into the main branch.
The text was updated successfully, but these errors were encountered:
Description of Improvement
Update the API bindings such that you can construct a filtered query similar to that which can be done via the API website UI:
Dependencies
No response
Technical Notes
Currently the way to filter/query data coming from the API is to load it all and then use pandas:
Building a way to do a specific query is probably only worth it if it's a simple job. Loading the entire polities table to a dataframe with the code above only takes ~15s on my 10Mb home internet connection, so this way is already practical.
Definition of Done
The text was updated successfully, but these errors were encountered: