Skip to content
Advertisement

asfreq in pandas returns an empty dataframe

I’m tring to use infer_freq and asfreq and the return data frame is empty

Original data set:

JavaScript

Trying to convert the data with different frequency

JavaScript
JavaScript

Advertisement

Answer

Given:

JavaScript

Doing:

JavaScript

Output:

JavaScript

We can see it successfully converted to a frequency index.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement