OGGM / tutorials

Notebook tutorials for the Open Global Glacier Model (OGGM)

Home Page:https://tutorials.oggm.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Notebook / Pandas bug when assigning cenlon/cenlat

pat-schmitt opened this issue · comments

For info and to keep track here is the issue report for the notebook / pandas bug: pandas-dev/pandas#46268

Maybe also a more elegant solution in the notebook could be to initialise empty columns before assigning cenlon/cenlat like template['CenLon'] = '' then the line template.loc[i, 'CenLon'] = np.array(cenlon) could be undone to template.loc[i, 'CenLon'] = cenlon again.

This bug was solved in pandas, check the linked issue from above for more details.