Contents (Code -065)
2.1 Introduction to python Libraries
2.2 Series
2.3 DataFrame
2.4 Importing and Exporting Data
between CSV Files and DtaFrames
2.5 Pandas Series Vs NumPy ndarray
Introduction to Python Libraries : (code -065)
Python libraries contain of built
Module
– in modules that allow us to
perform many actions without
writing detailed programs for it. Package
Each library in Python contains a
large number of modules that Library
one can import and use
Introduction to Python Libraries: (Code-065)
Introduction to Python Libraries: (Code-065)
NumPy, Pandas and Matplotlib
NumPy
are three well-established
Python libraries for science and
Pandas
analytical use.
These libraries allow us to
Matplotlib
manipulte, transform and
visualise data easily and
efficently.
Introduction to Python Libraries: (Code-065)
Numpy (Numeric Array) Library
It is a Library for the Python Programming
Language , adding support for large , multi-
dimensional array and matrices , along with a
large collection of high-level mathematical
function to operate on these arrays.
The core functionality of Numpy is its “ndarray “
,for n-dimensional array ,data structure.
It was originally createdby by Jim Hugunin with
contributions from serveral other developers.
Introduction to Python Libraries: (Code-065)
Array Creation
>>> import numpy as np
>>> x = np.array([1,2,3])
>>>x
array([1,2,3])
Introdoction to Python Libraries: (Code-065)
Matplotlib Library
Matplotlib is an amazing visualization
library in Python for 2D plots of arrays.
Matplotlib is a multi-platform data
visualization library buit on Numpy
array and designed to work with the
broader SciPy stack.
It was introduced by John Hunter in the
year 2002.
Introduction to Python Libraries: (Code-065)
The Matplotlib library in Python is
uses for potting graphs and
visualisation.
Using Matplotlib, with just a few
lines of code we can generate
publication quality plots, histograms,
bar charts, scatterplots ,etc