
Explore the pandas package in python for data wrangling and analysis. Install via Anaconda, launch Jupyter, and perform filtering, sorting, and aggregations.
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.
Read data sets with Pandas read_table for tab and pipe separators, assign column names, and inspect chip orders and movie users.
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.
Perform basic operations in a data frame, including string concatenation and type checks, and create a new computed column by combining occupation and gender.
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.
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.
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.
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.
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 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.
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.
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.
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.
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.
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.
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.
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.
Explore pandas series functions like describe, unique, value_counts, and top, then use head and cross tab to analyze distributions across columns.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Master merging data frames in pandas with inner, left, right, and outer joins, handling missing values and suffixes for overlapping columns.
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.
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.
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.
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.
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.
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.
Explore the cross tab in pandas to build contingency tables and reveal frequency distributions, using the Titanic Kaggle dataset to analyze survival by class.
Learn to use cross tab on repeating columns, test distributions, and draw insights from embarked, sex, fare, and cabin to understand survival patterns.
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.
Master the pandas pivot function to reshape data by setting index, columns, and values using a temperature.csv example across days and cities.
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.
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.
Learn to write a data frame to a csv file, including replacing values, selecting columns, and controlling index and header options for clean output.
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.
Explore pandas, learn basic operations, and analyze datasets with data frames to prepare for visualization with matplotlib and future scikit learn courses.
Explore NumPy, a numerical Python library for high-performance multi-dimensional arrays, and compare it with pandas, showing when to use NumPy arrays versus pandas dataframes in data science.
Explore numpy arrays and how they differ from lists, learn various import styles (import numpy, as np, from numpy import array), and use np.array to create ndarrays.
Compare numpy arrays with lists to illustrate memory efficiency and speed, showing numpy uses less memory and runs faster for data processing.
Explore how numpy arrays compare to Python lists in terms of execution time, using arange to build inputs, zip for pairing, and time.time to benchmark performance.
Compare lists and numpy arrays for numerical operations, then show how numpy enables BMI calculations from height and weight data.
Explore NumPy ndarrays, contrast them with lists, and perform elementwise addition and subsetting. Learn slicing, boolean indexing, and basic operations on 1-D arrays like BMI data.
Create two-dimensional numpy arrays from nested lists, convert them with np.array, and inspect shape (four rows, two columns) and indexing from zero, while noting dtype consistency when decimals are included.
Master numpy array subsetting by selecting specific rows and columns, using indices and ranges, to extract elements, all rows, or all columns in 2d arrays.
Learn to compute descriptive statistics on numpy arrays, including mean and median, and when to use median for outliers. Explore correlation coefficients and standard deviation in 2D arrays.
Build and update numpy arrays by creating a base array x, forming an update array, and computing the total with element-wise addition to practice array updating.
Learn to create NumPy arrays from lists, multiply elements, and update arrays. Concatenate arrays using vstack and hstack, and apply operations like dot, min, max, and ravel.
Learn to use pandas for data wrangling by building data frames and series, handling scalars, dicts, and numpy arrays, and creating a sample student data frame.
Learn to build pandas data frames from series and dictionaries, assign column headers with columns, manage indices, and convert series into data frames for data wrangling tasks.
Learn to build a Pandas data frame from a dictionary, map country names to driving side and CPC scores, and set custom row labels for a clear data view.
Learn how to concatenate data frames with pandas using the concat function, create frames from lists or dictionaries, and ensure matching column headers for seamless data wrangling.
Explore how to join pandas data frames using pd.merge, performing inner, left, and outer joins on name, and handle missing values when combining salary data with employee records.
Learn how to unpivot a dataframe with Pandas melt, converting wide to long format, setting id variables, and naming value and variable columns for clear data wrangling.
Explore dataframe operations in pandas, printing top and bottom rows, inspecting index and columns, checking dtypes and shape, and selecting single or multiple columns with intuitive syntax.
Slice and dice data by rows with iloc and loc, noting ix is deprecated, then apply boolean filtering on age to select a column from your filtered results.
Master advanced filtering in pandas by applying age and gender conditions and selecting columns like gender and occupation. Use is in for doctor or architect and debug dicing errors.
Sort data frames with pandas using sort_values to order by age in ascending or descending order. Learn multi-column sorting by occupation and age, and use inplace for direct modification.
Master descriptive statistics in pandas by using df.describe for numeric and object columns, exploring counts, mean, std, min, max, and per-group averages by occupation.
Learn to remove duplicate rows in Pandas data frames by appending sample rows, testing duplicates with the duplicated method, counting them with sum, and dropping duplicates with drop_duplicates.
learn pandas-based data wrangling in Python by importing numpy and pandas, loading income.csv, inspecting data types and shape, and cleaning data by handling missing values and duplicates before modeling.
Learn to view top and bottom rows with head and tail, inspect unique values with index.unique, and build cross tabs and frequency distributions with value_counts and pd.crosstab.
Access and sample data with pandas using income.sample, including n and fraction options. Learn to select specific columns with loc and iloc for focused analysis.
Learn to rename pandas DataFrame columns, rename specific or all columns with df.rename or df.columns, and use string replace to convert y to year; set a column as index.
Learn to reset the index, drop rows and columns with pandas drop and axis, and sort by state and year, while managing multiple variables and adding new columns.
Explore core pandas techniques for descriptive statistics and data wrangling. Learn to compute year-to-year differences, use describe for numeric and object data, and handle spaces in column names.
Group by functions guide you to aggregate a data frame by index, computing min, max, mean, and count of income across years such as 2004 and 2005.
Learn practical pandas filtering to select rows by index patterns, filter by conditions on income and state, and combine criteria with loc and isin for data wrangling.
Explore how to use Jupyter notebook for data wrangling with missing values, learning to run code, save notebooks, and switch between code and markdown while working with NumPy and pandas.
Learn to create a crops data frame, detect missing values with is null, count them with sum, drop them with dropna, update in place, and discuss imputing missing values.
Learn imputation techniques in pandas to replace missing values with unknown, mean, median, or mode, and apply data frame checks, type changes, and Jupyter notebook workflows.
Create a pandas data frame of names and occupations, then use numpy where to flag self-employed; apply multiple conditions with numpy select to assign color bands.
Install Ubuntu (or run it in VMware) and set up Miniconda to manage NumPy, pandas, and other data-analysis packages on Linux.
Install numpy and pandas with pip or conda, learn basic numpy commands for 2D arrays, and set up a GitHub portfolio while exploring Kaggle's Titanic dataset.
Install numpy and pandas, set up Jupyter Notebook, and learn from Kaggle datasets and kernels, building a GitHub portfolio to showcase data-wrangling skills for data science jobs.
Learn to download a data set and load it into numpy with genfromtxt. Then compare numpy and pandas for reading csv or excel files and creating data frames.
Explore the wine data set from the UCI repository, a multivariate classification task with 178 instances and 13 attributes, and learn loading, checking shape, and inspecting it in numpy.
Perform slicing and dicing in pandas to view specific data points, such as selecting all rows of the first column using colon notation and specifying ranges starting from zero.
Explore pandas for retail data wrangling by reading csv files, filtering and aggregating data, and visualizing sales, inventory, and returns across regions and products.
Display the first and last five products with tail and head, sample ten, sort by returns to identify across region, subsidiary, and stores, then group by region and subsidiary.
Group by region and subsidiary on the retail data frame to compute sums and means for sales, inventory, returns, and total stores.
The lecture demonstrates aggregating retail data by region and region plus subsidiary, computing sums and means for sales, inventory, and returns, and ranking regions by returns.
Leverage Pandas to group by specified variables, compute sums or means across region and subsidiary, and build reusable utility functions that simplify future aggregations.
Sort the retail data frame by returns to identify the top 20 products, reset indices, and compute a tiered discount using conditional np.where based on return thresholds.
Learn to create discount factors with np.where and pd.cut, apply nested conditions, compute adjusted sales, and merge results into the retailer data frame for top 20 products.
Merge the retail data frame with the top 20 products using a left join via pandas' merge, fill missing values with zeros, and analyze adjusted sells after discount.
Learn to import and append India retail records to the main data frame, then analyze the full dataset using a reusable pandas aggregation utility by region and subsidiary.
Explore pandas data analysis techniques with a focus on calculating total sales, mean sales, and standard deviation at regional level, using data frames and grouping by region.
Analyze how to compute and compare standard deviation and coefficient of variation across regions in a retail data frame, using pandas to reveal the most variable regions.
Learn to compute descriptive statistics with pandas using the describe function, inspect mean, standard deviation, min, max, and quartiles, and tailor outputs by dropping columns and transposing results.
Rename variables and round values to two decimals to produce a clear report, then analyze sales, inventory, and returns across 400 samples using n, mean, std, and quartiles.
Analyze hypothesis testing with one-sample t tests in pandas, using SciPy stats to test a population mean against a sample, with null hypotheses and interpretable results.
Learn to perform a one-sample t test in pandas on the sales column, interpret the t and p values, and use a 95% significance level to assess the population mean.
Set an alpha, compute population and sample means, and interpret the t value and p value to decide whether to reject the population mean of 80,000.
Learn how to perform two-sample t tests in pandas for comparing means across regions using hypothesis testing, check variance with an F test, and apply descriptive statistics to business data.
Explore data visualization with pandas, plotting line and bar charts from retail data, and learn to aggregate by region to reveal sales trends across regions.
Explore how to use scatter plots to examine the relationship between sales and returns, identify outliers, and assess correlation, with histograms and box plots for distribution and normality in pandas.
Analyze white wine quality data with numpy, mastering broadcasting, slicing, and concatenation, perform matrix operations, and implement gradient descent on a 100-observation dataset of physiochemical factors.
Analyze a white wine quality dataset by loading a semicolon-delimited file with numpy genfromtxt, inspecting dimensions, and saving and loading arrays as .npy and .npz formats.
Explore pandas data wrangling with slicing and broadcasting: select the first five rows, pick columns by index, and apply vectorized operations across 2d arrays for efficient data analysis.
Split and stack arrays efficiently using NumPy functions like vsplit, hsplit, and array_split to divide arrays into equal or adaptive parts along vertical, horizontal, or specified axes.
Practice indexing and slicing a data array to select the first five rows and specific columns, and apply broadcasting for vectorized arithmetic in pandas data wrangling.
Learn how to sort numpy arrays without breaking row integrity by using arg sort to obtain sort indices and apply them, including multi-column sorts via index tuples.
Apply gradient descent to fit a linear model y = m x + c by iteratively updating slope and intercept using a learning rate and the squared error cost.
Run a gradient descent loop to update and print m and c per iteration, illustrating convergence toward y = 3x + 0 with sample data x and y.
Master numpy linear algebra by computing rank, determinant, trace, eigenvalues, and inverse; solve linear equations, perform least squares, and use matrix operations for data wrangling.
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.