0% found this document useful (0 votes)
18 views6 pages

Exp1-ref-doc-installation

Uploaded by

loininstagram
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)
18 views6 pages

Exp1-ref-doc-installation

Uploaded by

loininstagram
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
You are on page 1/ 6

Explore different python modules commonly utilized for Data Analytics and

visualization?
(Pandas, NumPy, Matplotlib

Python Pandas

The term "Pandas" refers to an open-source library for manipulating high-performance data in Python. This
instructional exercise is intended for the two novices and experts.

The name of Pandas is gotten from the word Board Information, and that implies an Econometrics from Multi-
faceted information. It was created in 2008 by Wes McKinney and is used for data analysis in Python.

Processing, such as restructuring, cleaning, merging, etc., is necessary for data analysis. Numpy, Scipy, Cython,
and Panda are just a few of the fast data processing tools available.

o It has a DataFrame object that is quick and effective, with both standard and custom indexing.
o Utilized for reshaping and turning of the informational indexes.
o For aggregations and transformations, group by data.
o It is used to align the data and integrate the data that is missing.
o Provide Time Series functionality.
o Process a variety of data sets in various formats, such as matrix data, heterogeneous tabular data, and
time series.
o Manage the data sets' multiple operations, including subsetting, slicing, filtering, groupBy, reordering,
and reshaping.
o It incorporates with different libraries like SciPy, and scikit-learn.
o Performs quickly, and the Cython can be used to accelerate it even further.

1) Series

A one-dimensional array capable of storing a variety of data types is how it is defined. The term "index" refers
to the row labels of a series. We can without much of a stretch believer the rundown, tuple, and word reference
into series utilizing "series' technique. Multiple columns cannot be included in a Series. Only one parameter
exists:
How to Check Python Version in Windows

Most out-of-the-box Windows installations do not come with Python pre-installed. However, it is always a good
idea to check.

Open Windows Powershell, and enter the following:

python --version

Data: It can be any list, dictionary, or scalar value.

Creating Series from Array:

Before creating a Series, Firstly, we have to import the numpy module and then use array() function in the
program.

1. import pandas as pd
2. import numpy as np
3. info = np.array(['Dr','V','i','j','a','y'])
4. a = pd.Series(info)
5. print(a)
output

0 Dr
1 V
2 i
3 j
4 a
5 y
dtype: object
Python Pandas Data Frame

It is a generally utilized information design of pandas and works with a two-layered exhibit with named
tomahawks (lines and segments).

import pandas as pd
# a list of strings
x = ['Dr.Vijay', 'Kumar']
# Calling DataFrame constructor on list
df = pd.DataFrame(x)
print(df)

output

0
0 Dr.Vijay
1 Kumar

Python NumPy

NumPy stands for numeric python which is a python package for the computation and processing of the
multidimensional and single dimensional array elements.

The need of NumPy


1. NumPy performs array-oriented computing.
2. It efficiently implements the multidimensional arrays.
3. It performs scientific computations.
4. It is capable of performing Fourier Transform and reshaping the data stored in multidimensional arrays.
5. NumPy provides the in-built functions for linear algebra and random number generation.

NumPy Environment Setup

NumPy doesn't come bundled with Python. We have to install it using the python pip installer. Execute the
following command.

$ pip install numpy


It is best practice to install NumPy with the full SciPy stack. The binary distribution of the SciPy stack is
specific to the operating systems.
Windows
On the Windows operating system, The SciPy stack is provided by the Anaconda which is a free distribution of
the Python SciPy package.
https://www.anaconda.com/

Installing NumPy

Step 1: Check Python Version


Step 2: Install Pip
The easiest way to install NumPy is by using Pip. Pip a package manager for installing and managing Python
software packages.
The easiest way to install NumPy is by using Pip. Pip a package manager for installing and managing Python
software packages.
Step 3: Install NumPy

With Pip set up, you can use its command line for installing NumPy.

Install NumPy with Python 2 by typing:

pip install numpy

To install NumPy with the package manager for Python 3, run:

pip3 install numpy

Step 4: Verify NumPy Installation


Step 5: Import the NumPy Package
Microsoft Windows [Version 10.0.19045.3693]
(c) Microsoft Corporation. All rights reserved.

C:\Users\Vijay Kumar pc>python


Python 3.10.2 (tags/v3.10.2:a58ebcc, Jan 17 2022, 14:12:15) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print("Hello, World!")
Hello, World!
>>> import numpy
>>> a = numpy.array
>>> print(a)
<built-in function array>
>>> numpy.array(object, dtype = None, copy = True, order = None, subok = False, ndmin = 0)
array(<class 'object'>, dtype=object)
>>> a = numpy.array([[1, 2, 3], [4, 5, 6]])
>>> print(a)
[[1 2 3]
[4 5 6]]
>>>

Installing the matplotlib

Before working with the matplotlib library, we need to install it in out Python environment. Let's see the
following method of installing matplotlib library.
Using Anaconda distribution of Python

The Anaconda distribution is an easiest way to install matplotlib library because matplotlib is pre-installed in it.
So we don't need to further installation.

Using pip command


The pip can also use to install the matplotlib library. Open the command prompt, type the following command.

pip install matplotlib


Confirm the Installation
To verify that matplotlib is installed properly or not, type the following command includes calling .__version __
in the terminal.

You might also like