Python for Data Science - Part 1
in Python for Data ScienceAbout this course
Comments (1)
Course overview
Course overview
Course objectives
How to receive your certificate.
Download the exercise files and follow along with the videos. We learn best through practicing. Make use of the exercise files and develop your hands-on skills.
What is Colab Notebooks
Access the live code on Google colab
In Python we assign values to variables using the assignment operator(=).
String
Strings in Python are shown as the variable type str. You can define a string with either double quotation marks " or quotation marks '.
String Methods
Python has a set of built-in methods that you can use on strings. Some of the methods include:
Len(): Count the number of charters in a string
upper(): Converts a string into upper case
lower(): Converts string into lowercase
capitalize(): Converts the first character to upper case
title(): Converts the first character of each word to upper case
format(): Formats specified values in a string
count() : Returns the number of times a specified value occurs in a string
split(): Splits the string at the specified separator, and returns a list
Python Data Structures
Python’s data structures are simple but powerful. Mastering their use is a critical part of becoming a proficient Python programmer. These are some of the data structures in Python:
Tuples
Lists
Dictionaries
Dataframes and Series
Sets
Access the sample live notebook for practice.
Introduction to List methods
Python List functions
Test your skills
Exercise workbook
Sample exercise code
Python Dictionary Methods
Python has a set of built-in methods that you can use on dictionaries.
clear( ) - Removes all the elements from the dictionary
get( ) - Returns the value of the specified key
items( ) - Returns a list containing a tuple for each key value pair
keys( ) - Returns a list containing the dictionary's keys
pop( ) - Removes the element with the specified key
popitem( ) - Removes the last inserted key-value pair
update( )- Updates the dictionary with the specified key-value pairs
values( ) - Returns a list of all the values in the dictionary
Sample Notebook for practice
Introduction to IF Statement
Sample Notebook
Notebook for practice
Python packages
Notebook
Course review
I just finished taking the Python Introduction course on Festman Learning Hub, and it was a fantastic experience! The course thoroughly introduced Python basics, such as lists, tuples, loops, functions, and numpy. The instructor was engaging, and the material was presented clearly and concisely. The hands-on exercises were beneficial, as they allowed me to apply what I had learned in real-world situations. I highly recommend this course to anyone interested in learning Python basics and establishing a solid foundation in this powerful programming language.
I am looking forward to the Part 2 on Pandas.