I have a dataset with 4 columns, of 2 months Jan and Feb. The data is on an hourly scale.
I am trying to get the final data with an aggregate hourly mean. Only 24 points (average hourly from Jan to Feb).
You should get in the habit of avoiding using data as the name of a data frame or other subsetable object. You can often get away with it before finding that somehow yours is being treated as if it were a built-in function ‐same goes for df even though it’s widespread in examples everywhere and a host of others. Use Data, dat, df_ instead.