Trying to drop a unnamed column from a dataframe created from a Xlsx but it won't drop.
def create_final_table(self):
self.raw_data_tables["sales_codes"] = self.raw_data_tables["sales_codes"].drop(columns=['Unnamed: 0'])
self.raw_data_tables["vehicle_hash"] = self.raw_data_tables["vehicle_hash"].drop(
columns=['Unnamed: 0', 'record_source', 'load_ts'])
When I execute this code it doesnt drop the Unnamed column. If I delete the ".drop(columns=['Unnamed: 0'])" command I get the same result as with this command.