Validating dimensions

A DataFrame is a two-dimensional data structure where data is presented in a tabular manner, much like a relational database table, in rows and columns. One of the basic methods to check whether the test and validation datasets are matching is to equate the number of rows and columns. If the shapes of the DataFrames do not match, it becomes clearly evident that the test DataFrame is different from the validation one. The following is a screenshot that shows how to validate dimensions:

Validating dimensions
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset