From 15cf1e1c9533b9e6e342d1f257dcea931d75d72c Mon Sep 17 00:00:00 2001 From: byersiiasa Date: Mon, 10 Jun 2024 12:19:27 +0200 Subject: [PATCH] add ctach for dropping columns='gmt' --- rime/rime_functions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rime/rime_functions.py b/rime/rime_functions.py index f9960dd..298c564 100644 --- a/rime/rime_functions.py +++ b/rime/rime_functions.py @@ -99,7 +99,8 @@ def round_up(x, a): df_ind = pd.concat([df_ind, dfs]) - df_ind.drop(columns='gmt') + if 'gmt' in df_ind.columns: + df_ind.drop(columns='gmt') return df_ind