Data Science Asked by KHK on August 25, 2021
import pandas as pd;
dataSet = pd.read_csv("winequality-red.csv");
dataSet.describe(include = 'all');
When view data set as data frame ,it show empty table.But when printing dataSet,I get following result.
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 1599 entries, 0 to 1598
Data columns (total 12 columns):
fixed acidity 1599 non-null float64
volatile acidity 1599 non-null float64
citric acid 1599 non-null float64
residual sugar 1599 non-null float64
chlorides 1599 non-null float64
free sulfur dioxide 1599 non-null float64
total sulfur dioxide 1599 non-null float64
density 1599 non-null float64
pH 1599 non-null float64
sulphates 1599 non-null float64
alcohol 1599 non-null float64
quality 1599 non-null int64
dtypes: float64(11), int64(1)
memory usage: 150.0 KB
Backend TkAgg is interactive backend. Turning interactive mode on.
<class 'pandas.core.frame.DataFrame'>
Welcome to the site! Instead of describe
, try print(dataSet.head())
and that should show you some of the data in your dataframe.
Answered by I_Play_With_Data on August 25, 2021
After importing the pandas library and reading the input data set,to get the statistical summary such as mean,max,count,standard deviation. Run the Project File and Execute the below commands in Python Console Window to obtain the results. Please refer the screenshots for reference.
Commands:
Option 1: dataSet.describe() or Option 2: dataSet.describe(include='all')
Answered by Srujan K.N. on August 25, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP