-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.txt
131 lines (110 loc) · 8.16 KB
/
outputs.txt
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
------- Q1 ------
+--------+--------------------+---------------------+---------------+-------------+----------+------------------+------------+------------+------------+-----------+-----+-------+----------+------------+---------------------+------------+--------------------+-----------+
|VendorID|tpep_pickup_datetime|tpep_dropoff_datetime|passenger_count|trip_distance|RatecodeID|store_and_fwd_flag|PULocationID|DOLocationID|payment_type|fare_amount|extra|mta_tax|tip_amount|tolls_amount|improvement_surcharge|total_amount|congestion_surcharge|airport_fee|
+--------+--------------------+---------------------+---------------+-------------+----------+------------------+------------+------------+------------+-----------+-----+-------+----------+------------+---------------------+------------+--------------------+-----------+
| 2| 2022-03-17 12:27:47| 2022-03-17 12:27:58| 1.0| 0.0| 1.0| N| 12| 12| 1| 2.5| 0.0| 0.5| 40.0| 0.0| 0.3| 45.8| 2.5| 0.0|
+--------+--------------------+---------------------+---------------+-------------+----------+------------------+------------+------------+------------+-----------+-----+-------+----------+------------+---------------------+------------+--------------------+-----------+
------- Q2 ------
+--------+--------------------+---------------------+---------------+-------------+----------+------------------+------------+------------+------------+-----------+-----+-------+----------+------------+---------------------+------------+--------------------+-----------+-----+
|VendorID|tpep_pickup_datetime|tpep_dropoff_datetime|passenger_count|trip_distance|RatecodeID|store_and_fwd_flag|PULocationID|DOLocationID|payment_type|fare_amount|extra|mta_tax|tip_amount|tolls_amount|improvement_surcharge|total_amount|congestion_surcharge|airport_fee|month|
+--------+--------------------+---------------------+---------------+-------------+----------+------------------+------------+------------+------------+-----------+-----+-------+----------+------------+---------------------+------------+--------------------+-----------+-----+
| 1| 2022-01-22 11:39:07| 2022-01-22 12:31:09| 1.0| 33.4| 1.0| Y| 70| 265| 4| 88.0| 0.0| 0.5| 0.0| 193.3| 0.3| 282.1| 0.0| 0.0| 1|
| 1| 2022-06-12 16:51:46| 2022-06-12 17:56:48| 9.0| 22.0| 1.0| N| 142| 132| 2| 67.5| 2.5| 0.5| 0.0| 800.09| 0.3| 870.89| 2.5| 0.0| 6|
| 1| 2022-03-11 20:08:32| 2022-03-11 20:09:45| 1.0| 0.0| 1.0| N| 265| 265| 1| 2.5| 1.0| 0.5| 48.0| 235.7| 0.3| 288.0| 0.0| 0.0| 3|
| 1| 2022-05-21 16:47:48| 2022-05-21 17:05:47| 1.0| 2.4| 3.0| N| 239| 246| 3| 31.5| 0.0| 0.0| 0.0| 813.75| 0.3| 845.55| 0.0| 0.0| 5|
| 1| 2022-04-29 04:31:21| 2022-04-29 04:32:30| 2.0| 0.0| 1.0| N| 249| 249| 3| 3.0| 3.0| 0.5| 0.0| 911.87| 0.3| 918.67| 2.5| 0.0| 4|
| 1| 2022-02-18 02:33:30| 2022-02-18 02:35:28| 1.0| 1.3| 1.0| N| 265| 265| 1| 3.0| 0.5| 0.5| 19.85| 95.0| 0.3| 119.15| 0.0| 0.0| 2|
+--------+--------------------+---------------------+---------------+-------------+----------+------------------+------------+------------+------------+-----------+-----+-------+----------+------------+---------------------+------------+--------------------+-----------+-----+
------- Q3 ------
+--------------------+---------------------+------------+
| window|Average_Trip_Distance|Average_Cost|
+--------------------+---------------------+------------+
|{2022-01-01 00:00...| 5.58| 19.9|
|{2022-01-16 00:00...| 4.8| 19.04|
|{2022-01-31 00:00...| 5.95| 19.55|
|{2022-02-15 00:00...| 6.19| 20.17|
|{2022-03-02 00:00...| 6.61| 20.69|
|{2022-03-17 00:00...| 5.52| 21.12|
|{2022-04-01 01:00...| 5.68| 21.51|
|{2022-04-16 01:00...| 5.8| 21.43|
|{2022-05-01 01:00...| 6.26| 21.93|
|{2022-05-16 01:00...| 8.0| 22.81|
|{2022-05-31 01:00...| 6.37| 22.44|
|{2022-06-15 01:00...| 6.15| 22.35|
|{2022-06-30 01:00...| 5.95| 22.24|
+--------------------+---------------------+------------+
------- Q3 RDD ------
15 Day Period Number: 1, Average Trip Cost: 19.90, Average Trip Distance: 5.58
15 Day Period Number: 2, Average Trip Cost: 19.04, Average Trip Distance: 4.80
15 Day Period Number: 3, Average Trip Cost: 19.55, Average Trip Distance: 5.95
15 Day Period Number: 4, Average Trip Cost: 20.17, Average Trip Distance: 6.19
15 Day Period Number: 5, Average Trip Cost: 20.69, Average Trip Distance: 6.61
15 Day Period Number: 6, Average Trip Cost: 21.08, Average Trip Distance: 5.50
15 Day Period Number: 7, Average Trip Cost: 21.52, Average Trip Distance: 5.68
15 Day Period Number: 8, Average Trip Cost: 21.43, Average Trip Distance: 5.80
15 Day Period Number: 9, Average Trip Cost: 21.92, Average Trip Distance: 6.25
15 Day Period Number: 10, Average Trip Cost: 22.81, Average Trip Distance: 8.00
15 Day Period Number: 11, Average Trip Cost: 22.45, Average Trip Distance: 6.38
15 Day Period Number: 12, Average Trip Cost: 22.35, Average Trip Distance: 6.15
15 Day Period Number: 13, Average Trip Cost: 21.91, Average Trip Distance: 5.93
------- Q4 ------
+-----------+----+---------------+
|day_of_week|hour|Passenger_count|
+-----------+----+---------------+
| Wednesday| 9| 9.0|
| Wednesday| 12| 8.0|
| Wednesday| 20| 8.0|
| Tuesday| 21| 9.0|
| Tuesday| 22| 9.0|
| Tuesday| 20| 9.0|
| Friday| 19| 9.0|
| Friday| 18| 9.0|
| Friday| 8| 8.0|
| Thursday| 2| 9.0|
| Thursday| 21| 9.0|
| Thursday| 0| 8.0|
| Saturday| 6| 9.0|
| Saturday| 14| 9.0|
| Saturday| 13| 9.0|
| Monday| 20| 9.0|
| Monday| 1| 9.0|
| Monday| 20| 9.0|
| Sunday| 16| 9.0|
| Sunday| 15| 8.0|
| Sunday| 17| 8.0|
+-----------+----+---------------+
------- Q5 ------
+----------+-----+-----------+
| day|month|percent_tip|
+----------+-----+-----------+
|2022/01/03| 1| 250000.0|
|2022/01/31| 1| 1100000.0|
|2022/01/16| 1| 120000.0|
|2022/01/01| 1| 500000.0|
|2022/01/09| 1| 1688800.0|
|2022/02/27| 2| 250000.0|
|2022/02/21| 2| 450000.0|
|2022/02/13| 2| 296900.0|
|2022/02/09| 2| 250000.0|
|2022/02/24| 2| 150000.0|
|2022/03/18| 3| 1000000.0|
|2022/03/21| 3| 700000.0|
|2022/03/26| 3| 200000.0|
|2022/03/05| 3| 200000.0|
|2022/03/19| 3| 100000.0|
|2022/04/03| 4| 400000.0|
|2022/04/02| 4| 1250000.0|
|2022/04/30| 4| 200000.0|
|2022/04/12| 4| 2250000.0|
|2022/04/21| 4| 1200000.0|
|2022/05/15| 5| 200000.0|
|2022/05/16| 5| 200000.0|
|2022/05/06| 5| 120000.0|
|2022/05/12| 5| 750000.0|
|2022/05/20| 5| 650000.0|
|2022/06/25| 6| 1550000.0|
|2022/06/13| 6| 1500000.0|
|2022/06/16| 6| 570000.0|
|2022/06/10| 6| 650000.0|
|2022/06/18| 6| 400000.0|
+----------+-----+-----------+