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
As included in #88, this issue is for implementing the ability to specify custom transforms to downloaded data. This captures initial ideas for design, transforms to implement and a proposed implementation from discussion with @stuartlynn.
Design goals
Can handle different data types (e.g. count, continuous, categorical, geometries, etc) and be extendable to new ones
Can be composed together with many transforms applied to many metrics in the downloaded data
Should be applicable in any order?
Transform can be validated using metadata before downloading?
Transforms to implement
The types of transform might include the following for examples:
Applying formulae to modify derived metrics
Specify additional metadata to be returned (e.g. include variable descriptions for categorical datatypes)
Enable column renaming
Be able to include spatial interpolation transforms (e.g. transform to h3 grid)
An initial implementation could include the above but should ideally be designed to enable the transforms available to be expanded and specified from other crates.
Proposed implementation
One approach within the current API (#88) would be to include a new enum type within DownloadParams:
As included in #88, this issue is for implementing the ability to specify custom transforms to downloaded data. This captures initial ideas for design, transforms to implement and a proposed implementation from discussion with @stuartlynn.
Design goals
Transforms to implement
The types of transform might include the following for examples:
An initial implementation could include the above but should ideally be designed to enable the transforms available to be expanded and specified from other crates.
Proposed implementation
One approach within the current API (#88) would be to include a new enum type within
DownloadParams
:and then create an enum of various transforms with the data of variants implementing a
Transform
trait with enum dispatch then being used:The transforms can then be applied at the end of the
.download()
method on a downloaded popgetter dataframeresult
:The text was updated successfully, but these errors were encountered: