Reason:
Reason
A:
Your method is kind of awkward because you're using spaces for both conversion and output, which means you'll have to look for and remove that whitespace.
It's a really weird design, and I would recommend either:
Specifying the delimiters with the str.split() method
Changing the output to something that doesn't have extra characters, such as a list of strings
Using a library like regex to pull out the values you want
A:
In this case it makes more sense to use join, split and to_csv:
In [9]:
'Sevilla' in 'Sevilla_Ecuador'
'Ecuador' in 'Sevilla_Ecuador'
Out[9]:
True
False
In [10]:
['Sevilla_Ecuador', 'Sevilla'] in 'Sevilla_Ecuador'
['Sevilla', 'Ecuador'] in 'Sevilla_Ecuador'
Out[10]:
True
False
="nav-group-task">
kOutgoingMessageSucceeded
kOutgoingMessageFailed
kOutgoingMessageCancelled ac619d1d87
Related links:
Comments