I have two dataframes:
df1:
ID Open High Low
1 64 66 52
df2
ID Open High Volume
1 33 45 30043
I want to write a function that checks if the column headers are matching/the same as columns in df1.
IF not we get a message telling us what column is missing.
Example of the message given these dataframes:
"The column 'Low' is not selected in df2. The column 'Volume' is not selected in df1'
I want a generalized code that can work for any given dataframe.
Is this possible on python?