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.
Python tutorials from Machine Learning Plus: hands-on guides with worked examples and code you can read, copy and run. Start with the fundamentals and work through to the applied posts in the Python track.
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...