Skip to content

Python

Using headers with Python requests cover image

Using Headers with Python requests

In this tutorial, you’ll learn how to use custom headers with the Python requests library. HTTP headers allow you to send additional information to a server and allow the server to provide additional information back to you. Being able to

Working with Python Requests JSON

response.json() – Working with JSON in Python requests

In this tutorial, you’ll learn how to parse a Python requests response as JSON and convert it to a Python dictionary. Whenever the requests library is used to make a request, a Response object is returned. The Python requests library

How to install Python requests library cover image

How to Install requests Package in Python – Windows, macOS, and Linux

In this tutorial, you’ll learn how to install the popular requests package in Python, including on Windows, macOS, and Linux. The requests library is a popular HTTP library that can handle generating different types of requests, including GET, POST, and

Python Requests Response Object Tutorial Cover Image

Python requests Response Object Explained

In this tutorial, you’ll learn how to use the Response object from the Python requests library. When you make a request using the Python requests library, a Response object is returned. This is true, regardless if it’s a GET, POST,

Python requests - Post Request Tutorial Cover Image

Python requests: POST Request Explained

In this tutorial, you’ll learn how to use the Python requests library’s POST function to post data via HTTP. The Python requests library abstracts the complexities in making HTTP requests. The requests.post() function allows you to post data to a

Python requests - Get Request Tutorial Cover Image

Python requests: GET Request Explained

In this tutorial, you’ll learn how to use the Python requests library’s get method to fetch data via HTTP. The Python requests library abstracts the complexities in making HTTP requests. The requests.get() method allows you to fetch an HTTP response

Python frozenset: Overview and Examples

Python frozenset: Overview and Examples

In this tutorial, you’ll learn how to use the Python frozenset data structure. The frozenset in Python is often overlooked and many Python users don’t even know that it exists. The frozenset is a data structure that emulates the set,

NumPy Stack Join NumPy Arrays Along Different Axes Cover Image

NumPy Stack: Join NumPy Arrays Along Different Axes

In this tutorial, you’ll learn how to use the NumPy stack() function to join NumPy arrays along various axes. NumPy is an essential Python library for anyone working with data in Python. The NumPy stack() function allows you to combine

NumPy Squeeze Removing Dimensionality from NumPy Arrays Cover Image

NumPy Squeeze: Removing Dimensionality from NumPy Arrays

In this tutorial, you’ll learn how to use the NumPy squeeze() function. The np.squeeze() function allows you to remove single-dimensional entries from an array’s shape. This allows you to better transform arrays that aren’t shaped in the way that makes

Python Divmod Function and Examples Cover Image

Python Divmod Function & Examples

In this tutorial, you’ll learn how to use the Python divmod() function. The divmod() function takes two numbers are its arguments and returns their quotient and remainder. The function provides a number of incredibly helpful applications, such as being able

NumPy Repeat Elements Function Cover Image

NumPy Repeat Function: Repeating NumPy Arrays

In this tutorial, you’ll learn how to use the NumPy repeat() function. The np.repeat() function is used to repeat arrays and provides significant opportunity to customize how the arrays are repeated. Being able to work with NumPy arrays is an

How to Create 3D Scatterplots in Matplotlib Cover Image

How to Create 3D Scatterplots in Matplotlib

In this tutorial, you’ll learn how to make 3D scatterplots using Matplotlib. Being able to visualize data in three dimensions can be an important step in clearly articulating data, especially in science and machine learning. By the end of this