SlideShare une entreprise Scribd logo
1  sur  15
Télécharger pour lire hors ligne
Subject : Intellectual Technologies
Teacher: Etibar Rzazada
Student: Polad Sarukhanov
Scipy-Python
framework for data
analysis
Group: 672.7E
Introduction
 Python is an interpreted, high-level and general-purpose
programming language. Python's design philosophy emphasizes code
readability with its notable use of significant whitespace.
Its language constructs and object-oriented approach aim to
help programmers write clear, logical code for small and large-scale
projects.
 Python is increasingly becoming the language of choice for technical
applications such as Data Science and Machine Learning. Among its
other desirable properties, its libraries have played a part in making
work easier for many professionals whose jobs rely on numerical
analysis and data manipulation.
Introduction
 SciPy is a python library that is useful in solving many mathematical equations and
algorithms. It is designed on the top of NumPy library that gives more extension of
finding scientific mathematical formulae like Matrix Rank, Inverse, polynomial
equations, LU Decomposition, etc. Using its high level functions will significantly reduce
the complexity of the code and helps in better analyzing the data. SciPy is an interactive
Python session used as a data-processing library that is made to compete with its
rivalries such as MATLAB, Octave, R-Lab,etc. It has many user-friendly, efficient and
easy-to-use functions that helps to solve problems like numerical integration,
interpolation, optimization, linear algebra and statistics.
SciPy Sub-packages
 SciPy is organized into sub-packages covering different scientific computing
domains. These are summarized in the following table −
What is NumPy
 Python is a fabulous language
 Easy to extend
 Great syntax which encourages
easy to write and maintain code
 Incredibly large standard-library
and third-party tools
 No built-in multi-dimensional array
but it supports the needed syntax for
extracting elements from one
 NumPy provides a fast built-in object
ndarray which is a multi-dimensional
array of a homogeneous data-type.
NumPy Array
 A NumPy array is an N-dimensional homogeneous collection of
“items” of the same “kind”. The kind can be any arbitrary
structure and is specified using the data-type.
Some benefits of using SciPy
 The benefit of using SciPy library in Python while making ML models is that it also
makes a strong programming language available for use in developing less complex
programs and applications.
# import numpy library
import numpy as np
A = np.array([[1,2,3],[4,5,6],[7,8,8]])
1.Determinant of matrix
# importing linalg function from scipy
from scipy import linalg
# Compute the determinant of a matrix
linalg.det(A)
2.Computer pivoted LU decomposition of matrix
 LU decomposition is a method that reduce matrix into constituent parts that helps in easier calculation of
complex matrix operations. The decomposition methods are also called matrix factorization methods, are
base of linear algebra in computers, even for basic operations such as solving systems of linear equations,
calculating the inverse, and calculating the determinant of a matrix.
The decomposition is:
A = P L U
where P is a permutation matrix, L lower triangular with unit diagonal elements, and U upper triangular.
P, L, U = linalg.lu(A)
print(P)
print(L)
print(U)
# print LU decomposition
print(np.dot(L,U))
3.Sparce linear algebra
SciPy has some routines for computing with sparse and potentially very large matrices. The
necessary tools are in the submodule scipy.sparse.
Lets look on how to construct a large sparse matrix:
# import necessary modules
from scipy import sparse
# Row-based linked list sparse matrix
A = sparse.lil_matrix((1000, 1000))
print(A)
A[0,:100] = np.random.rand(100)
A[1,100:200] = A[0,:100]
A.setdiag(np.random.rand(1000))
print(A)
4. Single Integrals
 The Quad routine is the important function out of SciPy’s integration functions. If integration in over
f(x) function where x ranges from a to b, then integral looks like this.
 The parameters of quad is scipy.integrate.quad(f, a, b),
 Where ‘f’ is the function to be integrated. Whereas, ‘a’ and ‘b’ are the lower and upper ranges
of x limit. Let us see an example of integrating
over the range of 0 and 1 with respect to dx.
We will first define the function f(x)=e^(-x^2) , this is done using a lambda expression and then use
quad routine.
import scipy.integrate
f= lambda x:np.exp(-x**2)
# print results
i = scipy.integrate.quad(f, 0, 1)
print(i)
5.Double Integrals
The parameters of dblquad function is scipy.integrate.dblquad(f, a, b, g, h). Where, ‘f’ is the function to be
integrated, ‘a’ and ‘b’ are the lower and upper ranges of the x variable, respectively, while ‘g’ and ‘h’ are the
functions that tells the lower and upper limits of y variable.
As an example, let us perform the double integral of x*y^2 over x range from 0 to 2 and y ranges from 0 to
We define the functions f, g, and h, using the lambda expressions. Note that even if g and h are constants, as
they may be in many cases, they must be defined as functions, as we have done here for the lower limit.
from scipy import integrate
f = lambda y, x: x*y**2
i = integrate.dblquad(f, 0, 2, lambda x: 0, lambda x: 1)
# print the results
print(i)
6.Line Plots
7.Statistics
10 standard
discrete
distribution
s (plus any
arbitrary
finite RV)
METHODS
scipy.stats --- Discrete Distributions
pdf
cdf
rvs
ppf
stats
MatPlotLib
 The are many advantages of using SciPy library in Python including powerful plotting
commands and 3D visualization which requires MatPlotLib extension :
Visualizing a 3d array :
THANKS

Contenu connexe

Tendances

Five python libraries should know for machine learning
Five python libraries should know for machine learningFive python libraries should know for machine learning
Five python libraries should know for machine learningNaveen Davis
 
Data visualization in Python
Data visualization in PythonData visualization in Python
Data visualization in PythonMarc Garcia
 
The evolution of array computing in Python
The evolution of array computing in PythonThe evolution of array computing in Python
The evolution of array computing in PythonRalf Gommers
 
Data structures using C
Data structures using CData structures using C
Data structures using CPdr Patnaik
 
Introduction to datastructure and algorithm
Introduction to datastructure and algorithmIntroduction to datastructure and algorithm
Introduction to datastructure and algorithmPratik Mota
 
High Performance Python - Marc Garcia
High Performance Python - Marc GarciaHigh Performance Python - Marc Garcia
High Performance Python - Marc GarciaMarc Garcia
 
Data structure and algorithm using java
Data structure and algorithm using javaData structure and algorithm using java
Data structure and algorithm using javaNarayan Sau
 
The ABC of Implementing Supervised Machine Learning with Python.pptx
The ABC of Implementing Supervised Machine Learning with Python.pptxThe ABC of Implementing Supervised Machine Learning with Python.pptx
The ABC of Implementing Supervised Machine Learning with Python.pptxRuby Shrestha
 
Introduction to matplotlib
Introduction to matplotlibIntroduction to matplotlib
Introduction to matplotlibPiyush rai
 
1 cs xii_python_functions_introduction _types of func
1 cs xii_python_functions_introduction _types of func1 cs xii_python_functions_introduction _types of func
1 cs xii_python_functions_introduction _types of funcSanjayKumarMahto1
 
Data structure and algorithm
Data structure and algorithmData structure and algorithm
Data structure and algorithmTrupti Agrawal
 
Machine learning libraries with python
Machine learning libraries with pythonMachine learning libraries with python
Machine learning libraries with pythonVishalBisht9217
 
The Joy of SciPy
The Joy of SciPyThe Joy of SciPy
The Joy of SciPykammeyer
 

Tendances (20)

Essential NumPy
Essential NumPyEssential NumPy
Essential NumPy
 
Five python libraries should know for machine learning
Five python libraries should know for machine learningFive python libraries should know for machine learning
Five python libraries should know for machine learning
 
Introduction to numpy
Introduction to numpyIntroduction to numpy
Introduction to numpy
 
Data visualization in Python
Data visualization in PythonData visualization in Python
Data visualization in Python
 
NUMPY
NUMPY NUMPY
NUMPY
 
NumPy
NumPyNumPy
NumPy
 
The evolution of array computing in Python
The evolution of array computing in PythonThe evolution of array computing in Python
The evolution of array computing in Python
 
Data structures using C
Data structures using CData structures using C
Data structures using C
 
Data Structure and Algorithms
Data Structure and AlgorithmsData Structure and Algorithms
Data Structure and Algorithms
 
Introduction to datastructure and algorithm
Introduction to datastructure and algorithmIntroduction to datastructure and algorithm
Introduction to datastructure and algorithm
 
High Performance Python - Marc Garcia
High Performance Python - Marc GarciaHigh Performance Python - Marc Garcia
High Performance Python - Marc Garcia
 
Data structure and algorithm using java
Data structure and algorithm using javaData structure and algorithm using java
Data structure and algorithm using java
 
Object reusability in python
Object reusability in pythonObject reusability in python
Object reusability in python
 
The ABC of Implementing Supervised Machine Learning with Python.pptx
The ABC of Implementing Supervised Machine Learning with Python.pptxThe ABC of Implementing Supervised Machine Learning with Python.pptx
The ABC of Implementing Supervised Machine Learning with Python.pptx
 
Introduction to matplotlib
Introduction to matplotlibIntroduction to matplotlib
Introduction to matplotlib
 
1 cs xii_python_functions_introduction _types of func
1 cs xii_python_functions_introduction _types of func1 cs xii_python_functions_introduction _types of func
1 cs xii_python_functions_introduction _types of func
 
Data structure and algorithm
Data structure and algorithmData structure and algorithm
Data structure and algorithm
 
Scipy, numpy and friends
Scipy, numpy and friendsScipy, numpy and friends
Scipy, numpy and friends
 
Machine learning libraries with python
Machine learning libraries with pythonMachine learning libraries with python
Machine learning libraries with python
 
The Joy of SciPy
The Joy of SciPyThe Joy of SciPy
The Joy of SciPy
 

Similaire à Intellectual technologies

summer training report on python
summer training report on pythonsummer training report on python
summer training report on pythonShubham Yadav
 
Python interview questions and answers
Python interview questions and answersPython interview questions and answers
Python interview questions and answerskavinilavuG
 
Python interview questions and answers
Python interview questions and answersPython interview questions and answers
Python interview questions and answersRojaPriya
 
Functional Programming.pptx
Functional Programming.pptxFunctional Programming.pptx
Functional Programming.pptxKarthickT28
 
Standardizing arrays -- Microsoft Presentation
Standardizing arrays -- Microsoft PresentationStandardizing arrays -- Microsoft Presentation
Standardizing arrays -- Microsoft PresentationTravis Oliphant
 
pythontraining-201jn026043638.pptx
pythontraining-201jn026043638.pptxpythontraining-201jn026043638.pptx
pythontraining-201jn026043638.pptxRohitKumar639388
 
Introduction_to_Python.pptx
Introduction_to_Python.pptxIntroduction_to_Python.pptx
Introduction_to_Python.pptxVinay Chowdary
 
Programming Languages - Functional Programming Paper
Programming Languages - Functional Programming PaperProgramming Languages - Functional Programming Paper
Programming Languages - Functional Programming PaperShreya Chakrabarti
 
First Steps in Python Programming
First Steps in Python ProgrammingFirst Steps in Python Programming
First Steps in Python ProgrammingDozie Agbo
 
Ds12 140715025807-phpapp02
Ds12 140715025807-phpapp02Ds12 140715025807-phpapp02
Ds12 140715025807-phpapp02Salman Qamar
 
Python functional programming
Python functional programmingPython functional programming
Python functional programmingGeison Goes
 
Python For Data Science.pptx
Python For Data Science.pptxPython For Data Science.pptx
Python For Data Science.pptxrohithprabhas1
 
Python Interview Questions For Experienced
Python Interview Questions For ExperiencedPython Interview Questions For Experienced
Python Interview Questions For Experiencedzynofustechnology
 
employee turnover prediction document.docx
employee turnover prediction document.docxemployee turnover prediction document.docx
employee turnover prediction document.docxrohithprabhas1
 

Similaire à Intellectual technologies (20)

summer training report on python
summer training report on pythonsummer training report on python
summer training report on python
 
Python
PythonPython
Python
 
Python interview questions and answers
Python interview questions and answersPython interview questions and answers
Python interview questions and answers
 
Scientific Python
Scientific PythonScientific Python
Scientific Python
 
Python interview questions and answers
Python interview questions and answersPython interview questions and answers
Python interview questions and answers
 
Functional Programming.pptx
Functional Programming.pptxFunctional Programming.pptx
Functional Programming.pptx
 
Standardizing arrays -- Microsoft Presentation
Standardizing arrays -- Microsoft PresentationStandardizing arrays -- Microsoft Presentation
Standardizing arrays -- Microsoft Presentation
 
pythontraining-201jn026043638.pptx
pythontraining-201jn026043638.pptxpythontraining-201jn026043638.pptx
pythontraining-201jn026043638.pptx
 
final
finalfinal
final
 
Python training
Python trainingPython training
Python training
 
Inroduction to r
Inroduction to rInroduction to r
Inroduction to r
 
Introduction_to_Python.pptx
Introduction_to_Python.pptxIntroduction_to_Python.pptx
Introduction_to_Python.pptx
 
Programming Languages - Functional Programming Paper
Programming Languages - Functional Programming PaperProgramming Languages - Functional Programming Paper
Programming Languages - Functional Programming Paper
 
First Steps in Python Programming
First Steps in Python ProgrammingFirst Steps in Python Programming
First Steps in Python Programming
 
Ds12 140715025807-phpapp02
Ds12 140715025807-phpapp02Ds12 140715025807-phpapp02
Ds12 140715025807-phpapp02
 
Python functional programming
Python functional programmingPython functional programming
Python functional programming
 
Python For Data Science.pptx
Python For Data Science.pptxPython For Data Science.pptx
Python For Data Science.pptx
 
CPPDS Slide.pdf
CPPDS Slide.pdfCPPDS Slide.pdf
CPPDS Slide.pdf
 
Python Interview Questions For Experienced
Python Interview Questions For ExperiencedPython Interview Questions For Experienced
Python Interview Questions For Experienced
 
employee turnover prediction document.docx
employee turnover prediction document.docxemployee turnover prediction document.docx
employee turnover prediction document.docx
 

Dernier

SFBA Splunk Usergroup meeting March 13, 2024
SFBA Splunk Usergroup meeting March 13, 2024SFBA Splunk Usergroup meeting March 13, 2024
SFBA Splunk Usergroup meeting March 13, 2024Becky Burwell
 
Mapping the pubmed data under different suptopics using NLP.pptx
Mapping the pubmed data under different suptopics using NLP.pptxMapping the pubmed data under different suptopics using NLP.pptx
Mapping the pubmed data under different suptopics using NLP.pptxVenkatasubramani13
 
Create Data Model & Conduct Visualisation in Power BI Desktop
Create Data Model & Conduct Visualisation in Power BI DesktopCreate Data Model & Conduct Visualisation in Power BI Desktop
Create Data Model & Conduct Visualisation in Power BI DesktopThinkInnovation
 
ChistaDATA Real-Time DATA Analytics Infrastructure
ChistaDATA Real-Time DATA Analytics InfrastructureChistaDATA Real-Time DATA Analytics Infrastructure
ChistaDATA Real-Time DATA Analytics Infrastructuresonikadigital1
 
Elements of language learning - an analysis of how different elements of lang...
Elements of language learning - an analysis of how different elements of lang...Elements of language learning - an analysis of how different elements of lang...
Elements of language learning - an analysis of how different elements of lang...PrithaVashisht1
 
Persuasive E-commerce, Our Biased Brain @ Bikkeldag 2024
Persuasive E-commerce, Our Biased Brain @ Bikkeldag 2024Persuasive E-commerce, Our Biased Brain @ Bikkeldag 2024
Persuasive E-commerce, Our Biased Brain @ Bikkeldag 2024Guido X Jansen
 
Master's Thesis - Data Science - Presentation
Master's Thesis - Data Science - PresentationMaster's Thesis - Data Science - Presentation
Master's Thesis - Data Science - PresentationGiorgio Carbone
 
YourView Panel Book.pptx YourView Panel Book.
YourView Panel Book.pptx YourView Panel Book.YourView Panel Book.pptx YourView Panel Book.
YourView Panel Book.pptx YourView Panel Book.JasonViviers2
 
The Universal GTM - how we design GTM and dataLayer
The Universal GTM - how we design GTM and dataLayerThe Universal GTM - how we design GTM and dataLayer
The Universal GTM - how we design GTM and dataLayerPavel Šabatka
 
Cash Is Still King: ATM market research '2023
Cash Is Still King: ATM market research '2023Cash Is Still King: ATM market research '2023
Cash Is Still King: ATM market research '2023Vladislav Solodkiy
 
5 Ds to Define Data Archiving Best Practices
5 Ds to Define Data Archiving Best Practices5 Ds to Define Data Archiving Best Practices
5 Ds to Define Data Archiving Best PracticesDataArchiva
 
MEASURES OF DISPERSION I BSc Botany .ppt
MEASURES OF DISPERSION I BSc Botany .pptMEASURES OF DISPERSION I BSc Botany .ppt
MEASURES OF DISPERSION I BSc Botany .pptaigil2
 
Cyclistic Memberships Data Analysis Project
Cyclistic Memberships Data Analysis ProjectCyclistic Memberships Data Analysis Project
Cyclistic Memberships Data Analysis Projectdanielbell861
 

Dernier (13)

SFBA Splunk Usergroup meeting March 13, 2024
SFBA Splunk Usergroup meeting March 13, 2024SFBA Splunk Usergroup meeting March 13, 2024
SFBA Splunk Usergroup meeting March 13, 2024
 
Mapping the pubmed data under different suptopics using NLP.pptx
Mapping the pubmed data under different suptopics using NLP.pptxMapping the pubmed data under different suptopics using NLP.pptx
Mapping the pubmed data under different suptopics using NLP.pptx
 
Create Data Model & Conduct Visualisation in Power BI Desktop
Create Data Model & Conduct Visualisation in Power BI DesktopCreate Data Model & Conduct Visualisation in Power BI Desktop
Create Data Model & Conduct Visualisation in Power BI Desktop
 
ChistaDATA Real-Time DATA Analytics Infrastructure
ChistaDATA Real-Time DATA Analytics InfrastructureChistaDATA Real-Time DATA Analytics Infrastructure
ChistaDATA Real-Time DATA Analytics Infrastructure
 
Elements of language learning - an analysis of how different elements of lang...
Elements of language learning - an analysis of how different elements of lang...Elements of language learning - an analysis of how different elements of lang...
Elements of language learning - an analysis of how different elements of lang...
 
Persuasive E-commerce, Our Biased Brain @ Bikkeldag 2024
Persuasive E-commerce, Our Biased Brain @ Bikkeldag 2024Persuasive E-commerce, Our Biased Brain @ Bikkeldag 2024
Persuasive E-commerce, Our Biased Brain @ Bikkeldag 2024
 
Master's Thesis - Data Science - Presentation
Master's Thesis - Data Science - PresentationMaster's Thesis - Data Science - Presentation
Master's Thesis - Data Science - Presentation
 
YourView Panel Book.pptx YourView Panel Book.
YourView Panel Book.pptx YourView Panel Book.YourView Panel Book.pptx YourView Panel Book.
YourView Panel Book.pptx YourView Panel Book.
 
The Universal GTM - how we design GTM and dataLayer
The Universal GTM - how we design GTM and dataLayerThe Universal GTM - how we design GTM and dataLayer
The Universal GTM - how we design GTM and dataLayer
 
Cash Is Still King: ATM market research '2023
Cash Is Still King: ATM market research '2023Cash Is Still King: ATM market research '2023
Cash Is Still King: ATM market research '2023
 
5 Ds to Define Data Archiving Best Practices
5 Ds to Define Data Archiving Best Practices5 Ds to Define Data Archiving Best Practices
5 Ds to Define Data Archiving Best Practices
 
MEASURES OF DISPERSION I BSc Botany .ppt
MEASURES OF DISPERSION I BSc Botany .pptMEASURES OF DISPERSION I BSc Botany .ppt
MEASURES OF DISPERSION I BSc Botany .ppt
 
Cyclistic Memberships Data Analysis Project
Cyclistic Memberships Data Analysis ProjectCyclistic Memberships Data Analysis Project
Cyclistic Memberships Data Analysis Project
 

Intellectual technologies

  • 1. Subject : Intellectual Technologies Teacher: Etibar Rzazada Student: Polad Sarukhanov Scipy-Python framework for data analysis Group: 672.7E
  • 2. Introduction  Python is an interpreted, high-level and general-purpose programming language. Python's design philosophy emphasizes code readability with its notable use of significant whitespace. Its language constructs and object-oriented approach aim to help programmers write clear, logical code for small and large-scale projects.  Python is increasingly becoming the language of choice for technical applications such as Data Science and Machine Learning. Among its other desirable properties, its libraries have played a part in making work easier for many professionals whose jobs rely on numerical analysis and data manipulation.
  • 3. Introduction  SciPy is a python library that is useful in solving many mathematical equations and algorithms. It is designed on the top of NumPy library that gives more extension of finding scientific mathematical formulae like Matrix Rank, Inverse, polynomial equations, LU Decomposition, etc. Using its high level functions will significantly reduce the complexity of the code and helps in better analyzing the data. SciPy is an interactive Python session used as a data-processing library that is made to compete with its rivalries such as MATLAB, Octave, R-Lab,etc. It has many user-friendly, efficient and easy-to-use functions that helps to solve problems like numerical integration, interpolation, optimization, linear algebra and statistics.
  • 4. SciPy Sub-packages  SciPy is organized into sub-packages covering different scientific computing domains. These are summarized in the following table −
  • 5. What is NumPy  Python is a fabulous language  Easy to extend  Great syntax which encourages easy to write and maintain code  Incredibly large standard-library and third-party tools  No built-in multi-dimensional array but it supports the needed syntax for extracting elements from one  NumPy provides a fast built-in object ndarray which is a multi-dimensional array of a homogeneous data-type.
  • 6. NumPy Array  A NumPy array is an N-dimensional homogeneous collection of “items” of the same “kind”. The kind can be any arbitrary structure and is specified using the data-type.
  • 7. Some benefits of using SciPy  The benefit of using SciPy library in Python while making ML models is that it also makes a strong programming language available for use in developing less complex programs and applications. # import numpy library import numpy as np A = np.array([[1,2,3],[4,5,6],[7,8,8]]) 1.Determinant of matrix # importing linalg function from scipy from scipy import linalg # Compute the determinant of a matrix linalg.det(A)
  • 8. 2.Computer pivoted LU decomposition of matrix  LU decomposition is a method that reduce matrix into constituent parts that helps in easier calculation of complex matrix operations. The decomposition methods are also called matrix factorization methods, are base of linear algebra in computers, even for basic operations such as solving systems of linear equations, calculating the inverse, and calculating the determinant of a matrix. The decomposition is: A = P L U where P is a permutation matrix, L lower triangular with unit diagonal elements, and U upper triangular. P, L, U = linalg.lu(A) print(P) print(L) print(U) # print LU decomposition print(np.dot(L,U))
  • 9. 3.Sparce linear algebra SciPy has some routines for computing with sparse and potentially very large matrices. The necessary tools are in the submodule scipy.sparse. Lets look on how to construct a large sparse matrix: # import necessary modules from scipy import sparse # Row-based linked list sparse matrix A = sparse.lil_matrix((1000, 1000)) print(A) A[0,:100] = np.random.rand(100) A[1,100:200] = A[0,:100] A.setdiag(np.random.rand(1000)) print(A)
  • 10. 4. Single Integrals  The Quad routine is the important function out of SciPy’s integration functions. If integration in over f(x) function where x ranges from a to b, then integral looks like this.  The parameters of quad is scipy.integrate.quad(f, a, b),  Where ‘f’ is the function to be integrated. Whereas, ‘a’ and ‘b’ are the lower and upper ranges of x limit. Let us see an example of integrating over the range of 0 and 1 with respect to dx. We will first define the function f(x)=e^(-x^2) , this is done using a lambda expression and then use quad routine. import scipy.integrate f= lambda x:np.exp(-x**2) # print results i = scipy.integrate.quad(f, 0, 1) print(i)
  • 11. 5.Double Integrals The parameters of dblquad function is scipy.integrate.dblquad(f, a, b, g, h). Where, ‘f’ is the function to be integrated, ‘a’ and ‘b’ are the lower and upper ranges of the x variable, respectively, while ‘g’ and ‘h’ are the functions that tells the lower and upper limits of y variable. As an example, let us perform the double integral of x*y^2 over x range from 0 to 2 and y ranges from 0 to We define the functions f, g, and h, using the lambda expressions. Note that even if g and h are constants, as they may be in many cases, they must be defined as functions, as we have done here for the lower limit. from scipy import integrate f = lambda y, x: x*y**2 i = integrate.dblquad(f, 0, 2, lambda x: 0, lambda x: 1) # print the results print(i)
  • 13. 7.Statistics 10 standard discrete distribution s (plus any arbitrary finite RV) METHODS scipy.stats --- Discrete Distributions pdf cdf rvs ppf stats
  • 14. MatPlotLib  The are many advantages of using SciPy library in Python including powerful plotting commands and 3D visualization which requires MatPlotLib extension : Visualizing a 3d array :