8. Datetime
Load the data and display.
Convert the datetime column into proper datetime format, considering the data in the column is in (dd-mm-yyyy hh:mm) format.
Separate day, month name, and year in different columns from datetime.
Separate date, month and year from date column.
Extract time from the datetime column.
Create a sample of 700 rows from the dataset and find the oldest date in the dataset.
Create a sample of 700 rows from the dataset and find the latest date in the dataset.
Create a sample of 700 rows from the dataset and arrange them in ascending order on behalf of date.
Display the data of the sale that happened between 1st Aug 2019 and 01 Dec 2019.
Find out the total sales on each date.
Find out total sale on each day.
Find rows where the transaction happened in the afternoon (12 PM - 6 PM)
Find the sale happened on weekends(sat and sun).
Last updated