Skip to content

Commit e16ee19

Browse files
authored
Merge pull request #87403 from v-thepet/patch-7
LocBug: Update tutorial-opendatasets-automl.md
2 parents 2422809 + 6961246 commit e16ee19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/open-datasets/tutorial-opendatasets-automl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ weather_df.head(10)
12601260

12611261
Again call `pandas.Series.dt.normalize` on the `datetime` field in the weather data so it matches the time key in `taxi_holidays_df`. Delete the unneeded columns, and filter out records where the temperature is `NaN`.
12621262

1263-
Next group the weather data so that you have daily aggregated weather values. Define a dict `aggregations` to define how to aggregate each field at a daily level. For `snowDepth` and `temperature` take the mean and for `precipTime` and `precipDepth` take the daily maximum. Use the `groupby()` function along with the aggregations to group the data. Preview the data to ensure there is one record per day.
1263+
Next group the weather data so that you have daily aggregated weather values. Define a dict named `aggregations` to define how to aggregate each field at a daily level. For `snowDepth` and `temperature` take the mean and for `precipTime` and `precipDepth` take the daily maximum. Use the `groupby()` function along with the aggregations to group the data. Preview the data to ensure there is one record per day.
12641264

12651265
```python
12661266
weather_df["datetime"] = weather_df["datetime"].dt.normalize()

0 commit comments

Comments
 (0)