Data cleaning with swap numbers of cell in dataframe in python with logic

  dataframe, pandas, python, python-3.x

Please find the below dataset of Opening, High, Low, Closing, and volume of a stock market. Here I noticed some value in high is lower and vice versa. I want to swap high and low values where I found these discrepancies. I’m learning python and want to perform this data cleaning in python. Please help. Thanks in advance.

enter image description here

Source: Python Questions

LEAVE A COMMENT