國立臺北護理健康大學 NTUHS
Python Packages
Orozco Hsu
2021-12-06
1
About me
• Education
• NCU (MIS)、NCCU (CS)
• Work Experience
• Telecom big data Innovation
• AI projects
• Retail marketing technology
• User Group
• TW Spark User Group
• TW Hadoop User Group
• Taiwan Data Engineer Association Director
• Research
• Big Data/ ML/ AIOT/ AI Columnist
2
Tutorial
Content
3
pandas/ pyarrow/ dask
matplotlib
Homework
numpy
scipy
Code
• Download code
• https://github.com/orozcohsu/ntunhs_2021.git
• Folder
• 20211206_inter_master
4
numpy
• Provide high-performance calculations
• Linear algebra, Fourier transform….
• numpy has a faster processing speed than other python libraries. numpy is
generally for performing basic operations like sorting, indexing, and array
manipulation
• Manipulating numpy
• Create array
• Create matrix
• Matrix slicing
• Matrix axis
• Matrix computation
• add, multiply
• dot
5
numpy.ipynb
• Given two persons (A, B) are betting by coin head or tail
• If A draws head, and A wins one dollar, vice versa.
• The goal is to investigate the result of total dollar amount distribution
by drawing times. (We found the total dollar amount and drawing
time are square root curve distribution)
Random walk
6
1 1 …
-1 1 …
… … …
Drawing times
persons
1 2 …
-1 0 …
… … …
Drawing times – Accumulation amount
persons
random_walk.ipynb
• Monte Carlo method
PI
7
(x1,y1)
(x2,y2)
The ratio of circle area and square area:
Only need the in circle dots (distance <1)
pi.ipynb
scipy
• SciPy provides algorithms for optimization, integration, interpolation,
eigenvalue problems, algebraic equations, differential equations,
statistics and many other classes of problems.
• NumPy stands for Numerical Python while SciPy stands for Scientific
Python.
8
Ref: https://docs.scipy.org/doc/scipy/reference/linalg.html#module-scipy.linalg
pandas
• Working like Excel spreadsheet
• Manipulating data cell with formulas transformation
• series
• dataframe
• iloc, loc
• groupby
• time-series
• visualization
9
pandas.ipynb
pyarrow
• Apache Arrow is a development platform for in-memory analytics. It
contains a set of technologies that enable big data systems to store,
process and move data fast.
• The Arrow Python bindings (also named “PyArrow”) have first-class
integration with NumPy, pandas, and built-in Python objects. They are
based on the C++ implementation of Arrow.
10
Ref: https://arrow.apache.org/docs/python/index.html
pyarrow.ipynb
dask
• Dask is open source and freely available. It is developed in
coordination with other community projects like NumPy, pandas, and
scikit-learn.
11
Ref : https://dask.org/
matplotlib
• Matplotlib is a comprehensive library for creating static, animated,
and interactive visualizations in Python
12
Ref: https://matplotlib.org/
matplotlib.ipynb
Reference
• Try to use those packages and find out the prime number from 0 to
100000
13

More Related Content

PDF
深層学習フレームワーク概要とChainerの事例紹介
PPTX
Deploying signature verification with deep learning
PPTX
Tensorflow 101 @ Machine Learning Innovation Summit SF June 6, 2017
PDF
Koss 1605 machine_learning_mariocho_t10
PPTX
Deep learning with Tensorflow in R
PDF
Deep machine learning by Mario Cho
PPTX
Josh Patterson, Advisor, Skymind – Deep learning for Industry at MLconf ATL 2016
PPTX
Tensorflow vs MxNet
深層学習フレームワーク概要とChainerの事例紹介
Deploying signature verification with deep learning
Tensorflow 101 @ Machine Learning Innovation Summit SF June 6, 2017
Koss 1605 machine_learning_mariocho_t10
Deep learning with Tensorflow in R
Deep machine learning by Mario Cho
Josh Patterson, Advisor, Skymind – Deep learning for Industry at MLconf ATL 2016
Tensorflow vs MxNet

What's hot (20)

PDF
Introduction To TensorFlow
PDF
Icpp power ai-workshop 2018
PDF
TensorFlow
PPTX
Scaling Python to CPUs and GPUs
PDF
Open source ai_technical_trend
PDF
First steps with Keras 2: A tutorial with Examples
PDF
An Introduction to Neural Architecture Search
PDF
Spark Meetup TensorFrames
PDF
TensorFlow and Keras: An Overview
PDF
Large Data Analyze With PyTables
PDF
PyTables
PDF
Keras: Deep Learning Library for Python
PPTX
Introduction to Keras
PDF
World Artificial Intelligence Conference Shanghai 2018
PDF
Large Scale Deep Learning with TensorFlow
PDF
PyCon Estonia 2019
PDF
Hussein Mehanna, Engineering Director, ML Core - Facebook at MLconf ATL 2016
PPTX
TensorFrames: Google Tensorflow on Apache Spark
PDF
TensorFlow 101
Introduction To TensorFlow
Icpp power ai-workshop 2018
TensorFlow
Scaling Python to CPUs and GPUs
Open source ai_technical_trend
First steps with Keras 2: A tutorial with Examples
An Introduction to Neural Architecture Search
Spark Meetup TensorFrames
TensorFlow and Keras: An Overview
Large Data Analyze With PyTables
PyTables
Keras: Deep Learning Library for Python
Introduction to Keras
World Artificial Intelligence Conference Shanghai 2018
Large Scale Deep Learning with TensorFlow
PyCon Estonia 2019
Hussein Mehanna, Engineering Director, ML Core - Facebook at MLconf ATL 2016
TensorFrames: Google Tensorflow on Apache Spark
TensorFlow 101
Ad

Similar to 3 python packages (20)

PDF
Scientific Python
PDF
The Joy of SciPy, Part I
PPTX
Computation Using Scipy, Scikit Image, Scikit Learn
PDF
DS LAB MANUAL.pdf
PDF
Scipy, numpy and friends
PPSX
Lenguaje python en I+D. Numpy, Sympy y Pandas
PDF
Python as number crunching code glue
PDF
Lecture 5 of Stanford university about python librarys
PPTX
Presentation1.pptxvghvfhgvbn nbnmbnbjkbjkbjib
PDF
Numpy,Python Library, Pandas, AI, Machine Learning
PPTX
python_programming_NumPy_Pandas_Notes.pptx
PDF
Python for Scientific Computing -- Ricardo Cruz
PPTX
2.3 SciPy library explained detialed 1.pptx
PPTX
Introduction to Machine Learning by MARK
PPTX
Intellectual technologies
PDF
Py lecture5 python plots
PDF
Travis Oliphant "Python for Speed, Scale, and Science"
PPT
Python crash course libraries numpy-1, panda.ppt
KEY
NumPy/SciPy Statistics
Scientific Python
The Joy of SciPy, Part I
Computation Using Scipy, Scikit Image, Scikit Learn
DS LAB MANUAL.pdf
Scipy, numpy and friends
Lenguaje python en I+D. Numpy, Sympy y Pandas
Python as number crunching code glue
Lecture 5 of Stanford university about python librarys
Presentation1.pptxvghvfhgvbn nbnmbnbjkbjkbjib
Numpy,Python Library, Pandas, AI, Machine Learning
python_programming_NumPy_Pandas_Notes.pptx
Python for Scientific Computing -- Ricardo Cruz
2.3 SciPy library explained detialed 1.pptx
Introduction to Machine Learning by MARK
Intellectual technologies
Py lecture5 python plots
Travis Oliphant "Python for Speed, Scale, and Science"
Python crash course libraries numpy-1, panda.ppt
NumPy/SciPy Statistics
Ad

More from FEG (20)

PDF
Supervised learning in decision tree algorithm
 
PDF
Unsupervised learning in data clustering
 
PDF
CNN_Image Classification for deep learning.pdf
 
PDF
Sequence Model with practicing hands on coding.pdf
 
PDF
Seq2seq Model introduction with practicing hands on coding.pdf
 
PDF
AIGEN introduction with practicing hands on coding.pdf
 
PDF
資料視覺化_Exploation_Data_Analysis_20241015.pdf
 
PDF
Operation_research_Linear_programming_20241015.pdf
 
PDF
Operation_research_Linear_programming_20241112.pdf
 
PDF
非監督是學習_Kmeans_process_visualization20241110.pdf
 
PDF
Sequence Model pytorch at colab with gpu.pdf
 
PDF
學院碩士班_非監督式學習_使用Orange3直接使用_分群_20240417.pdf
 
PDF
資料視覺化_透過Orange3進行_無須寫程式直接使用_碩士學程_202403.pdf
 
PDF
Pytorch cnn netowork introduction 20240318
 
PDF
2023 Decision Tree analysis in business practices
 
PDF
2023 Clustering analysis using Python from scratch
 
PDF
2023 Data visualization using Python from scratch
 
PDF
2023 Supervised Learning for Orange3 from scratch
 
PDF
2023 Supervised_Learning_Association_Rules
 
PDF
202312 Exploration Data Analysis Visualization (English version)
 
Supervised learning in decision tree algorithm
 
Unsupervised learning in data clustering
 
CNN_Image Classification for deep learning.pdf
 
Sequence Model with practicing hands on coding.pdf
 
Seq2seq Model introduction with practicing hands on coding.pdf
 
AIGEN introduction with practicing hands on coding.pdf
 
資料視覺化_Exploation_Data_Analysis_20241015.pdf
 
Operation_research_Linear_programming_20241015.pdf
 
Operation_research_Linear_programming_20241112.pdf
 
非監督是學習_Kmeans_process_visualization20241110.pdf
 
Sequence Model pytorch at colab with gpu.pdf
 
學院碩士班_非監督式學習_使用Orange3直接使用_分群_20240417.pdf
 
資料視覺化_透過Orange3進行_無須寫程式直接使用_碩士學程_202403.pdf
 
Pytorch cnn netowork introduction 20240318
 
2023 Decision Tree analysis in business practices
 
2023 Clustering analysis using Python from scratch
 
2023 Data visualization using Python from scratch
 
2023 Supervised Learning for Orange3 from scratch
 
2023 Supervised_Learning_Association_Rules
 
202312 Exploration Data Analysis Visualization (English version)
 

Recently uploaded (20)

PPTX
IT infrastructure and emerging technologies
PPTX
Thinking Routines and Learning Engagements.pptx
PPT
Acidosis in Dairy Herds: Causes, Signs, Management, Prevention and Treatment
PPTX
UNIT_2-__LIPIDS[1].pptx.................
PPTX
principlesofmanagementsem1slides-131211060335-phpapp01 (1).ppt
PDF
Diabetes Mellitus , types , clinical picture, investigation and managment
PPTX
Neurology of Systemic disease all systems
PPTX
Reproductive system-Human anatomy and physiology
PDF
fundamentals-of-heat-and-mass-transfer-6th-edition_incropera.pdf
PPT
hsl powerpoint resource goyloveh feb 07.ppt
PPTX
4. Diagnosis and treatment planning in RPD.pptx
PDF
Solved Past paper of Pediatric Health Nursing PHN BS Nursing 5th Semester
PPTX
Why I Am A Baptist, History of the Baptist, The Baptist Distinctives, 1st Bap...
PPTX
PLASMA AND ITS CONSTITUENTS 123.pptx
PDF
Horaris_Grups_25-26_Definitiu_15_07_25.pdf
PDF
FYJC - Chemistry textbook - standard 11.
PPT
hemostasis and its significance, physiology
PPTX
Designing Adaptive Learning Paths in Virtual Learning Environments
PDF
faiz-khans about Radiotherapy Physics-02.pdf
PDF
Health aspects of bilberry: A review on its general benefits
IT infrastructure and emerging technologies
Thinking Routines and Learning Engagements.pptx
Acidosis in Dairy Herds: Causes, Signs, Management, Prevention and Treatment
UNIT_2-__LIPIDS[1].pptx.................
principlesofmanagementsem1slides-131211060335-phpapp01 (1).ppt
Diabetes Mellitus , types , clinical picture, investigation and managment
Neurology of Systemic disease all systems
Reproductive system-Human anatomy and physiology
fundamentals-of-heat-and-mass-transfer-6th-edition_incropera.pdf
hsl powerpoint resource goyloveh feb 07.ppt
4. Diagnosis and treatment planning in RPD.pptx
Solved Past paper of Pediatric Health Nursing PHN BS Nursing 5th Semester
Why I Am A Baptist, History of the Baptist, The Baptist Distinctives, 1st Bap...
PLASMA AND ITS CONSTITUENTS 123.pptx
Horaris_Grups_25-26_Definitiu_15_07_25.pdf
FYJC - Chemistry textbook - standard 11.
hemostasis and its significance, physiology
Designing Adaptive Learning Paths in Virtual Learning Environments
faiz-khans about Radiotherapy Physics-02.pdf
Health aspects of bilberry: A review on its general benefits

3 python packages

  • 2. About me • Education • NCU (MIS)、NCCU (CS) • Work Experience • Telecom big data Innovation • AI projects • Retail marketing technology • User Group • TW Spark User Group • TW Hadoop User Group • Taiwan Data Engineer Association Director • Research • Big Data/ ML/ AIOT/ AI Columnist 2
  • 4. Code • Download code • https://github.com/orozcohsu/ntunhs_2021.git • Folder • 20211206_inter_master 4
  • 5. numpy • Provide high-performance calculations • Linear algebra, Fourier transform…. • numpy has a faster processing speed than other python libraries. numpy is generally for performing basic operations like sorting, indexing, and array manipulation • Manipulating numpy • Create array • Create matrix • Matrix slicing • Matrix axis • Matrix computation • add, multiply • dot 5 numpy.ipynb
  • 6. • Given two persons (A, B) are betting by coin head or tail • If A draws head, and A wins one dollar, vice versa. • The goal is to investigate the result of total dollar amount distribution by drawing times. (We found the total dollar amount and drawing time are square root curve distribution) Random walk 6 1 1 … -1 1 … … … … Drawing times persons 1 2 … -1 0 … … … … Drawing times – Accumulation amount persons random_walk.ipynb
  • 7. • Monte Carlo method PI 7 (x1,y1) (x2,y2) The ratio of circle area and square area: Only need the in circle dots (distance <1) pi.ipynb
  • 8. scipy • SciPy provides algorithms for optimization, integration, interpolation, eigenvalue problems, algebraic equations, differential equations, statistics and many other classes of problems. • NumPy stands for Numerical Python while SciPy stands for Scientific Python. 8 Ref: https://docs.scipy.org/doc/scipy/reference/linalg.html#module-scipy.linalg
  • 9. pandas • Working like Excel spreadsheet • Manipulating data cell with formulas transformation • series • dataframe • iloc, loc • groupby • time-series • visualization 9 pandas.ipynb
  • 10. pyarrow • Apache Arrow is a development platform for in-memory analytics. It contains a set of technologies that enable big data systems to store, process and move data fast. • The Arrow Python bindings (also named “PyArrow”) have first-class integration with NumPy, pandas, and built-in Python objects. They are based on the C++ implementation of Arrow. 10 Ref: https://arrow.apache.org/docs/python/index.html pyarrow.ipynb
  • 11. dask • Dask is open source and freely available. It is developed in coordination with other community projects like NumPy, pandas, and scikit-learn. 11 Ref : https://dask.org/
  • 12. matplotlib • Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python 12 Ref: https://matplotlib.org/ matplotlib.ipynb
  • 13. Reference • Try to use those packages and find out the prime number from 0 to 100000 13