Professional Documents
Culture Documents
Topic : Numpy,Pandas,Matplotlib
Presented by:
Bibhudatta Raika - 210101120073
A.Suryamani Acharaya - 210101120074
D.Narendra Reddy -210101120075
NUMPY
What is NumPy?
• NumPy stands for Numerical Python.
• NumPy is a Python Library used for working with
array.
• NumPy is the Fundamental package for scientific
computing in python.
• NumPy provides various powerful data structures,
implementing multi-dimensional arrays and matrices.
• It is an open source project and you can use it freely.
The uses of NumPy
• NumPy is most suitable for performing basic numerical
computations such as mean,median,range,etc.
• NumPy is used for creating multidimensional arrays.
• NumPy library can be used to integrate C/C++ and Fortran code.
• NumPy can be used to perform a wide variety of mathematical
operations on arrays.
• The Array Object in NumPy is called ndarray.It provides a lot of
supporting functions that make working with ndarray very easy.
• Arrays are very frequently used in data science,where speed and
resources are very important.
Installing NumPy on Windows Operating System
Steps for installing NumPy on Windows:
1. Install NumPy using following PIP command in command prompt terminal:
The installation will start automatically and Numpy will be successfully installed with
its latest version.
• This is the main reason why NumPy is faster than lists. Also it is optimized to
work with latest CPU architectures.
Step-2
Be sure to download the latest version of the Python. Version 3.7.3.
Step-3
On running the downloaded installer, you will get this window. Click on ‘Install
Now’.
Step-4
After finishing the installation, it is recommended to choose the option
to disable path length to avoid any problems with your Python installation.
Step-5
Now that Python is installed, you should head over to our terminal or
command prompt from where you can install Pandas. So go to your search
bar on your desktop and search for cmd. An application called Command
prompt should show up. Click to start it.
Step-6
Type in the command “pip install manager”. Pip is a package install manager
for Python and it is installed alongside the new Python distributions.
Step-7
Wait for the downloads to be over and once it is done you will be able to run
Pandas inside your Python programs on Windows.
Matplotlib
What is Matplotlib?
• Matplotlib was created by John D. Hunter.
• Matplotlib is open source and we can use it freely.
• Matplotlib is an open-source drawing library that supports
various drawing types.
• You can generate plots, histograms, bar charts, and other
types of charts with just a few lines of code.
• It’s often used in web application servers, shells, and
Python scripts.
Matplotlib Architecture
There are three different layers in the architecture of the matplotlib
which are the following:
•Backend Layer
•Artist layer
•Scripting layer
matplotlib.pyplot is a collection of command style functions that
make Matplotlib work like MATLAB. Each Pyplot function makes
some change to a figure. For example, a function creates a figure, a
plotting area in a figure, plots some lines in a plotting area, decorates
the plot with labels, etc.
Types of Plots
Bar
Boxplot
Hist
Pie etc.
Installation of Matplotlib
Step 1 − Make sure Python and pip is preinstalled on your system
Type the following commands in the command prompt to check is python and pip is installed on your system.
To check Python
python --version
If python is successfully installed, the version of python installed on your system will be displayed.
To check pip
pip -V
The version of pip will be displayed, if it is successfully installed on your system.