Lesser known Seaborn Tips and Tricks

Seaborn Trick Quick Gradient Palette

Want to learn lesser known Seaborn tips and tricks from Micheal Waskom, the developer of Seaborn? Check out his periodical tweets since early this year. Stumbled upon this thread while searching for a specific Seaborn help and worked through some of the tips. Here are a few examples of lesser known Seaborn tips and tricks.… Continue reading Lesser known Seaborn Tips and Tricks

Pandas applymap(): Change values of Dataframe

Pandas applymap() to change values of a dataframe

Pandas applymap() is yet another useful function to change the content of a dataframe. In this tutorial, we will learn how to use Pandas applymap() function to replace multiple column values using a dictionary. Earlier, we saw how to use Pandas replace() function to change the values in multiple columns using dictionary. And then we… Continue reading Pandas applymap(): Change values of Dataframe

How to Replace Multiple Column Values with Dictionary in Python

Pandas Replace Multiple Column Values with Dictionary

Sometimes you might like to change the content of Pandas dataframe, values in one or more columns (not the names of the columns) with some specific values. Pandas’ replace() function is a versatile function to replace the content of a Pandas data frame. First, we will see how to replace multiple column values in a… Continue reading How to Replace Multiple Column Values with Dictionary in Python

How To Save Sparse Matrix in Python to Mtx and Npz file

Sparse matrices in Python are of great of use when you work with dataset that are of high dimensional and sparse. Python’s Scipy has a set of tools to work with different types of commonly used sparse matrices. In this post, we will learn how to save a sparse matrix in Mtx format and npz… Continue reading How To Save Sparse Matrix in Python to Mtx and Npz file

How to Convert a NumPy Array to Pandas Dataframe

NumPy and Pandas are two most useful python toolkits for data analysis. Sometimes you might want to convert a 2d-array in numpy to a dataframe. In this short tutorial, we will learn how to convert a numpy array into Pandas dataframe. Let us first create some numpy array. We will use NumPy’s random module to… Continue reading How to Convert a NumPy Array to Pandas Dataframe