<gh_stars>0
import pandas as pd

class Processor(object):
    
    @classmethod
    def column_date_processing(self,data):
        new_cols = {}
        for column in data.columns:
            new_cols[column] = column.lower().replace(" ","")
        for col in new_cols:
            data.rename(columns={col:new_cols[col]},inplace=True)
        if "date" in list(data.columns):
            try:
                data["date"] = pd.to_datetime(data["Date"]).dt.tz_localize(None)
            except:
                data["date"] = pd.to_datetime(data["date"]).dt.tz_localize(None)
        return data
import pandas as pd

class Processor(object):
    
    @classmethod
    def column_date_processing(self,data):
        new_cols = {}
        for column in data.columns:
            new_cols[column] = column.lower().replace(" ","")
        for col in new_cols:
            data.rename(columns={col:new_cols[col]},inplace=True)
        if "date" in list(data.columns):
            try:
                data["date"] = pd.to_datetime(data["Date"]).dt.tz_localize(None)
            except:
                data["date"] = pd.to_datetime(data["date"]).dt.tz_localize(None)
        return data