Skip to content

Commit bc5c052

Browse files
committed
add links for pandas date offsets
1 parent d14379c commit bc5c052

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Tutorial 1 - TMY Weather Data.ipynb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
"- Exploring a Pandas dataframe (`df`): `len()`, `df.head()`, `df.keys()`\n",
5252
"- [pvlib input-output tools](https://pvlib-python.readthedocs.io/en/stable/api.html#io-tools)\n",
5353
"- Ploting a Pandas dataframe (`df`): `df.plot()`\n",
54-
"- Aggregating data in a dataframe (`df`): `df.resample(freq).sum()`\n",
54+
"- Aggregating data in a dataframe (`df`): [`df.resample(freq).sum()`](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.resample.html)\n",
55+
"- Pandas [`DateOffsets`](https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#dateoffset-objects) - shortcuts to set the frequency when resampling\n",
5556
"- Getting NREL irradiance data from the web based API using pvlib"
5657
]
5758
},
@@ -1205,7 +1206,7 @@
12051206
"source": [
12061207
"## Aggregating hourly data to monthly summaries\n",
12071208
"\n",
1208-
"Pandas makes it easy to roll-up timeseries data into summary values. For example, we can calculate total monthly GHI as a quick way to visualize the seasonality of solar resource:"
1209+
"Pandas makes it easy to roll-up timeseries data into summary values. We can use the [`DataFrame.resample()`](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.resample.html) function with [`DateOffsets`](https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#dateoffset-objects) like `'M'` for months. For example, we can calculate total monthly GHI as a quick way to visualize the seasonality of solar resource:"
12091210
]
12101211
},
12111212
{
@@ -1544,7 +1545,7 @@
15441545
"name": "python",
15451546
"nbconvert_exporter": "python",
15461547
"pygments_lexer": "ipython3",
1547-
"version": "3.7.3"
1548+
"version": "3.7.10"
15481549
}
15491550
},
15501551
"nbformat": 4,

0 commit comments

Comments
 (0)