0% found this document useful (0 votes)
24 views2 pages

VSCode Data Analysis Guide

Uploaded by

Mukul Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views2 pages

VSCode Data Analysis Guide

Uploaded by

Mukul Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Getting Started with VS Code for Data Analysis

Step 1: Install Python

Go to https://www.python.org/downloads/ and download the latest version of Python.

Make sure to check the box that says 'Add Python to PATH' during installation.

Step 2: Install VS Code

Visit https://code.visualstudio.com/ and download the latest version.

Install and open VS Code after downloading.

Step 3: Install Extensions in VS Code

Open the Extensions tab in VS Code (Ctrl+Shift+X) and install these:

1. Python (by Microsoft)

2. Jupyter (for notebooks)

3. Pylance (for smart suggestions)

Step 4: Install Python Libraries

Open the terminal in VS Code (Ctrl+~) and type the following command:

pip install pandas matplotlib seaborn openpyxl jupyter

Step 5: Start a Jupyter Notebook

Create a new file with the .ipynb extension (e.g., analysis.ipynb).

This opens a notebook where you can run code in cells.

Sample Code to Read Excel File

import pandas as pd

df = pd.read_excel('yourfile.xlsx')

df.head()
Getting Started with VS Code for Data Analysis

Why It's Perfect for You

- Familiar cell-based format like Excel

- Powerful charting with just a few lines

- Reproducible and efficient workflows

You might also like