We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a89954 commit 961d0c4Copy full SHA for 961d0c4
wrangler_script.py
@@ -29,3 +29,9 @@
29
data2 = data.groupby(data['Date'].dt.strftime('%Y/%m/01'))['Price'].mean()
30
#Write the data to a csv file
31
data2.reset_index().to_csv('Henry_Hub_Gas_Prices_Monthly.csv', header=True, index=False)
32
+
33
34
+#Now for year Group data for the same year only
35
+data_year = data.groupby(data['Date'].dt.strftime('%Y/01/01')).Price.mean()
36
+#Writing it to csv file
37
+data_year.reset_index().to_csv('Henry_Hub_Gas_Prices_Yearly.csv', header=True, index=False)
0 commit comments