How to use split to have a new columns
Solution 1:
Using str.extract
we can target the 4 digit year:
df["year"] = df["Release Date"].str.extract(r'\b(\d{4})\b')
Using str.extract
we can target the 4 digit year:
df["year"] = df["Release Date"].str.extract(r'\b(\d{4})\b')