I have a csv file that has a location column that I want to manipulate using Python. The location column has 3 values in each cell (ID, county, state). I want to clean this column so that each cell only shows ID, deleting the county and state values. For example, each cell in this column currently looks like:
[locID 1, countyname, statename], [locID 2, countyname, statename], etc...
The desired outcome is that each cell would look like:
[locID 1], [locID 2], etc...
Any help is greatly appreciated, thank you!