
Discover Python basics for data science, from core data types and structures to NumPy, Pandas, and Matplotlib, with hands-on notebooks, Python installation, and essential data manipulation and visualization skills.
Learn how Python powers data science with NumPy and pandas, explore array and dataframe structures, and visualize data with plotting concepts for machine learning and deep learning.
Set up your data science workspace by installing Python and key libraries like NumPy, pandas, and Matplotlib via Anaconda, then launch Jupyter Notebook for hands-on practice.
Explore Python strings as sequences of characters, declare with quotes, and manage escapes, multi-line text, the len function, indexing, and slicing to access substrings.
Master core Python string operations, including lower and upper casing, counting words, and replacing text. Learn string formatting with placeholders using format and f-strings to build complex messages.
Explore integers and floating point numbers in Python, inspect their types, and apply operators: addition, subtraction, multiplication, division, floor division, modulus, and exponentiation to explore even and odd numbers.
Master Python numbers and operators by understanding operator precedence and parentheses, using in-place shortcuts like += and *=. Cast strings to integers, and apply absolute value and rounding where needed.
This lecture covers lists, tuples, and sets as Python sequence types, contrasts ordered lists and tuples with unordered sets, and shows indexing, including negative indexing to access the last element.
Explore Python list slicing and insertion in data science workflows: use indices to select sublists, omit first or last positions, and insert elements at a chosen index.
Learn how to insert, extend, pop, remove, and reverse Python lists, using a months example to modify a main list and handle inner lists.
Sort lists in Python with sort and reverse, or use sorted to create a sorted list. Use min, max, and sum on numeric lists, and check membership with in.
Discover how to loop through lists with a for loop, use enumerate for indices, and convert between lists and strings with join and split using months as examples.
Explore tuples in Python, contrast them with lists and sets, and learn how immutability, order, and duplicates differ across these types through practical exercises.
Define Python sets with curly braces, print members, and test membership with in; perform intersection and union, noting sets are unordered and lack indexing.
Learn how to compute set differences in Python by subtracting one set from another, and how to define empty sets with set(), contrasting sets with lists and tuples.
Explore Python dictionaries, learn to define key-value pairs, access data by key, handle missing keys with get and default values, and work with nested structures.
Master Python dictionaries by mutating, adding keys, deleting with del and pop, and looping through keys, values, and items using practical examples.
Explore the NumPy library for scientific computing, pre-installed with Anaconda, using multi-dimensional arrays and mathematical functions to replace Python lists, with hands-on notebook examples.
Explore creating numpy arrays with range, printing results, and inspecting shapes. Reshape a 1d array into two rows by five columns and convert a Python list to a numpy array.
Explore creating and reshaping numpy arrays, including nested lists, zeros and ones, 6x6 and 10x10 shapes, 3d arrays, diagonal elements, and empty arrays.
Welcome to my new course Python Essentials with Pandas and Numpy for Data Science
In this course, we will learn the basics of Python Data Structures and the most important Data Science libraries like NumPy and Pandas with step by step examples!
The first session will be a theory session in which, we will have an introduction to python, its applications and the libraries.
In the next session, we will proceed with installing python in your computer. We will install and configure anaconda which is a platform you can use for quick and easy installation of python and its libraries. We will get ourselves familiar with Jupiter notebook, which is the IDE that we are using throughout this course for python coding.
Then we will go ahead with the basic python data types like strings, numbers and its operations. We will deal with different types of ways to assign and access strings, string slicing, replacement, concatenation, formatting and f strings.
Dealing with numbers, we will discuss the assignment, accessing and different operations with integers and floats. The operations include basic ones and also advanced ones like exponents. Also we will check the order of operations, increments and decrements, rounding values and type casting.
Then we will proceed with basic data structures in python like Lists tuples and set. For lists, we will try different assignment, access and slicing options. Along with popular list methods, we will also see list extension, removal, reversing, sorting, min and max, existence check , list looping, slicing, and also inter-conversion of list and strings.
For Tuples also we will do the assignment and access options and the proceed with different options with set in python.
After that, we will deal with python dictionaries. Different assignment and access methods. Value update and delete methods and also looping through the values in the dictionary.
And after learning all of these basic data types and data structures, its time for us to proceed with the popular libraries for data-science in python. We will start with the NumPy library. We will check different ways to create a new NumPy array, reshaping , transforming list to arrays, zero arrays and one arrays, different array operations, array indexing, slicing, copying. we will also deal with creating and reshaping multi dimensional NumPy arrays, array transpose, and statistical operations like mean variance etc using NumPy
Later we will go ahead with the next popular python library called Pandas. At first we will deal with the one dimensional labelled array in pandas called as the series. We will create assign and access the series using different methods.
Then will go ahead with the Pandas Data frames, which is a 2-dimensional labelled data structure with columns of potentially different types. We will convert NumPy arrays and also pandas series to data frames. We will try column wise and row wise access options, dropping rows and columns, getting the summary of data frames with methods like min, max etc. Also we will convert a python dictionary into a pandas data frame. In large datasets, its common to have empty or missing data. We will see how we can manage missing data within dataframes. We will see sorting and indexing operations for data frames.
Most times, external data will be coming in either a CSV file or a JSON file. We will check how we can import CSV and JSON file data as a dataframe so that we can do the operations and later convert this data frame to either CSV and json objects and write it into the respective files.
Also we will see how we can concatenate, join and merge two pandas data frames. Then we will deal with data stacking and pivoting using the data frame and also to deal with duplicate values within the data-frame and to remove them selectively.
We can group data within a data-frame using group by methods for pandas data frame. We will check the steps we need to follow for grouping. Similarly we can do aggregation of data in the data-frame using different methods available and also using custom functions. We will also see other grouping techniques like Binning and bucketing based on data in the data-frame
At times we may need to use custom indexing for our dataframe. We will see methods to re-index rows and columns of a dataframe and also rename column indexes and rows. We will also check methods to do collective replacement of values in a dataframe and also to find the count of all or unique values in a dataframe.
Then we will proceed with implementing random permutation using both the NumPy and Pandas library and the steps to follow. Since an excelsheet and a dataframe are similar 2d arrays, we will see how we can load values in a dataframe from an excelsheet by parsing it. Then we will do condition based selection of values in a dataframe, also by using lambda functions and also finding rank based on columns.
Then we will go ahead with cross Tabulation of our dataframe using contingency tables. The steps we need to proceed with to create the cross tabulation contingency table.
After all these operations in the data we have, now its time to visualize the data. We will do exercises in which we can generate graphs and plots. We will be using another popular python library called Matplotlib to generate graphs and plots. We will do tweaking of the grpahs and plots by adjusting the plot types, its parameters, labels, titles etc.
Then we will use another visualization option called histogram which can be used to groups numbers into ranges. We will also be trying different options provided by matplotlib library for histogram
Overall this course is a perfect starter pack for your long journey ahead with big data and machine learning. You will also be getting an experience certificate after the completion of the course(only if your learning platform supports)
So lets start with the lessons. See you soon in the class room.