QuantEcon / lecture-python-programming.myst

Python Programming for Finance and Economics
https://python-programming.quantecon.org
43 stars 26 forks source link

MIGRATE: pandas_panel lecture from stats #310

Closed mmcky closed 4 months ago

mmcky commented 4 months ago

This PR migrates pandas_panel from lecture-stats

fixes https://github.com/QuantEcon/lecture-python-programming.myst/issues/303

github-actions[bot] commented 4 months ago

🚀 Deployed on https://663185f000a82f4086889c1f--epic-agnesi-957267.netlify.app

mmcky commented 4 months ago

There are a few deprecation notices that should be addressed

FutureWarning: DataFrame.groupby with axis=1 is deprecated. Do `frame.T.groupby(...)` without axis instead.
  merged.groupby(level='Continent', axis=1).mean().head()
/home/runner/miniconda3/envs/quantecon/lib/python3.11/site-packages/seaborn/_oldcore.py:1119: FutureWarning: use_inf_as_na option is deprecated and will be removed in a future version. Convert inf values to NaN before operating instead.
jstac commented 4 months ago

Thanks @mmcky . I'm a little busy but perhaps @shlff could provide a second set of eyes?

I'll leave you to merge when ready.

mmcky commented 4 months ago

Thanks @shlff the only real changes being applied are to fix deprecation notices in pandas in https://github.com/QuantEcon/lecture-python-programming.myst/commit/caaacae06957e7d4eb3b7b02bbad6878e8894171 otherwise this is just migrating the lecture from it's old location.

shlff commented 4 months ago

I see. Thanks @mmcky .

I quickly went through the lecture:

This lecture looks good to me so I reckon it is ready to be merged.

mmcky commented 4 months ago

thanks @shlff -- greatly appreciate the second set of eyes.