I have created a python code, which scraps data from the web and gets the raw data and then I interpolate between data to get new data and add as a new column.
But while adding the column into the existing data frame I would need to compare the column heading with the new column heading and then insert it before or after.
Example:
If column A heading name is 1 and column B heading name is 3 and my new created column heading name is 2 and I need to check if 2 is less the column A and greater than Column B and then insert the new column between A and B.
Note: I don't want to compare the values in the corresponding column but I need to compare between column heading names (logical operation) and then insert the column accordingly.