From 043d8ab855b183364ff891580f594d7fa463fd41 Mon Sep 17 00:00:00 2001 From: "Aivin V. Solatorio" Date: Mon, 20 Mar 2023 12:24:30 -0400 Subject: [PATCH] Fixes #6: Don't fail when tables have no numeric data Signed-off-by: Aivin V. Solatorio --- src/realtabformer/data_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/realtabformer/data_utils.py b/src/realtabformer/data_utils.py index 2de04cb..1d9b1c4 100644 --- a/src/realtabformer/data_utils.py +++ b/src/realtabformer/data_utils.py @@ -492,7 +492,7 @@ def process_data( series.name = col_name processed_series.append(series) - processed_df = pd.concat(processed_series, axis=1) + processed_df = pd.concat([pd.DataFrame()] + processed_series, axis=1) if not processed_df.empty: # Combine the processed numeric and datetime data.