atrisovic / weather-panel.github.io

A practical guide to climate econometrics: Navigating key decision points in weather and climate data analysis.
https://climateestimate.net
Creative Commons Attribution Share Alike 4.0 International
34 stars 11 forks source link

python for example 2 #50

Closed atrisovic closed 3 years ago

atrisovic commented 3 years ago

some of the things I didn't know how to translate :-s

atrisovic commented 3 years ago

That would be much appreciated! I didn't know how to do it. I'm also not sure if I translated all the instructions from the second code block. I left the markdown tables to make sure it looks as it should, but we could also move them after the code block box for people to check (this one was helpful for making markdown tables in python: !pip install tabulate and print(df.to_markdown())). I will now do a read through, and maybe we can plan to ping Julia in a few days or a week if that makes sense.

jrising commented 3 years ago

Okay, I've gone through the code and made sure that it produces results that match the R code. It turns out the xarray has a function that's equivalent to R's aggregate function: coarsen. https://github.com/atrisovic/weather-panel.github.io/commit/d503c05a6f62f1a0e8d66af2159dd18c4395288e

Feel free to merge!

atrisovic commented 3 years ago

That's great! Thank you!