R Prerequisite1
R Prerequisite1
data.shape
(545, 13)
data.info()
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 545 entries, 0 to 544
Data columns (total 13 columns):
# Column Non-Null Count Dtype
Name:Rajlaxmi Kasture Class:SYMCA
Rollno:A-238 Sub-Incharge:Prof.dr.Kapil Misal
Prerequisite no.1
--- ------ -------------- -----
0 price 545 non-null int64
1 area 545 non-null int64
2 bedrooms 545 non-null int64
3 bathrooms 545 non-null int64
4 stories 545 non-null int64
5 mainroad 545 non-null object
6 guestroom 545 non-null object
7 basement 545 non-null object
8 hotwaterheating 545 non-null object
9 airconditioning 545 non-null object
10 parking 545 non-null int64
11 prefarea 545 non-null object
12 furnishingstatus 545 non-null object
dtypes: int64(6), object(7)
memory usage: 55.5+ KB
data.describe()
mea 4.766729e+0
5150.541284 2.965138 1.286239 1.805505 0.693578
n 6
1.870440e+0
std 2170.141023 0.738064 0.502470 0.867492 0.861586
6
1.750000e+0
min 1650.000000 1.000000 1.000000 1.000000 0.000000
6
Name:Rajlaxmi Kasture Class:SYMCA
Rollno:A-238 Sub-Incharge:Prof.dr.Kapil Misal
Prerequisite no.1
3.430000e+0
25% 3600.000000 2.000000 1.000000 1.000000 0.000000
6
4.340000e+0
50% 4600.000000 3.000000 1.000000 2.000000 0.000000
6
5.740000e+0
75% 6360.000000 3.000000 2.000000 2.000000 1.000000
6
1.330000e+0 16200.00000
max 6.000000 4.000000 4.000000 3.000000
7 0
data.columns.to_list()
['price',
'area',
'bedrooms',
'bathrooms',
'stories',
'mainroad',
'guestroom',
'basement',
'hotwaterheating',
'airconditioning',
'parking',
'prefarea',
'furnishingstatus']
Data Visualization using matplotlib
data=np.random.randn(40)
plt.hist(data,bins=20)
plt.xlabel('value')
plt.ylabel('Frequency')
plt.title('Histogram Of Random Data')
plt.show()
Name:Rajlaxmi Kasture Class:SYMCA
Rollno:A-238 Sub-Incharge:Prof.dr.Kapil Misal
Prerequisite no.1