Question: python, pandas Removing unwanted element from dataframe. Let say, in the example below in my data frame, df, i need to remove '4528.' from all

python, pandas
Removing unwanted element from dataframe. Let say, in the example below in my data frame, df, i need to remove '4528.' from all the entries. I tried:
df.str.replace('4528.', '')
but this gives me an error 'DataFrame object has no attribute 'str'
i also tried just df.replace('4528.', '') but it blanked the entire df. please advise a simple way to do the magic.
python, pandas Removing unwanted element from dataframe. Let say, in the example

b. C. b

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!