45 Data Information
At this phase we could address questions such as how can we extract information about the data that we have?
A sample of these kind of questions is presented below:
- How many (non-null) observations do we have? To answer this question, we can run:
data.info()
- How many unique columns/features do we have?
data.column.unique()
- Which columns (if any) contain missing data?
data[data.isnull().any(axis=1)]
- What is the data type of each column?
data.dtypes