This question is a follow up to Pietro's fantastic answer on how to split a column into multiple columns. My goal is to take a column from an existing data frame, split it on a space, and then take the first three/four split values and place each in a particular column, ignoring the remainder.
The issue with this split is that the number of whitespace varies between rows. Sometimes the data appears like "Fort Lee NJ 07024." Other times, it appears like "NY NY 10000." I'm not sure if there's an easy fix.
df['City, State, Zip'].str.split()
# Returns a variable length row.
# I need to take the first three or four values, and add them to columns: City/State/Zip