-
-
Save AI-MOO/e11fa37f8cf985ffc307f7399e18228c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# إنشاء أعمدة جديدة خاصة بمعلومات الرحلة | |
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) | |
# أخذ عينات عشوائية | |
data.sample(5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment