I have a Python's (2.7) Pandas DF which has columns which looks something like this :
email
['[email protected]']
['[email protected]']
['[email protected]']
['[email protected]']
I want to extract email from it without the square bracket and single quotes. Output should like this :
email
[email protected]
[email protected]
[email protected]
[email protected]
I have tried the suggestions from this answer :Replace all occurrences of a string in a pandas dataframe (Python) . But its not working. Any help will be appreciated.
edit: What if I have array of more than 1 dimension. something like :
email
['[email protected]']
['[email protected]']
['[email protected]']
['[email protected]','[email protected]']
['[email protected]','[email protected]', '[email protected]']
is it possible to get the output in three different columns without square brackets and single quotes.