Python

How To Use f-strings to Create Strings in Python 3 — step-by-step Python tutorial on Progressive Robot

How To Use f-strings to Create Strings in Python 3

Python strings are variable length sequences of characters and symbols. Strings allow your program to manipulate and track text and also display that text to your users. In this tutorial, you will learn how to use Python 3’s f-strings to create strings dynamically.

Read more
How To Use the Python Filter Function — step-by-step Python tutorial on Progressive Robot

How To Use the Python Filter Function

The Python built-in filter() function can be used to create a new iterator from an existing iterable (like a list or dictionary) that will efficiently filter out elements using a function that we provide. In this tutorial, we’ll review four different ways of using filter(): with two different iterable structures, with a lambda function, and with no defined function.

Read more
How To Use Web APIs in Python 3 — step-by-step Python tutorial on Progressive Robot

How To Use Web APIs in Python 3

An API, or Application Program Interface, makes it easy for developers to integrate one app with another. They expose some of a program’s inner workings in a limited way. You can use APIs to get information from other programs, or to automate things you normally do in your…

Read more
Loss Functions in Python - Easy Implementation — step-by-step Python tutorial on Progressive Robot

Loss Functions in Python – Easy Implementation

URL: https://www.progressiverobot.com/loss-functions-in-python/ Introduction Loss functions in Python are an integral part of any machine learning model. These functions tell us how much the predicted output of the model differs from the actual output. There are multiple ways of calculating this difference. In this tutorial, we are going to look at some of the more popular […]

Read more
NumPy Matrix transpose() - Transpose of an Array in Python — step-by-step Python tutorial on Progressive Robot

NumPy Matrix transpose() – Transpose of an Array in Python

URL: https://www.progressiverobot.com/numpy-matrix-transpose-array/ The transpose of a matrix is obtained by moving the rows data to the column and columns data to the rows. If we have an array of shape (X, Y) then the transpose of the array will have the shape (Y, X). NumPy Matrix transpose() [Python numpy module](/community/tutorials/python-numpy-tutorial) is mostly used to work […]

Read more
Pandas to_csv() - Convert DataFrame to CSV — step-by-step Python tutorial on Progressive Robot

Pandas to_csv() – Convert DataFrame to CSV

URL: https://www.progressiverobot.com/pandas-to-csv-convert-dataframe-to-csv/ Pandas DataFrame to_csv() function converts DataFrame into CSV data. We can pass a file object to write the CSV data into a file. Otherwise, the CSV data is returned in the string format. Pandas DataFrame to_csv() Syntax The syntax of DataFrame to_csv() function is: def to_csv( self, path_or_buf=None, sep=",", na_rep="", float_format=None, columns=None, header=True, […]

Read more
CHAT