Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Pandas for Data Wrangling: Core Skills for Data Scientists
Rating: 4.6 out of 5(14 ratings)
3,073 students

Pandas for Data Wrangling: Core Skills for Data Scientists

Master data analysis with Pandas and Python through hands-on projects and real-world case studies.
Last updated 4/2024
English
English [Auto],

What you'll learn

  • Data manipulation techniques using libraries like pandas in Python.
  • Statistical analysis methods for exploring and understanding datasets.
  • Machine learning algorithms and their applications for predictive modeling.
  • Data visualization techniques to effectively communicate insights.
  • Programming skills in Python and R languages.
  • Proficiency in using libraries such as NumPy, Matplotlib, scikit-learn, and TensorFlow.
  • Hands-on experience through projects and case studies.
  • Practical application of learned concepts to real-world data science problems.

Course content

5 sections128 lectures16h 15m total length
  • Introduction to Pandas with Python4:44

    Explore the pandas package in python for data wrangling and analysis. Install via Anaconda, launch Jupyter, and perform filtering, sorting, and aggregations.

  • Understanding Jupiter Environment3:51

    Learn the Jupiter environment, switch between edit and command modes, and master keyboard shortcuts to create, execute, and manage cells while importing pandas and running data tasks.

  • Reading the Data Set9:01

    Read data sets with Pandas read_table for tab and pipe separators, assign column names, and inspect chip orders and movie users.

  • Series and Data Frame3:34

    Learn the difference between a pandas series and a data frame, and master selecting a column from a data frame using data['age'] or data.age.

  • Operations in Data Set3:53

    Perform basic operations in a data frame, including string concatenation and type checks, and create a new computed column by combining occupation and gender.

  • More on Panda Functions6:25

    Explore advanced pandas functions by reading data with read_csv or read_table and using the describe function to summarize data types, including strings with include=object.

  • Column Names and Operation9:02

    Learn to manage pandas column names: view data types, rename with dicts or data.columns, use in-place updates, rename via Python lists, and remove underscores with string replace.

  • Removing Columns and Rows2:51

    Learn to remove columns and rows in pandas data frames using drop, with axis=1 for columns and axis=0 for rows, in-place edits, and lists for multiple targets.

  • Sorting Data Frame3:00

    Learn to sort a duration series and a data frame with sort_values, control ascending or descending order, and sort by multiple columns (genre and duration) using Python list.

  • Filtering Data7:10

    Learn how to filter a pandas data frame using a boolean mask to keep rows with duration greater than or equal to 175, and how to select the genre column.

  • Filter Multiple Criteria5:54

    Filter a data frame using multiple criteria in pandas by combining content rating and genre with and, using brackets and the isin function for concise selections.

  • Selective Columns and Rows2:52

    Learn to selectively read data with pandas by using usecols to load specific columns and nrows to limit rows, demonstrated on an IMDb ratings CSV.

  • Data Frame and Series2:09

    In Pandas, learn to iterate through a series with a for loop and through a data frame with iterrows, printing title, genre, and index values.

  • Axis Parameter2:53

    Master axis parameter usage in pandas to compute row-wise or column-wise means with data.mean. Learn how default axis zero computes means across numeric columns and ignores non-numeric data.

  • String Methods in Pandas3:51

    Explore string methods in pandas, apply them via the str accessor to series, chain methods like upper and replace, and filter titles containing a word.

  • Changing the Data Types4:05

    Learn to change a series data type in a pandas data frame, first after import by converting duration to float, then during read_csv with a dtype dictionary for IMDb ratings.

  • Example of Data Type Change4:27

    convert text prices to numeric in pandas by using astype after removing dollar signs with str.replace, enabling mean and other aggregations. learn practical data type changes for machine learning readiness.

  • Group by Functions4:06

    Learn to group a data frame by a categorical column (genre) and compute statistics such as mean, min, max, median, and count for duration, using Pandas groupby and aggregate functions.

  • Functions on Series4:20

    Explore pandas series functions like describe, unique, value_counts, and top, then use head and cross tab to analyze distributions across columns.

  • Plotting series in Pandas3:40

    Plot numeric series in pandas by using the functions described for numeric series, visualize data with histograms, and create bar charts from value counts using matplotlib inline.

  • Dealing with Null Values4:44

    Learn to handle null values in pandas by importing a ufo dataset, using is null checks and sum to count missing data, and filter rows accordingly.

  • Uses of Index6:06

    Explore how pandas index acts as the row labels in a data frame, starting from zero as a range index, and learn its uses for identification, selection, and alignment.

  • Column in Index5:51

    Learn how to use a column as the index in a pandas data frame, set the index name, reset it, and describe the data to access the top state.

  • Output of Data8:20

    Learn how to use the pandas loc method to select rows and columns by label, including full rows, specific columns like city, state, time, and range-based selections.

  • Functions of iX Method8:39

    Learn how the ix method mixes labels and positions to select values in a drinks-by-country dataset, with slicing ideas and a caution about potential confusion.

  • InPlace Parameter4:29

    Learn how the inplace parameter affects dropping the continent column in a pandas dataframe, why inplace defaults to false, and how to drop permanently by assignment.

  • Inspecting the Space4:49

    Learn how to inspect a pandas DataFrame’s space usage with the info method, compare integer and object columns, and use memory_usage(deep=True) to reveal true byte usage.

  • Reducing the Space9:46

    Learn how to reduce a data frame's memory footprint in pandas by converting the continent column to a category, using codes, and relying on implicit lookup for efficient queries.

  • Using in Country Series4:10

    Convert the country series to a category for memory optimization, but check unique values first; high cardinality can increase memory due to lookup tables, while low cardinality like gender benefits.

  • Creating Manual Data Frame6:50

    Create a manual data frame in pandas by passing a dictionary to pd.DataFrame, respecting case sensitivity, and building columns like id, customer name, and age; then compare isnull methods.

  • Random Sampling with Pandas3:42

    Learn how to perform random sampling in pandas using the sample method. Specify n for the number of rows, control reproducibility with random_state, or choose frac for a data fraction.

  • Concept of Dummy Coding11:31

    Learn how to apply dummy coding to convert categorical variables into numerical features using pandas, including mapping sex to 1 and 0 and using get_dummies for embarked values.

  • Creating Dummified Values4:15

    Create dummy values in a single command by applying pandas get_dummies to a dataframe, specifying columns like sex and embarked, and using drop_first to drop a level.

  • Duplicates in Data Frame8:50

    Learn to detect and count duplicates in a pandas data frame using the duplicated and drop_duplicates functions, exploring first versus last occurrence and in-place options.

  • Functions for Date and Time9:10

    Learn to convert string time data to pandas datetime, use dt accessors for time-based operations, and filter data by date ranges, with examples on a UFO dataset.

  • Setting with Copy Warning4:56

    Avoid the pandas setting with copy warning by using the lock method when updating a subset and convert zero beer_servings to NaN with numpy.

  • Example on Copy Warning4:41

    Learn how to handle copy warnings in pandas by creating an explicit copy with df.copy(), using loc to replace values with NaN, and clarifying view vs copy for readable code.

  • Changing the Display Option4:29

    Change pandas display settings to control row output, using get_option and set_option to adjust display.max_rows (e.g., 200 or none) and reset_option to return to defaults.

  • Formatting the Data6:57

    Learn to format data in pandas by using display options such as set_option for display.float_format with thousands separators, adjust max_colwidth for long strings, and explore describe_option to view display methods.

  • Tricks for Display Options7:10

    Explore pandas display options, search methods by keyword, reset session options, and construct data frames from dictionaries, lists, and numpy arrays to enhance data wrangling workflows.

  • Data with Rows and Columns9:10

    Build a row-rich data frame with numpy to generate IDs and grades. Show how to concatenate a capitals series with pandas, aligning by index for a complete data wrangling workflow.

  • Converting Data Frame4:19

    Learn to convert a data frame into a datetime column using pandas to_datetime, after installing the latest pandas, and constructing a frame with day, month, and year.

  • Introduction to Azure Data Lake7:24

    Merge two data frames in pandas using the merge method, joining on the state column to produce a combined data frame with common states and corresponding language and capital.

  • Merging Data Frames8:32

    Master merging data frames in pandas with inner, left, right, and outer joins, handling missing values and suffixes for overlapping columns.

  • Shaping a Data Frame7:41

    Shape a data frame with pandas melt to unpivot the data, using id_vars to preserve identifiers and var_name and value_name to rename the output columns.

  • Filling NA Values2:41

    Fill null values in a data frame using pandas fillna, including per-column customization with a dictionary to substitute colors reported and shape reported with no color and no shape.

  • Importing Time Series Data7:37

    Import a time series temperature dataset from csv, identify nan values, and apply forward fill or backfill strategies with optional limit and access parameters to contextually fill missing data.

  • Working with Interpolate Method9:38

    Learn to fill missing values in time series with pandas interpolate. Convert date strings to datetime, set the date as index, and apply time-based interpolation for smarter estimates.

  • Stacking and Unstacking10:05

    Master stacking and unstacking in pandas to move between rows and columns, with practical Excel data; learn level-based headers, stack operations, and unstack to reshape data frames.

  • Stacking and Unstacking for 3 Levels3:51

    Explore stacking and unstacking in pandas across three levels of columns and rows. Build fluency with multi-level structures using states, cities, and products such as milk, cheese, and butter.

  • Concept of Crosstab8:50

    Explore the cross tab in pandas to build contingency tables and reveal frequency distributions, using the Titanic Kaggle dataset to analyze survival by class.

  • More on Crosstab7:39

    Learn to use cross tab on repeating columns, test distributions, and draw insights from embarked, sex, fare, and cabin to understand survival patterns.

  • More Options with Crosstab9:37

    Explore pandas crosstab options: margins for totals, combining columns with a list, and normalize for distributions, plus using values with an aggregation function to compute average, max, or min.

  • Functions of Pivot3:52

    Master the pandas pivot function to reshape data by setting index, columns, and values using a temperature.csv example across days and cities.

  • Pivot Table Method6:29

    Discover how the pivot_table method creates spreadsheet-style pivots, handling duplicate day and city entries, with configurable aggregates like mean or max and optional margins.

  • Example on Pivot Table9:46

    Explore a more advanced pivot table using a grouper to group data by weekly frequency, converting date columns to datetime and applying an aggregate function for readable weekly summaries.

  • Data Frame to CSV File6:30

    Learn to write a data frame to a csv file, including replacing values, selecting columns, and controlling index and header options for clean output.

  • Using Excel Functions7:31

    Learn to export pandas data frames to Excel using two functions, customize sheet names and positions, remove the index, and write multiple frames to separate sheets in one file.

  • Summary on Pandas2:37

    Explore pandas, learn basic operations, and analyze datasets with data frames to prepare for visualization with matplotlib and future scikit learn courses.

Requirements

  • Students should have a basic understanding of programming concepts, preferably in Python, and a fundamental grasp of mathematics and statistics.

Description

Welcome to the "Data Analysis with Pandas and Python" course! This course is designed to equip you with the essential skills and knowledge required to proficiently analyze and manipulate data using the powerful Pandas library in Python.

Whether you're a beginner or have some experience with Python programming, this course will provide you with a solid foundation in data analysis techniques and tools. Throughout the course, you'll learn how to read, clean, transform, and analyze data efficiently using Pandas, one of the most widely used libraries for data manipulation in Python.

From understanding the basics of Pandas data structures like Series and DataFrames to performing advanced operations such as grouping, filtering, and plotting data, each section of this course is crafted to progressively enhance your proficiency in data analysis.

Moreover, you'll have the opportunity to apply your skills in real-world scenarios through case studies and projects, allowing you to gain hands-on experience and build a portfolio of projects to showcase your expertise.

By the end of this course, you'll have the confidence and competence to tackle a wide range of data analysis tasks using Pandas and Python, empowering you to extract valuable insights and make informed decisions from diverse datasets. Let's embark on this exciting journey into the world of data analysis together!

Section 1: Pandas with Python Tutorial

In this section, students will embark on a comprehensive journey into using Pandas with Python for data manipulation and analysis. Starting with an introductory lecture, they will become familiar with the Pandas library and its integration within the Python ecosystem. Subsequent lectures will cover practical aspects such as reading datasets, understanding data structures like Series and DataFrames, performing operations on datasets, filtering and sorting data, and dealing with missing values. Advanced topics include manipulating string data, changing data types, grouping data, and plotting data using Pandas.

Section 2: NumPy and Pandas Python

The following section introduces students to NumPy, a fundamental package for scientific computing in Python, and its integration with Pandas. After an initial introduction to NumPy, students will learn about the advantages of using NumPy over traditional Python lists for numerical operations. They will explore various NumPy functions for creating arrays, performing basic operations, and slicing and dicing arrays. The section then seamlessly transitions to Pandas, where students will learn to create DataFrames from Series and dictionaries, perform data manipulation operations, and generate summary statistics on data.

Section 3: Data Analysis With Pandas And Python

This section focuses on practical data analysis using Pandas and Python. Students will learn about the installation of necessary software, downloading and loading datasets, and slicing and dicing data for analysis. A case study involving the analysis of retail dataset management will allow students to apply their newfound skills in a real-world scenario, gaining valuable experience in data management and analysis tasks.

Section 4: Pandas Python Case Study - Data Management for Retail Dataset

In this section, students will delve deeper into a comprehensive case study involving the management of a retail dataset using Pandas. They will work through various parts of the project, including data cleaning, transformation, and analysis, gaining hands-on experience in handling large datasets and deriving actionable insights from them.

Section 5: Analyzing the Quality of White Wines using NumPy Python

The final section introduces students to a specific application of data analysis using NumPy and Python: analyzing the quality of white wines. Through file handling, slicing, sorting, and gradient descent techniques, students will learn how to analyze and draw conclusions from real-world datasets, reinforcing their understanding of NumPy and Python for data analysis tasks.

Who this course is for:

  • Aspiring data scientists, analysts, researchers, and anyone interested in data science careers.
  • Individuals with a passion for data analysis and a desire to acquire essential skills in data science.
  • Students seeking to enhance their knowledge and proficiency in data manipulation, visualization, and analysis.
  • Professionals aiming to transition into data-related roles or advance their careers in data science.
  • Anyone looking to develop practical skills in statistical analysis, machine learning, and data-driven decision-making.