Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Data Wrangling Week 7
1. Data Wrangling
Week 7
Dr. Ferdin Joe John Joseph
Faculty of Information Technology
Thai – Nichi Institute of Technology, Bangkok
2. Today’s Lesson
• Introduction to Numpy
• Numpy - Theories
• Numpy usage in Python
• Demonstration
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
2
3. Numpy
• Python library for scientific computing
• Install in command prompt
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
3
4. Usage of Numpy
• Managing n dimensional arrays
• Mathematical functions like fourier transform, linear algebra and random
number generator
• Backbone of data science in python
• Pandas is built on top of this
• Created in 2005 by Travis Oliphant
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
4
5. Import numpy
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
5
6. np notation
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
6
25. Jump two indices
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
25
26. Slicing 2 dimensional arrays
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
26
27. Activity
• Using numpy perform matrix multiplication of two dimensional arrays
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
27
28. Activity
• Using numpy create pascal’s triangle
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
28
29. Revision- Pre Mid Term
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
29
30. Next Week
Faculty of Information Technology, Thai - Nichi Institute of
Technology, Bangkok
https://github.com/ferdinjoe/DSA201
30