| by Arround The Web

10 Useful Python One-Liners You Must Know

Python is a complex programming language where even “simple” commands can do a lot. Check out some of the most useful ones.
The post 10 Useful Python One-Liners You Must Know appeared first on Linux Today.

Read More
| by Arround The Web

Select Multiple Columns in Pandas

Article guide about Pandas in Python and its advantages, the DataFrame, and how to use Pandas to select multiple columns of a DataFrame using four options.

Read More
| by Arround The Web

Pandas Isin() Method

Inclusive guide about Pandas in Python, Dataframe, Pandas isin() function, and some isin() method examples used to get the boolean dataframe.

Read More
| by Arround The Web

Seaborn Boxplot

The “seaborn.boxplot()” method of the “seaborn” library in Python is used to draw/plot the distributions with respect to categories.

Read More
| by Arround The Web

Pandas New Column Based on Another Column

This article will illustrate two methods that you can use to create a new column based on the value of another column within a Pandas DataFrame.

Read More
| by Arround The Web

Pandas Timestamp Get Day

This was a short tutorial depicting how to extract the day and day name from a timestamp object. You can do this using the timestamp() function.

Read More
| by Arround The Web

Pandas Describe

This discussed how to use the describe() function in Pandas which allows you to get the statistical summary of the data within your Pandas DataFrame.

Read More
| by Arround The Web

Create a List of Lists in Python

To create a list of lists in Python, use the bracket notation used for list initialization or use the append() method to add lists into a list.

Read More
| by Arround The Web

Pandas Combine Date and Time

This article discussed how you could combine date and time objects in Pandas to create a timestamp object. It covered how you can combine date and time columns.

Read More
| by Arround The Web

Numpy Np.Apply_Along_Axis

This article discusses how apply_along_axis() function is used to apply a specific function to a 1D slice along a specified axis.

Read More
| by Arround The Web

Numpy Np.Add.At

This short article discussed the basics of using the ufunc at() function in NumPy; the add.at a function in NumPy allows you to perfrom an in-place operation.

Read More
| by Arround The Web

Numpy Fromfile

NumPy tofile() function allows you to save an array to a text or binary file. This will discuss saving and reading a NumPy array to and from a binary file.

Read More
| by Arround The Web

NumPy Count True

This article discusses how to use the count_nonzero() function to determine the number of True elements in an array with examples.

Read More
| by Arround The Web

Find Strings in Pandas

This will help you understand methods we can use to search for a string in Pandas DataFrame or for a substring using the contains() method.

Read More
| by Arround The Web

Pandas Cumsum()

The cumsum() function in Pandas allows you to calculate the cumulative sum over a given axis. Pandas Cumsum() function is discussed in this article.

Read More
| by Arround The Web

Pandas Check Column Type

The most straightforward way to get the column’s data type in Pandas is to use the dtypes attribute. Pandas also provide us with the info() method.

Read More
| by Arround The Web

Pandas Column Type to String

The astype() function in Pandas allows you to cast an object to a specific data type. Pandas column type to string is discussed in this article.

Read More
| by Arround The Web

NumPy np.power()

The power() function in NumPy allows you to raise the elements from the first array to the power of the elements in the second array.

Read More
| by Arround The Web

NumPy np.identity()

One of the most practical functions in NumPy is the identity() function. This function allows you to generate an identity array in a simple step.

Read More
| by Arround The Web

NumPy np.absolute()

The absolute() function in NumPy allows you to determine the distance between an element and 0, also known as an absolute value in a given array.

Read More