From 4199910a2b4171a56e232609966331ad29dc383d Mon Sep 17 00:00:00 2001 From: "Brandon N. Benton" Date: Wed, 16 Oct 2024 20:02:32 -0600 Subject: [PATCH] rename cloud_type to flag in decode_sky_type --- mlclouds/p_fun.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mlclouds/p_fun.py b/mlclouds/p_fun.py index 804d63c..8cf5144 100644 --- a/mlclouds/p_fun.py +++ b/mlclouds/p_fun.py @@ -36,6 +36,7 @@ def decode_sky_type(cloud_type): """Decode integer cloud types as strings.""" if 'cloud_type' in cloud_type: df = cloud_type.copy() + df = df.rename({'cloud_type': 'flag'}, axis=1) else: df = pd.DataFrame(columns=['flag'], data=cloud_type) df.loc[df['flag'] == 0, 'flag'] = 'clear'