
Applied Python for data science and analytics teaches hands-on coding, problem-driven learning, and AI-assisted approaches to build commercially viable data skills using real workflows and libraries.
Make sure you have a google account and can access http://colab.research.google.com - I've provided links to starter and final notebooks. Let's get after it!
Apply the datetime module to convert strings to date objects and sort purchases by date, then use a dictionary pattern to accumulate total spend per customer.
Master using a defaultdict to handle missing keys, then leverage pandas dataframes to group by species, sum purchases, convert strings to dates, and sort by date.
convert date strings to pandas datetime with to_datetime, sort by order date, and use map on a series to create a new datetime column.
https://colab.research.google.com/drive/15cKoyNt9U89yuU9rONnxSOy9p2WLENki?usp=sharing
Start here! Happy Birthday
Explore birthday paradox variations through Python examples, counting true and false outcomes without counters, using enumerate, default dict, and nested loops, then simulate birthday problems with range and random sampling.
Explore the birthday problem using the random module to generate birthdays, test for duplicates, and debug by inspecting inputs, illustrating sampling without replacement.
Learning to wrangle text is a key skill - let's get started!
Let's get our feet wet with regular expressions, too.
https://colab.research.google.com/drive/1_7PJTyY6S-bFwmPEOPrxTAhkwOv_KcOJ?usp=sharing
Sometimes regular expressions can get tricky, especially if we're building them dynamically. Let's use AI to help us solve our problem.
Let's think about performance analysis and think about how we might compare each sentence to all other sentences.
https://colab.research.google.com/drive/1_7PJTyY6S-bFwmPEOPrxTAhkwOv_KcOJ?usp=sharing
Rather than write 2 for loops, let's use itertools.combinations to help us iterate over all pairs of sentences and then compute the length of token intersections while storing them and creating a dataframe later on.
https://colab.research.google.com/drive/1_7PJTyY6S-bFwmPEOPrxTAhkwOv_KcOJ?usp=sharing
Alright, we did it! As a bonus, try to go from mere token interaction length to Jaccard similarity! https://en.wikipedia.org/wiki/Jaccard_index#Overview
Learn document similarity using out-of-the-box tools and the zip operator to build bigrams and trigrams from tokenized text, and prepare you for scikit-learn countvectorizer analysis.
Learn how count vectorization creates a bag-of-words document vector space with CountVectorizer in scikit-learn, building vocabularies, applying fit_transform to produce sparse matrices, and measuring document similarity with pairwise distances.
Learn how to compute cosine similarity between vectors using dot product and L2 norms, then derive cosine distance. See practical examples with NumPy arrays and embeddings.
Explore computing pairwise distances between documents with numpy, using a count vectorizer, comparing euclidean and cosine metrics, and using argmin to identify similar documents while handling self-similarity with fill diagonal.
Leverage the 20 newsgroups data from scikit-learn by converting the train dictionary to a pandas frame, vectorizing with CountVectorizer, and finding the five closest documents via Euclidean distances.
Learn to convert a list comprehension to a dictionary, load GPS data into pandas with from_records, and perform type conversions and describe elevation and heart rate for exploratory workout analysis.
Compute distances between GPS pings by converting lat-long into tuples and applying haversine. Analyze elevation with SciPy find_peaks for peaks and troughs, and adjust thresholds and units as needed.
Identify peaks and troughs with SciPy, align their indices to the original dataframe, and map them to compute distances in feet while visualizing with plots.
Final notebook https://colab.research.google.com/drive/1ZcO3JzfI59o1pY98ALqND3C5ifEyBs4y?usp=sharing - GREAT WORK
https://colab.research.google.com/drive/1dZmr6C9aNCsyj2JSGhc-YNRbYvjIpauH?usp=sharing
Learn efficient Python techniques for summing the first n numbers with range and a formula, and count color data from Advent of Code using parsing and regex.
Learn how to parse messy data using regular expressions, dictionaries, and pandas, counting color occurrences across game rows and converting patterns into actionable data.
Explore supervised classification using XGBoost, decision trees, and random forests, with a focus on feature encoding, explainability, predictability, and production-ready modeling in a business context.
XGBoost automated categorical handling document mentioned https://developer.nvidia.com/blog/categorical-features-in-xgboost-without-manual-encoding/
https://docs.google.com/spreadsheets/d/1RaoRSl-OH7N8gs6htBRXR5aqqP9TQ5RlOYAo7GMm4D8/edit#gid=1218296526 the document I'm using to describe business decisions and the link to true positives, precision, recall, etc...
XGBoost automated categorical handling document mentioned https://developer.nvidia.com/blog/categorical-features-in-xgboost-without-manual-encoding/
https://docs.google.com/spreadsheets/d/1RaoRSl-OH7N8gs6htBRXR5aqqP9TQ5RlOYAo7GMm4D8/edit#gid=1218296526 the document I'm using to describe business decisions and the link to true positives, precision, recall, etc...
Explore precision and recall trade-offs across scenarios from rare disease diagnosis to credit eligibility and self-driving stoplight detection, emphasizing recall-focused strategies and practical model evaluation.
Save and load your trained model with pickle, deploy to an endpoint, and predict from a dict to a dataframe; consider unseen values like OTA partner.
Discover how XGBoost handles unseen categorical values and the risks of custom encoders, then interpret model decisions with feature importance and partial dependence analysis.
Explore interpretability by analyzing lead time and average price per room with pandas, group and bin data, and simulate outcomes to explain XGBoost feature importance for business decisions.
Simulate perturbing lead time, predict on modified data, and count canceled versus not canceled to visualize the marginal impact via a partial dependence plot.
Unlock the Power of Python for Real-World Data Science and Analytics
Are you ready to take your Python skills to the next level and tackle real-world data science and analytics challenges? Look no further than "Applied Python for Data Science and Analytics," a comprehensive Udemy course designed to bridge the gap between memorization and practical problem-solving.
In this course, you'll learn from Jeff James, a senior machine learning engineering manager with 15 years of applied data analytics and coding experience, who has also taught at the University of Denver. Andrew will guide you through the complexities of the Python standard library, Pandas, SciPY, and powerful machine learning libraries like scikit-learn, empowering you to solve open-ended problems with confidence.
Throughout the course, you'll dive deep into real-world scenarios, learning how to approach and solve challenges that go beyond the typical "table of contents" style video courses. You'll gain hands-on experience working with diverse datasets, applying advanced analytical techniques, and leveraging the full potential of Python's data science ecosystem.
Whether you're a data analyst, aspiring data scientist, or a developer looking to expand your skill set, this course will equip you with the tools and knowledge you need to excel in the field. You'll learn how to:
- Effectively utilize the Python standard library for data manipulation and analysis
- Harness the power of pandas for efficient data wrangling and exploration
- Apply statistical techniques using SciPY to gain deeper insights from your data
- Implement machine learning algorithms using scikit-learn to solve real-world problems
- Develop a problem-solving mindset to tackle open-ended challenges in data science and analytics
By the end of this course, you'll have a robust portfolio of projects showcasing your ability to apply Python to real-world data science and analytics problems. You'll be ready to take on complex challenges, drive data-driven decision-making, and make a tangible impact in your organization.
Don't miss this opportunity to learn from an experienced industry professional and elevate your Python skills to new heights. Enroll now in "Applied Python for Data Science and Analytics" and unlock your full potential in the world of data science and analytics!