pygeodes.utils.formatting.format_items#

pygeodes.utils.formatting.format_items(items: List[Item] | GeoDataFrame, columns_to_add: set | List | None = None) GeoDataFrame[source]#

This functions format a list of items, or a GeoDataFrame by adding columns by name

Parameters:
itemsUnion[List[Item], pd.GeoDataFrame]

the list of items to transform into a dataframe or GeoDataFrame to add columns to

columns_to_addUnion[set, List], optional

the columns to add, by default None

Returns:
pd.GeoDataFrame

the new dataframe