Generation

generate functionSat, 01 Apr 2023

extraer horas de un dataframe tipo datatime

def get_hours(df): df['hora'] = df['fecha'].apply(lambda x: x.hour)

Questions about programming?Chat with your personal AI assistant