You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we have multiple columns with the same name, e.g. precipitation, precipitation_member1 for ensemble or precipitation, precipitation_icon for deterministic, we always use the logic data.loc[:, data.columns.str.contains('precipitation')] to select the relevant columns.
However this is prone to errors in case there are other columns that contain that same string. I think we should change this to something more robust like maybe a regex expression on the columns names?
The text was updated successfully, but these errors were encountered:
When we have multiple columns with the same name, e.g.
precipitation, precipitation_member1
for ensemble orprecipitation, precipitation_icon
for deterministic, we always use the logicdata.loc[:, data.columns.str.contains('precipitation')]
to select the relevant columns.However this is prone to errors in case there are other columns that contain that same string. I think we should change this to something more robust like maybe a regex expression on the columns names?
The text was updated successfully, but these errors were encountered: