Python

How To Plot Data in Python 3 Using matplotlib — step-by-step Python tutorial on Progressive Robot

How To Plot Data in Python 3 Using matplotlib

Visualization is a quick and easy way to convey concepts in a universal manner, especially to those who aren’t familiar with your data. This tutorial will describe how to plot data in Python using the 2D plotting library matplotlib. We’ll go through generating a scatter plot using a small set of data, adding information such as titles and legends to plots, and customizing plots by changing how plot points look.

Read more
NumPy sqrt() - Square Root of Matrix Elements — step-by-step Python tutorial on Progressive Robot

NumPy sqrt() – Square Root of Matrix Elements

URL: https://www.progressiverobot.com/numpy-sqrt-square-root-of-matrix-elements/ [Python NumPy module](/community/tutorials/python-numpy-tutorial) is used to work with multidimensional arrays and matrix manipulations. We can use NumPy sqrt() function to get the square root of the matrix elements. Python NumPy sqrt() Example import numpy array_2d = numpy.array([[1, 4], [9, 16]], dtype=numpy.float) print(array_2d) array_2d_sqrt = numpy.sqrt(array_2d) print(array_2d_sqrt) Output: [[ 1. 4.] [ 9. 16.]] […]

Read more
Permutations and Combinations in Python — step-by-step Python tutorial on Progressive Robot

Permutations and Combinations in Python

URL: https://www.progressiverobot.com/permutation-and-combinatios-in-python/ Permutations and Combinations of a set of elements are different arrangements of the elements of the set. Combination is a collection of the elements where the order doesn't matter Permutation is an arrangement of a set where the order does matter. Let's consider a set as : {A, B, C} The permutations of the above […]

Read more
Python f-strings - PEP 498 - Literal String Interpolation — step-by-step Python tutorial on Progressive Robot

Python f-strings – PEP 498 – Literal String Interpolation

URL: https://www.progressiverobot.com/python-f-strings-literal-string-interpolation/ Python f-strings or formatted strings are the new way to format strings. This feature was introduced in Python 3.6 under PEP-498. It's also called literal string interpolation. Why do we need f-strings? Python provides various ways to format a string. Let's quickly look at them and what are the issues they have. % […]

Read more
CHAT