Solution 1.1
Perform the following steps to complete the activity:
- Open a new Jupyter notebook and select the
Pandas_Workshop
kernel. - Import
pandas
andrandom
into your notebook:import pandas as pd import random
- Load the DataFrame for
Store1
:Store1 = pd.read_csv('../Datasets/Store1.csv') Store1.head()
Note
Please change the path of the dataset file (highlighted) based on where you have downloaded it in your system.
You should get the following output:
- Similarly, load the DataFrame for
Store2
:Store2 = pd.read_csv('../Datasets/Store2.csv') Store2.head()
Note
Please change the path of the dataset file (highlighted) based on where you have downloaded it in your system.
You should get the following output:
Answering question 1: Which store has greater sales for the quarter?
-
...