I'm sure this is a very simple thing to do but I seem to be having trouble! (I am rather new to this too.)
I have a dataframe containing lat long coordinates:
LatLon
0 (49.766795012580374, -7.556440128791576)
1 (49.766843444728075, -7.556439417755133)
2 (49.766843444728075, -7.556439417755133)
I would like to remove the round brackets/parentheses, but I just cannot work it out.
I keep getting errors like
AttributeError: Can only use .str accessor with string values, which use np.object_ dtype in pandas
But I'm not sure what to do to fix it.
I think it is because the type is object - so I need to convert it to string first?
If I do .info()
:
<class 'pandas.core.frame.DataFrame'>
Int64Index: 22899 entries, 0 to 22898
Data columns (total 1 columns):
LatLon 22899 non-null object
dtypes: object(1)
and df.dtypes
:
LatLon object
dtype: object