Rewriting the P3 Analysis Library API to accept standard DataFrames instead of pandas.DataFrame objects would potentially enable us to ingest data from more sources.
Request attributes
[ ] Would this be a refactor of existing code?
[X] Does this proposal require new package dependencies?
[ ] Would this change break backwards compatibility?
Feature/behavior summary
There are efforts underway to define a standard API for DataFrames, here: https://data-apis.org/dataframe-api/draft/index.html
Rewriting the P3 Analysis Library API to accept standard DataFrames instead of pandas.DataFrame objects would potentially enable us to ingest data from more sources.
Request attributes
Related issues
None
Solution description
dataframe_api_compat
as a dependencyAdditional notes
An initial prototype could just focus on one or two functions (say,
p3.metrics.application_efficiency
andp3.metrics.pp
).