-
Notifications
You must be signed in to change notification settings - Fork 4
/
DescriptiveStast.py
27 lines (21 loc) · 990 Bytes
/
DescriptiveStast.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Packages Loading
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Data Loading
Chicago = pd.read_csv('chicago.csv')
new_york_city= pd.read_csv('new_york_city.csv')
washington= pd.read_csv('washington.csv')
##
### Descriptive Stastices
##"""Descriptive Stastices For Chicogo Data Sets"""
print("---------Descriptive Stastices head() For Chicogo Data Sets----------\n")
print("Head For Chicago Data set",Chicago.tail(),Chicago.describe(),Chicago.head())
print("---------Descriptive Stastices For New_york_City Data Sets----------")
print("Head,Tail,Describe For New_york_City_DS Data set",new_york_city.head(),new_york_city.tail(),new_york_city.describe())
print("---------Descriptive Stastices For Washington Data Sets----------")
print("Head,tail,Describe For washington Data set",washington.head(),washington.tail(),washington.describe())
x = Chicago['User Type'].count()
y = Chicago['Gender'].count()
plt.scatter(x,y)
plt.show()