SlideShare a Scribd company logo
1 of 27
PYTHON 101
Introduction to Python and Pandas
Google Colab as our working
environment
https://colab.research.google.com/
What is Python?
Python is a high-level, general purpose
programming language. It was created by
Guido van Rossum, and released in 1990.
It was named after a British comedy troupe
Monty Python.
This cool guy is Guido
1.Open source, general-purpose language
2.Highly readable, reusable, easy to maintain
3.English-like syntax
4.Interpreted language
5.Dynamically-typed
6.A large set of libraries and packages
7.Portable
8.Cross-platform
Python features
Forget curly
brackets and
semicolons {;
Python uses
indentation to
define scopes
public class Main {
public static void main(String[]
args) {
System.out.println(“Hello
World”);
}
}
#include <stdio.h>
#include <stdlib.h>
int main() {
printf(“Hello world”);
return 0;
}
JAVA C
>>> print(“Hello world!”)
PYTHON
Hello world!
A comment is a piece of text within a program that is not
executed. It provides additional information to help us
understand the code.
The # character is used to start a comment and it continues until the end
of line.
Comments
Variables
my_variable = 5
The equal sign = is used to assign a value to a variable.
After the initial assignment is made, the value of a variable can be updated
to new values as needed.
Notice: We don't need to tell Python what type of value my_variable is referring to.
A variable is used to store data that will be used by the
program. This data can be a number, a string, a Boolean, a
list or some other data type.
Values in Python
-5 # Integer type
23.1 # Float type
“Some words” # String
True # Boolean
● + for addition
● - for subtraction
● * for multiplication
● / for division
● % modulus (returns the remainder)
● ** for exponentiation
● // floor division (or known integer division)
Arithmetic Operators
The primary arithmetic operators are:
# examples with arithmetic operations
>>> 10 + 30
40
>>> 40 - 10
30
>>> 50 * 5
250
>>> 16 / 4
4.0
>>> 5 // 2 # floor division (integer division)
2
>>> 25 % 2
1
>>> 5 ** 3 # 5 to the power of 3
125
COMPARISON OPERATORS & LOGIC
OPERATORS
Comparison operators : ==, >, <, >=, <=, !=
Logical operators : or, and
Strings
Like many other popular programming languages,
strings in Python are arrays of bytes
representing unicode characters.
They are either surrounded by either single quotation
marks or double.
‘Hello’ is the same as “Hello”
Multiple line strings can be surrounded by three
double quotes or three single quotes
Selection structures
if/elif/else
All explained in the notebooks
Repetition structures
for, while
All explained in the notebooks
In Python, lists are ordered collections of items that
allow for easy use of a set of data
List values are placed in between square brackets [ ] ,
separated by commas.
My_list = [1, 12, 7, 3, 3]
Lists
Python Lists: Data types
In Python, lists are a versatile data type that can
contain multiple different data types within the same
square brackets. The possible data types within a list
include numbers, strings, other objects, and even other
Lists.
numbers = [1, 2, 3, 4, 10]
names = ['Jenny', 'Sam', 'Alexis']
mixed = ['Jenny', 1, 2]
list_of_lists = [['a', 1], ['b', 2]]
Learn more about lists in the notebook
Tuples
Tuples are used to store multiple items in a single
variable.
A tuple is a collection which is ordered and unchangeable.
Tuples are written with round brackets.
My_tuple = (2, 3.5, “Hello”)
thisdict = {
"brand": "Ford",
"model": "Mustang",
"year": 1964
}
Dictionaries
Dictionaries are used to store data values in key:value
pairs.
A dictionary is a collection which is ordered, changeable
and do not allow duplicates.
Functions
Some tasks need to be performed multiple
times within a program. Rather than rewrite
the same code in multiple places, a function
may be defined using the def keyword.
Function definitions may include parameters,
providing data input to the function.
Functions may return a value using the return
keyword followed by the value to return.
Sets
A set is an unordered collection of distinct
of elements.
A set itself may be modified, but the elements
contained in the set must be of immutable
type.Set items are unordered, unchangeable,
and do not allow duplicate values.
position_set = {‘ceo’,’manager’,
‘financier’}
Classes
Classes are user-defined blueprint or prototype
from which objects are created
Creating a new class creates a new type of
object, allowing new instances of that type to
be made.
class Student:
def __init__(self,name):
self.name = name
def say_hello(self):
print(“Hello there, my name is”, self.name)
student = Student(“Albin”)
student.say_hello()
Methods
Unlike a function, methods are called on an
object. A method can operate on the data(instance
variables) that is contained by the corresponding
class.
User-defined method:
class DevClub:
def method_example(self):
print(“You are the members of Google DSC” )
ref = DevClub()
ref.method_example()
Inbuilt method:
floor_value = math.floor(17.35)
PANDAS
The most popular Python library for data
analysis
● Calculate statistics and answer questions about the data, like:
■ What's the average, median, max, or min of each column?
■ Does column A correlate with column B?
■ What does the distribution of data in column C look like?
● Clean the data by doing things like removing missing values and filtering
rows or columns by some criteria
● Visualize the data with help from Matplotlib. Plot bars, lines, histograms,
bubbles, and more.
● Store the cleaned, transformed data back into a CSV, other file or
database
What's Pandas for?
Examples of data visualizations
Series VS DataFrame

More Related Content

Similar to PYTHON 101.pptx

These questions will be a bit advanced level 2
These questions will be a bit advanced level 2These questions will be a bit advanced level 2
These questions will be a bit advanced level 2sadhana312471
 
pythontraining-201jn026043638.pptx
pythontraining-201jn026043638.pptxpythontraining-201jn026043638.pptx
pythontraining-201jn026043638.pptxRohitKumar639388
 
Interview-level-QA-on-Python-Programming.pdf
Interview-level-QA-on-Python-Programming.pdfInterview-level-QA-on-Python-Programming.pdf
Interview-level-QA-on-Python-Programming.pdfExaminationSectionMR
 
python programming for beginners and advanced
python programming for beginners and advancedpython programming for beginners and advanced
python programming for beginners and advancedgranjith6
 
Functions in Python Syntax and working .
Functions in Python Syntax and working .Functions in Python Syntax and working .
Functions in Python Syntax and working .tarunsharmaug23
 
C++ Langauage Training in Ambala ! BATRA COMPUTER CENTRE
C++  Langauage Training in Ambala ! BATRA COMPUTER CENTREC++  Langauage Training in Ambala ! BATRA COMPUTER CENTRE
C++ Langauage Training in Ambala ! BATRA COMPUTER CENTREjatin batra
 
Python PPT by Sushil Sir.pptx
Python PPT by Sushil Sir.pptxPython PPT by Sushil Sir.pptx
Python PPT by Sushil Sir.pptxsushil155005
 
Automation Testing theory notes.pptx
Automation Testing theory notes.pptxAutomation Testing theory notes.pptx
Automation Testing theory notes.pptxNileshBorkar12
 
Python interview questions and answers
Python interview questions and answersPython interview questions and answers
Python interview questions and answerskavinilavuG
 
Top Most Python Interview Questions.pdf
Top Most Python Interview Questions.pdfTop Most Python Interview Questions.pdf
Top Most Python Interview Questions.pdfDatacademy.ai
 
Python interview questions and answers
Python interview questions and answersPython interview questions and answers
Python interview questions and answersRojaPriya
 
Python (3).pdf
Python (3).pdfPython (3).pdf
Python (3).pdfsamiwaris2
 
Mastering Python lesson 4_functions_parameters_arguments
Mastering Python lesson 4_functions_parameters_argumentsMastering Python lesson 4_functions_parameters_arguments
Mastering Python lesson 4_functions_parameters_argumentsRuth Marvin
 

Similar to PYTHON 101.pptx (20)

bhaskars.pptx
bhaskars.pptxbhaskars.pptx
bhaskars.pptx
 
These questions will be a bit advanced level 2
These questions will be a bit advanced level 2These questions will be a bit advanced level 2
These questions will be a bit advanced level 2
 
pythontraining-201jn026043638.pptx
pythontraining-201jn026043638.pptxpythontraining-201jn026043638.pptx
pythontraining-201jn026043638.pptx
 
Interview-level-QA-on-Python-Programming.pdf
Interview-level-QA-on-Python-Programming.pdfInterview-level-QA-on-Python-Programming.pdf
Interview-level-QA-on-Python-Programming.pdf
 
python programming for beginners and advanced
python programming for beginners and advancedpython programming for beginners and advanced
python programming for beginners and advanced
 
Python
PythonPython
Python
 
Functions in Python Syntax and working .
Functions in Python Syntax and working .Functions in Python Syntax and working .
Functions in Python Syntax and working .
 
python1.ppt
python1.pptpython1.ppt
python1.ppt
 
C++ Langauage Training in Ambala ! BATRA COMPUTER CENTRE
C++  Langauage Training in Ambala ! BATRA COMPUTER CENTREC++  Langauage Training in Ambala ! BATRA COMPUTER CENTRE
C++ Langauage Training in Ambala ! BATRA COMPUTER CENTRE
 
Technical Interview
Technical InterviewTechnical Interview
Technical Interview
 
Python PPT by Sushil Sir.pptx
Python PPT by Sushil Sir.pptxPython PPT by Sushil Sir.pptx
Python PPT by Sushil Sir.pptx
 
Python fundamentals
Python fundamentalsPython fundamentals
Python fundamentals
 
Automation Testing theory notes.pptx
Automation Testing theory notes.pptxAutomation Testing theory notes.pptx
Automation Testing theory notes.pptx
 
Python interview questions and answers
Python interview questions and answersPython interview questions and answers
Python interview questions and answers
 
Top Most Python Interview Questions.pdf
Top Most Python Interview Questions.pdfTop Most Python Interview Questions.pdf
Top Most Python Interview Questions.pdf
 
Python interview questions and answers
Python interview questions and answersPython interview questions and answers
Python interview questions and answers
 
biopython, doctest and makefiles
biopython, doctest and makefilesbiopython, doctest and makefiles
biopython, doctest and makefiles
 
Python (3).pdf
Python (3).pdfPython (3).pdf
Python (3).pdf
 
Mastering Python lesson 4_functions_parameters_arguments
Mastering Python lesson 4_functions_parameters_argumentsMastering Python lesson 4_functions_parameters_arguments
Mastering Python lesson 4_functions_parameters_arguments
 
Python for dummies
Python for dummiesPython for dummies
Python for dummies
 

Recently uploaded

POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 

Recently uploaded (20)

POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 

PYTHON 101.pptx

  • 1. PYTHON 101 Introduction to Python and Pandas
  • 2. Google Colab as our working environment https://colab.research.google.com/
  • 3. What is Python? Python is a high-level, general purpose programming language. It was created by Guido van Rossum, and released in 1990. It was named after a British comedy troupe Monty Python. This cool guy is Guido
  • 4. 1.Open source, general-purpose language 2.Highly readable, reusable, easy to maintain 3.English-like syntax 4.Interpreted language 5.Dynamically-typed 6.A large set of libraries and packages 7.Portable 8.Cross-platform Python features
  • 5. Forget curly brackets and semicolons {; Python uses indentation to define scopes
  • 6. public class Main { public static void main(String[] args) { System.out.println(“Hello World”); } } #include <stdio.h> #include <stdlib.h> int main() { printf(“Hello world”); return 0; } JAVA C >>> print(“Hello world!”) PYTHON Hello world!
  • 7. A comment is a piece of text within a program that is not executed. It provides additional information to help us understand the code. The # character is used to start a comment and it continues until the end of line. Comments
  • 8. Variables my_variable = 5 The equal sign = is used to assign a value to a variable. After the initial assignment is made, the value of a variable can be updated to new values as needed. Notice: We don't need to tell Python what type of value my_variable is referring to. A variable is used to store data that will be used by the program. This data can be a number, a string, a Boolean, a list or some other data type.
  • 9. Values in Python -5 # Integer type 23.1 # Float type “Some words” # String True # Boolean
  • 10. ● + for addition ● - for subtraction ● * for multiplication ● / for division ● % modulus (returns the remainder) ● ** for exponentiation ● // floor division (or known integer division) Arithmetic Operators The primary arithmetic operators are:
  • 11. # examples with arithmetic operations >>> 10 + 30 40 >>> 40 - 10 30 >>> 50 * 5 250 >>> 16 / 4 4.0 >>> 5 // 2 # floor division (integer division) 2 >>> 25 % 2 1 >>> 5 ** 3 # 5 to the power of 3 125
  • 12. COMPARISON OPERATORS & LOGIC OPERATORS Comparison operators : ==, >, <, >=, <=, != Logical operators : or, and
  • 13. Strings Like many other popular programming languages, strings in Python are arrays of bytes representing unicode characters. They are either surrounded by either single quotation marks or double. ‘Hello’ is the same as “Hello” Multiple line strings can be surrounded by three double quotes or three single quotes
  • 15. Repetition structures for, while All explained in the notebooks
  • 16. In Python, lists are ordered collections of items that allow for easy use of a set of data List values are placed in between square brackets [ ] , separated by commas. My_list = [1, 12, 7, 3, 3] Lists
  • 17. Python Lists: Data types In Python, lists are a versatile data type that can contain multiple different data types within the same square brackets. The possible data types within a list include numbers, strings, other objects, and even other Lists. numbers = [1, 2, 3, 4, 10] names = ['Jenny', 'Sam', 'Alexis'] mixed = ['Jenny', 1, 2] list_of_lists = [['a', 1], ['b', 2]] Learn more about lists in the notebook
  • 18. Tuples Tuples are used to store multiple items in a single variable. A tuple is a collection which is ordered and unchangeable. Tuples are written with round brackets. My_tuple = (2, 3.5, “Hello”)
  • 19. thisdict = { "brand": "Ford", "model": "Mustang", "year": 1964 } Dictionaries Dictionaries are used to store data values in key:value pairs. A dictionary is a collection which is ordered, changeable and do not allow duplicates.
  • 20. Functions Some tasks need to be performed multiple times within a program. Rather than rewrite the same code in multiple places, a function may be defined using the def keyword. Function definitions may include parameters, providing data input to the function. Functions may return a value using the return keyword followed by the value to return.
  • 21. Sets A set is an unordered collection of distinct of elements. A set itself may be modified, but the elements contained in the set must be of immutable type.Set items are unordered, unchangeable, and do not allow duplicate values. position_set = {‘ceo’,’manager’, ‘financier’}
  • 22. Classes Classes are user-defined blueprint or prototype from which objects are created Creating a new class creates a new type of object, allowing new instances of that type to be made. class Student: def __init__(self,name): self.name = name def say_hello(self): print(“Hello there, my name is”, self.name) student = Student(“Albin”) student.say_hello()
  • 23. Methods Unlike a function, methods are called on an object. A method can operate on the data(instance variables) that is contained by the corresponding class. User-defined method: class DevClub: def method_example(self): print(“You are the members of Google DSC” ) ref = DevClub() ref.method_example() Inbuilt method: floor_value = math.floor(17.35)
  • 24. PANDAS The most popular Python library for data analysis
  • 25. ● Calculate statistics and answer questions about the data, like: ■ What's the average, median, max, or min of each column? ■ Does column A correlate with column B? ■ What does the distribution of data in column C look like? ● Clean the data by doing things like removing missing values and filtering rows or columns by some criteria ● Visualize the data with help from Matplotlib. Plot bars, lines, histograms, bubbles, and more. ● Store the cleaned, transformed data back into a CSV, other file or database What's Pandas for?
  • 26. Examples of data visualizations