Pandas DataFrame manipulations

A pandas DataFrame is a two dimensional container which uses the ndarray as the underlying data structure. In Data Analytics the first step is to process the data and make it suitable for the specific requirement in hand. For example, a 4x4 matrix of data may need to be removed of the first column and the first row, which can be done by using the truncate() or drop() methods of the pandas DataFrame class. Selecting a list of rows from the beginning of a DataFrame or at the end of a DataFrame can be done through head() and tail methods.


Copyright 2019 © pythontic.com