101 Polars Exercises for Data Analysis (with Solutions)
Master Polars with 101 hands-on exercises and solutions, covering DataFrames, groupby, joins, window functions, lazy eval, and more.
Every Python tutorial on Machine Learning Plus in one place: Python, Pandas, Numpy, Data Manipulation and Plots. 92 guides with code you can read, copy and run.
Master Polars with 101 hands-on exercises and solutions, covering DataFrames, groupby, joins, window functions, lazy eval, and more.
101 interactive pandas exercises with solutions. Edit and run every code block directly in your browser, no installation needed.
Build your first AI app with Python and the OpenAI API. Step-by-step tutorial covering chat completions, streaming, error handling, and cost control...
Unlike Java Python treats encapsulation as a guideline, not a rule. Understand how this philosophy shapes OOP practices.
Understand __slots__ in Python, a technique that replaces dynamic dictionaries with fixed attributes for faster, more efficient classes.
Learn how Python descriptors work with __set_name__. Control attribute access and understand descriptor protocols with clear examples.
Discover how operator overloading is implemented using magic methods, allowing custom classes to integrate with Python's core operations.
Learn to use Python's @property decorator to implement getters and setters for safe attribute access and data validation in OOP.
Understand Python's key method decorators: when to use @classmethod for class state, @staticmethod for pure functions, and @property for attribute...
Explore Python's abc module, learn how Abstract Base Classes enforce interfaces, create robust hierarchies, and improve your OOP design.
Master Python's inheritance and composition, how they work, when to use each, with clear examples. Elevate your OOP skills effectively.
Learn to design robust Python class hierarchies by mastering multiple inheritance and Method Resolution Order (MRO) behavior.
Python exercises to practice as a beginner. These are devised as mini tasks that you might need to apply when programming with Python.
Using Cython, you can speed up existing Python code by an order of 100x or more. This is possible because Cython converts some of the Python code to...
Lets see how to convert Python to Cython inside Jupyter Notebooks?
OpenCV (Open Source Computer Vision Library) is an open-source computer vision and machine learning software library. OpenCV-Python is a Python...
Web scraping is the technique of extracting data from a specific website or web page. Let's understand how to use Scrapy for web scraping of Reddit...
Pip is a widely used package manager for Python, allowing you to install and manage Python packages easily. In this blog post, we'll explore various...
Adding Python to the PATH environment variable in Windows allows you to run Python commands from any directory within the command prompt
Numpy.random.randint is used to get random integers from low to high values. The low value is included while the high value is excluded while...
The numpy.random.uniform() function is used to create an array with random samples from a uniform probability distribution of given low and high...
The numpy.sort() function in python is used to sort the array along a specified axis.
numpy.median function is used to calculate the median of an array along a specific axis or multiple axes
The size of the data you can load and train in your local computer is typically limited by the memory in your computer. Let's see how to deal with...
Any Python files is a Module in Python. A python package is a collection of such modules along with a `__init__.py` file. Let's understand how to...
Iterable in Python is any object that can be looped over. In order for an iterable to be looped over, an iterable needs to be converted to an...
Generators in python provide an efficient way of generating numbers or objects as and when needed, without having to store all the values in memory...
Decorators in python allow you to dynamically change the functionality of another function, without altering it's code.
Object oriented programming is an effective way of writing code. Classes represent meaningful entities which defines its own behaviour (via methods)...
The numpy.reshape() is used to reshape a numpy array without changing the data in the array. Read on to know all about reshaping numpy arrays.
Vaex Python is an alternative to the Pandas library that take less time to do computations on huge data using Out of Core Dataframe. It has fast...
Modin is a python library that can be used to handle large datasets using parallelisation. The syntax is similar to pandas and its astounding...
Learn how to use Dask to handle large datasets in Python using parallel computing. Covers Dask DataFrames, delayed execution, and integration with...
Global Interpreter Lock (GIL) in python restricts multithreading. This post walks you behind the neccesity of GIL and how it it works.
Learn how Python lambda functions work, when to use them, and how they differ from regular functions. Includes practical examples with map, filter...
Adding yield keyword to a function will make the function return a generator object that can be iterated upon.
Python Profilers, like cProfile helps to find which part of the program or code takes more time to run. This article will walk you through the...
Collections is a built-in python module that provides useful container types. They allow us to store and access values in a convenient way...
JSON (JavaScript Object Notation) is a lightweight data format for exchanging data between languages. Learn how to serialize and deserialize JSON in...
Learn how to send HTTP requests in Python using the Requests library. Covers GET, POST, PUT, DELETE methods, headers, parameters, and response...
datetime is the standard module for working with dates in python. It provides 4 main objects for date and time operations: datetime, date, time and...
The logging module lets you track events while your code runs, so you can find what caused a crash from the logs. This post is a simple, clear guide...
List comprehensions is a pythonic way of expressing a 'For Loop' that appends to a list in a single line of code. It is an intuitive, easy-to-read...
A python @property decorator lets a method to be accessed as an attribute instead of as a method with a '()'. Today, you will gain an understanding...
Parallel processing is when the task is executed simultaneously in multiple processors. In this tutorial, you'll understand the procedure to...
Master pandas with 101 hands-on exercises across 3 difficulty levels. Practice data manipulation, filtering, grouping, and more to sharpen your...
pdb, short for python debugger is a standard built-in module used to debug python code interactively. You can set breakpoints, see variable values...
The goal of the numpy exercises is to serve as a reference as well as to get you to apply numpy beyond the basics. The questions are of 4 levels of...
This is part 2 of the mega numpy tutorial. In this part, I go into the details of the advanced features of numpy arrays that are essential for data...
This is part 1 of the numpy tutorial covering all the core aspects of performing data manipulation and analysis with numpy's ndarrays. Numpy is the...
Regular expressions, also called regex, is a syntax or rather a language to search, extract and manipulate specific string patterns from a larger...
Use the pandas.DataFrame.sample() method from pandas library to randomly select rows from a Dataframe
How to iterate over rows in a pandas dataframe using diffferent methods like loc(),iloc(),iterrows(), iteritems etc, with practical examples
pandas.head() function is used to access the first n rows of a dataframe or series. It returns a smaller version of the caller object with the first...
The pandas.DataFrame.duplicated() method is used to find duplicate rows in a DataFrame. It returns a boolean which tells whether a row is duplicate...
The pandas describe function is used to get a descriptive statistics like mean, median, min-max values of different data columns.
Pandas Series is a 1-dimensional array like object which can hold data of any type. You can create a pandas series from a dictionary by passing the...
You can manipulate the data using regular expressions (Regex). This article explains different ways of using pandas replace function with regex
This article guides you on different methods to plot a histogram in a pandas dataframe along with various features available.
You can select columns in a pandas dataframe using multiple methods including loc, iloc, filter functions, etc. Read on to know more
You can create quick line plot on a pandas dataframe in python to understand the relationship between features. Learn how with practical examples.
Explains different ways pandas read_csv function can be used to read csv files into pandas dataframe, along with examples
This article walks you through the different ways through which you can create a pandas datetime series along with it's features.
This article explains how to add new column in an existing pandas dataframe using list, dictionary, insert, assign and so on with examples
This article introduces pandas groupby method, and explains different ways of using it along with practical code examples.
Learn about pandas index and how to use it to access rows, how to define custom row labels and more with practical examples
You can convert a pandas series to list using the tolist() or typecasting method. This article explains both with practical examples.
The pandas dropna function allows you to drop rows & columns that contain missing values. You can drop rows that have certain columns missing
Pandas iloc is a method for integer-based indexing, which is used for selecting specific rows and subsetting pandas DataFrames and Series. The...
To drop a single column or multiple columns from pandas dataframe in Python, you can use `df.drop` and other different methods.
pandas.reset_index in Python is used to reset the current index of a dataframe to default indexing (0 to number of rows minus 1) or to reset multi...
There are several methods to rename column in Pandas or change column name of Pandas Dataframe in Python. In this article, you will see some of these...
In Pandas, DataFrame is the primary data structures to hold tabular data. You can create it using the DataFrame constructor pandas.DataFrame() or by...
pandas Series is a one-dimensional labelled data structure which can hold data such as strings, integers and even other Python objects.
Pivot table in pandas is an excellent tool to summarize one or more numeric variable based on two other categorical variables.
The numpy.where() function is used to filter data based on the conditions provided. These conditions can vary.
The numpy.random.rand() function is used to generate random float values from a uniform distribution over [0,1). These values can be extracted as a...
Let's see how to reduce the memory size of a pandas dataframe.
data.table package is used for working with tabular data in R. It is super fast and has intuitive and terse syntax. This tutorial guide shows how to...
Sharpen your R data.table skills with 101 practical exercises. Cover data manipulation, aggregation, joins, and reshaping with one of R's fastest...
Python datatable is the newest package for data manipulation and analysis in Python. It carries the spirit of R's `data.table` with similar syntax...
Matplotlib is the most popular Python library to plot beautiful graphs. Grasp fundamental plotting through reproducible examples.
Subplots mean groups of axes that can exist in a single matplotlib figure. subplots() function in the matplotlib library, helps in creating multiple...
A waterfall chart shows the effect of adding positive and negative values over time, steps or categories, and is common in financial analysis. Learn...
Learn how to create line plots in Matplotlib to visualize trends. Covers multiple lines, secondary axes, time series plots, styling, and highlighting...
Learn how to create scatter plots in Python to visualize relationships between variables. Covers color groups, linear fits, bubble plots, and Seaborn...
A comprehensive guide to Matplotlib Pyplot, Python's core plotting interface. Learn to create line, scatter, bar, pie, histogram, and box plots with...
Learn how to create and interpret boxplots in Python. Understand quartiles, detect outliers, and summarize distributions using Matplotlib and Seaborn.
Learn how to create bar plots in Python using Matplotlib and Seaborn. Covers simple, grouped, stacked, and horizontal bar charts with customization...
Matplotlib histogram is used to visualize the frequency distribution of numeric array. In this article, we explore practical techniques like...
This tutorial explains matplotlib's way of making python plot, like scatterplots, bar charts and customize th components like figure, subplots...
A compilation of the Top 50 matplotlib plots most useful in data analysis and visualization. This list helps you to choose what visualization to show...