Skip to content Skip to sidebar Skip to footer

Can I Dynamically Choose The Method Applied On A Pandas Resampler Object?

I am trying to create a function which resamples time series data in pandas. I would like to have the option to specify the type of aggregation that occurs depending on what type

Solution 1:

Try .resample().apply(method)

But unless you are planning some more computation inside the function, it will probably be easier to just hard-code this line.

Post a Comment for "Can I Dynamically Choose The Method Applied On A Pandas Resampler Object?"