# Fixing a corrupted geometry column with Python GeoPandas

I had a shapefile which I converted to a geodataframe, and created a geometry column. I did some manipulation with it in pandas. I am now trying to convert it back into a geodataframe and eventually a shapefile but cannot make it work. I have tried the usual methods:

``````import pandas as pd
import geopandas as gpd

df = gpd.GeoDataFrame(df, geometry='GEOMETRY__C')
``````

and get the following error. This is the first row in the dataframe by the way:

`TypeError: Input must be valid geometry objects: MULTIPOLYGON (((1241887.500623662 949342.9993114918, 1241827.375743911...`

After looking at other Stack Overflow threads I tried this way using shapely wkt

``````import pandas as pd
import geopandas as gpd
from shapely import wkt

``````

and I get this error:

`WKTReadingError: Could not create geometry because of errors while reading input.`

If I check to see if the geometries in the 'GEOMETRY__C' column are valid like this...

``````import geopandas as gpd
import shapely as sh

gdf['validation'] = gdf['GEOMETRY__C']
``````

I have the following result:

``````0   False
1   False
2   False
``````

and so on...

This makes me wonder, is the 'GEOMETRY__C' column in the wrong data type? I checked the data type of this column and it is pandas `dtype('O')`

Does anyone have other suggestions what I can do? Do I need to changes the datatype of the geometry column?
{"ft_lang_label":"__label__en","ft_lang_prob":0.825815,"math_prob":0.56208557,"size":1466,"snap":"2021-21-2021-25","text_gpt3_token_len":388,"char_repetition_ratio":0.13064295,"word_repetition_ratio":0.035555556,"special_character_ratio":0.2633015,"punctuation_ratio":0.13986014,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99261063,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-05-07T01:38:55Z\",\"WARC-Record-ID\":\"<urn:uuid:eb78d5a7-e306-44c4-a31b-a3867e0e7294>\",\"Content-Length\":\"157370\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:26c22a73-fd38-459a-b01c-0513f7263ac6>\",\"WARC-Concurrent-To\":\"<urn:uuid:a04c2b7e-6a0b-4766-bf29-781c0e5a73c6>\",\"WARC-IP-Address\":\"151.101.65.69\",\"WARC-Target-URI\":\"https://gis.stackexchange.com/questions/378315/fixing-a-corrupted-geometry-column-with-python-geopandas\",\"WARC-Payload-Digest\":\"sha1:B3UQ63QBWMETS25GNOW3C6TCDJG3CH7U\",\"WARC-Block-Digest\":\"sha1:CTZPIOCRUXDO6BNLHLAS66SC2KMV5XIC\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-21/CC-MAIN-2021-21_segments_1620243988774.18_warc_CC-MAIN-20210506235514-20210507025514-00387.warc.gz\"}"}