pandas.api.typing.Resampler.asfreq
pandas 3.1.1 · Resampling · method
Conform the time index to the target frequency, inserting gaps at newly introduced timestamps.
Call syntax
pd.api.typing.Resampler.asfreq(fill_value=None)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
fill_value |
Optional Positional or keyword Default None |
scalar Supply a value to use in place of a missing position. |
Returns
DataFrame or Series