From dc826d2195a36ddfb026766ca654975fcd7307b3 Mon Sep 17 00:00:00 2001 From: Ben Young Date: Mon, 28 Aug 2023 20:33:19 -0400 Subject: [PATCH] fix FutureWarning --- scripts/build_lcia_mapping.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build_lcia_mapping.py b/scripts/build_lcia_mapping.py index 16200c11..b4615860 100644 --- a/scripts/build_lcia_mapping.py +++ b/scripts/build_lcia_mapping.py @@ -19,8 +19,8 @@ import lciafmt lcia_lciafmt = lciafmt.get_method(lcia_name, endpoint = False) lcia_endpoint = lciafmt.get_method(lcia_name, endpoint = True) - lcia_lciafmt = lcia_lciafmt.append(lcia_endpoint, ignore_index = True) - + lcia_lciafmt = pd.concat([lcia_lciafmt, lcia_endpoint], ignore_index = True) + # Keep only flowable and category lcia_lciafmt = lcia_lciafmt[['Flowable', 'Context']] lcia_lciafmt = lcia_lciafmt.drop_duplicates()