Write a Python program to get the number of observations, missing values and nan values.
import pandas as pd iris = pd.read_csv("iris.csv") print(iris.info())
Samole Output:
<class 'pandas.core.frame.dataframe'=""> RangeIndex: 150 entries, 0 to 149 Data columns (total 6 columns): Id 150 non-null int64 SepalLengthCm 150 non-null float64 SepalWidthCm 150 non-null float64 PetalLengthCm 150 non-null float64 PetalWidthCm 150 non-null float64 Species 150 non-null object dtypes: float64(4), int64(1), object(1) memory usage: 7.1+ KB None
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Samole Output:
need an explanation for this answer? contact us directly to get an explanation for this answer