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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!