pygeodes.utils.formatting.format_collections#
- pygeodes.utils.formatting.format_collections(collections: List[Collection] | GeoDataFrame, columns_to_add: set | List | None = None) GeoDataFrame [source]#
This functions format a list of collections, or a
GeoDataFrame
by adding columns by name- Parameters:
- collectionsUnion[List[Collection], pd.GeoDataFrame]
the list of collections 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