From e5d5c0371d5ffca701efe9c2247f39d9fd100337 Mon Sep 17 00:00:00 2001 From: "Daniel G, Krakowczyk" Date: Thu, 14 Sep 2023 16:03:36 +0200 Subject: [PATCH] do not add fileinfo twice --- src/pymovements/dataset/dataset_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pymovements/dataset/dataset_files.py b/src/pymovements/dataset/dataset_files.py index 8dd3899f5..ef0149f44 100644 --- a/src/pymovements/dataset/dataset_files.py +++ b/src/pymovements/dataset/dataset_files.py @@ -351,7 +351,7 @@ def add_fileinfo( [ pl.lit(value).alias(column) for column, value in fileinfo.items() - if column != 'filepath' + if column != 'filepath' and column not in df.columns ] + [pl.all()], )