@@ -127,7 +127,7 @@ def build_df(self, exchanges) -> pd.DataFrame:
127127 """
128128 # Define the columns for the metadata
129129 cols = ["key" , "unit" , "name" , "product" , "location" , "database" , "substitute" , "substitution_factor" , "allocation_factor" ,
130- "properties" , "processor" ]
130+ "properties" , "processor" , "categories" ]
131131
132132 # Create a DataFrame from the exchanges
133133 exc_df = pd .DataFrame (exchanges , columns = ["amount" , "input" , "formula" , "uncertainty type" , "comment" ])
@@ -179,7 +179,7 @@ def build_df(self, exchanges) -> pd.DataFrame:
179179 axis = "columns" , inplace = True )
180180
181181 # Define the order of columns for the final DataFrame
182- cols = ["amount" , "unit" , "name" , "location" , "database" ]
182+ cols = ["amount" , "unit" , "name" , "location" , "categories" , " database" ]
183183 cols += ["substitute_name" , "substitution_factor" ] if "substitute_name" in df .columns else []
184184 cols += ["allocation_factor" ] if not database_is_legacy (self .activity .get ("database" )) else []
185185 cols += [col for col in df .columns if col .startswith ("property" )]
@@ -333,6 +333,7 @@ class ExchangesView(widgets.ABTreeView):
333333 "formula" : delegates .NewFormulaDelegate ,
334334 "comment" : delegates .StringDelegate ,
335335 "uncertainty" : delegates .UncertaintyDelegate ,
336+ "categories" : delegates .ListDelegate ,
336337 }
337338
338339 class HeaderMenu (widgets .ABMenu ):
0 commit comments