0% found this document useful (0 votes)
3 views3 pages

Python

Arjun sets up his data analysis system by installing the Python libraries NumPy, Pandas, and Matplotlib from the Python Package Index using pip. He verifies the installation by importing the libraries and checking their versions in Python. A sample test program demonstrates the successful installation and functionality of the libraries.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

Python

Arjun sets up his data analysis system by installing the Python libraries NumPy, Pandas, and Matplotlib from the Python Package Index using pip. He verifies the installation by importing the libraries and checking their versions in Python. A sample test program demonstrates the successful installation and functionality of the libraries.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

1.

Introduction

Arjun needs to set up his system for data analysis and visualization. For
this purpose, he installs three essential Python libraries:

NumPy

Pandas

Matplotlib

These libraries help in numerical computation, data manipulation, and


visualization.

2. Source of Packages

The packages were downloaded from the official Python package


repository:

Python Package Index (PyPI)

Accessed using the pip package manager

3. Installation Process

Step 1: Install Python

Ensure Python is installed. Check using:

Copy code

Bash

python --version

Step 2: Install Libraries using pip

Run the following commands in terminal/command prompt:

Copy code

Bash

pip install numpy

pip install pandas

pip install matplotlib

Step 3: Install All at Once (Optional)

Copy code

Bash

pip install numpy pandas matplotlib


4. Verification Process

After installation, Arjun verifies the packages using Python.

Step 1: Open Python Interpreter

Copy code

Bash

python

Step 2: Import Libraries

Copy code

Python

import numpy

import pandas

import matplotlib

Step 3: Check Versions

Copy code

Python

print(numpy.__version__)

print(pandas.__version__)

print(matplotlib.__version__)

If no errors occur, installation is successful.

5. Sample Test Program

Copy code

Python

import numpy as np

import pandas as pd

import [Link] as plt

# NumPy test

arr = [Link]([1, 2, 3])

print(arr)
# Pandas test

data = [Link]({'A': [1, 2], 'B': [3, 4]})

print(data)

# Matplotlib test

[Link]([1, 2, 3], [4, 5, 6])

[Link]()

6. Conclusion

Arjun successfully installed NumPy, Pandas, and Matplotlib using pip from
PyPI. The installation was verified by importing the libraries and running a
test program.

You might also like