Jupyter Notebook Procedure

  1. Install Jupyter Notebook
    • 1.1 Ensure you have Python installed. Download it from the official website or use Anaconda.
    • 1.2 Install Jupyter Notebook by running: pip install notebook
    • 1.3 Verify installation: jupyter notebook --version
    • 1.4 Launch Jupyter: jupyter notebook (It opens in your web browser)
  2. Create a New Notebook
    • 2.1 In the Jupyter interface, click on "New" and select "Python 3" or your preferred language.
    • 2.2 Rename the notebook by clicking on the title (e.g., "Untitled") and give it a meaningful name.
  3. Import Libraries
    • 3.1 Import essential libraries in the first cell:
      import pandas as pd
      import matplotlib.pyplot as plt
      import seaborn as sns
      
      sns.set(style="darkgrid")
      %matplotlib inline
  4. Load Data
    • 4.1 Use built-in datasets for practice:
      iris = sns.load_dataset('iris')
      iris.head()
  5. Explore the Data
    • 5.1 Check for missing values, data types, and summary statistics:
      print(iris.isnull().sum())
      print(iris.describe())
      print(iris.dtypes)
  6. Visualize the Data
    • 6.1 Create visualizations to understand patterns:
      sns.pairplot(iris, hue='species')
      plt.show()
  7. Analyze the Data
    • 7.1 Perform simple calculations like grouping data:
      mean_petal_length = iris.groupby('species')['petal_length'].mean()
      print(mean_petal_length)
  8. Save Your Work
    • 8.1 Save progress by pressing Ctrl + S or exporting via File > Download As (e.g., HTML or PDF).