Question: I have a data frame that has a column called 'vacation names'. It includes a string and a number in each cell (i.e, 'beach (1945)',
I have a data frame that has a column called 'vacation names'. It includes a string and a number in each cell (i.e, 'beach (1945)', 'mountain (1997)', 'Hawaii (2020)' etc.). I want to edit the data frame by removing the year from the column 'vacation names'. Please share a code to achieve this.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
