If I do: Series.str.split("/")
on a Pandas Series that has names like "A/American black duck/Illinois/4119/2009", then I get back a Pandas Series that has a list like:
[A, American black duck, Illinois, 4119, 2009]
in each row.
The state name (Illinois, for example) is what I would like to assign as a new column in a separate DataFrame. Is there some way to do something like the following?
newdf['State'] = Series.str.split("/")[2]
(For the record, I've already tried that, but it returns an error.)