Computer Science, asked by kirtigupta4795, 2 months ago

write a program to replace all negative values in a data frame with a 0​

Answers

Answered by lilidey81
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