Question: Python - Pandas - I have a dataframe df 1 created by reading an excel ( pd . read _ excel ) . There is

Python - Pandas - I have a dataframe df1 created by reading an excel (pd.read_excel). There is a column (value1), that is of int type, which has empty blank cells in the excel. How do I check these blank values in my code and replace it with something else? I used : df1['value1']=df1['value1'].replace('',-8888). Nothing happens. Please help.

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!