Skip to content

Instantly share code, notes, and snippets.

@amankharwal

amankharwal/uber.py Secret

Created Apr 21, 2021
Embed
What would you like to do?
data["Day"] = data["Date/Time"].apply(lambda x: x.day)
data["Weekday"] = data["Date/Time"].apply(lambda x: x.weekday())
data["Hour"] = data["Date/Time"].apply(lambda x: x.hour)
print(data.head())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment