write a program to replace all negative values in a data frame with a 0
Answers
Answered by
0
Answer:
Approach:
Import pandas module.
Create a Dataframe.
Check the DataFrame element is less than zero, if yes then assign zero in this element.
Display the final DataFrame.
Similar questions