cityImage.remove_lists_columns#

cityImage.remove_lists_columns(df)[source]#

For each cell in the DataFrame, if the cell contains a list, update it to keep only the first element of the list.

Parameters:

df (DataFrame) – The input DataFrame.

Returns:

df – A DataFrame with the transformation applied to the relevant cells.

Return type:

DataFrame