How can I resample (upsample) my Pandas Dataframe?
问题 I have a small Pandas DataFrame I'd like to resample, and I hoped you could help me :) I cannot show it to you as it is confidential but I can describe to you a simpler version of it. It has 4 columns: -Date (YYYY-MM-DD format) -Country -Amount -Frequency So here is what I'd like to do: Depending on the rows, the Frequency is either YEARLY or MONTHLY If it happens to be monthly, then nothing needs to be done. But if it's YEARLY, I would like to change it to MONTHLY and insert 11 new rows so