I have an Excel sheet with daily river discharge on several rivers. The first five lines…
- User
I have an Excel sheet with daily river discharge on several rivers. The first five lines are metadata like the name of the post and the catchment area. Then there are river discharge - one hydrological post in one column. Daily data. There are gaps in the rows. Those that are less than 5 days long need to be filled using linear interpolation. Those that are longer needed to be filled with average river discharge for the missing days over a long period. Like if February 5th is missing, than programm should calculate mean over all February 5th and fill all missing values in that calendar day. The result needs to be saved in Excel. Write code in python
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.