How to use Pandas Sample to Select Rows and Columns

In this tutorial we will learn how to use Pandas sample to randomly select rows and columns from a Pandas dataframe. There are some reasons for randomly sample our data; for instance, we may have a very large dataset and want to build our models on a smaller sample of the data. Other examples are […]

Six ways to reverse pandas dataframe

In this post we will learn how to reverse pandas dataframe. We start by changing the first column with the last column and continue with reversing the order completely. After we have learned how to do that we continue by reversing the order of the rows. That is, pandas data frame can be reversed such […]

Python for Data Analysis Review

Python for Data Analysis I bought the book ‘Python for Data Analysis‘ because I wanted to improve my Python skills. This review of the book is a brief summary of my impressions of it.