You are on page 1of 12

Centurion University of

Technology and managament

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:

command pip install numpy

The installation will start automatically and Numpy will be successfully installed with
its latest version.

2. Verify NumPy Installation by typing the command given below in cmd

pip show Numpy

It will show the location and numpy version installed.


3. Import NumPy Package
1.Create python Environment in cmd by typing:Python
2.Type command import numpy as np
3. Upgrade NumPy by using the following command:

pip install –upgrade numpy


Why is NumPy Faster Than Lists?
• NumPy arrays are stored at one continuous place in memory unlike lists, so
processes can access and manipulate them very efficiently.

• This behavior is called locality of reference in computer science.

• This is the main reason why NumPy is faster than lists. Also it is optimized to
work with latest CPU architectures.

Which Language is NumPy written in?


NumPy is a Python library and is written partially in Python, but most of the parts
that require fast computation are written in C or C++.
Pandas
• Python Pandas is defined as an open-source library that provides high-
performance data manipulation in Python
• Pandas is a Python library used for working with data sets.
• It has functions for analyzing, cleaning, exploring, and manipulating
data
Advantages 
•Fast and efficient for manipulating and
analyzing data.
•Data set merging and joining.
•Flexible reshaping and pivoting of data sets
•Provides time-series functionality.
•Easy handling of missing data (represented as
NaN) in floating point as well as non-floating
point data
Benefits of Pandas
The benefits of pandas over using other language are as follows:
•Data Representation: It represents the data in a form that is suited for data analysis through
its DataFrame and Series.
•Clear code: The clear API of the Pandas allows you to focus on the core part of the code. So,
it provides clear and concise code for the user.

 Installing Python Pandas on Windows


 How to install pandas using pip?
If you are using the latest version of Pandas, you will have pip already
installed on your system. Therefore you need not follow from step 1 to 5. For
users who don’t have the latest version of Python (3.7.3), they should
upgrade it.
Step-1
First head over to https://www.python.org and click on Downloads on the Navigation
bar

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.

Step 2 − Install Matplotlib


Matplotlib can be installed using pip. The following command is run in the command prompt to install Matplotlib.

pip install matplotlib


This command will start downloading and installing packages related to the matplotlib library. Once done, the message of
successful installation will be displayed.

Step 3 − Check if it is installed successfully


To verify that matplotlib is successfully installed on your system, execute the following command in the command
prompt. If matplotlib is successfully installed, the version of matplotlib installed will be displayed.
Thank You

You might also like