Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added statistics model, updated revenue model #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

clkao
Copy link

@clkao clkao commented Feb 22, 2023

Comparison Summary
Table Rows Columns
fact_trips 105219 (+0) 27 (+0)
dm_monthly_zone_statistics (+) 5599 6
dim_zones 265 (+0) 4 (+0)
dm_monthly_zone_revenue (!) 5599 (+0) 12 (-3)
(deleted=3)
Tables Summary (added=1, schema changed=1)
fact_trips
Column Type Valid % Distinct %
tripid VARCHAR 100.0% (+0.0%) 99.99% (+0.0%)
vendorid INTEGER 100.0% (+0.0%) 0.0% (+0.0%)
service_type VARCHAR 100.0% (+0.0%) 0.0% (+0.0%)
ratecodeid INTEGER 95.7% (+0.0%) 0.01% (+0.0%)
pickup_locationid INTEGER 100.0% (+0.0%) 0.23% (+0.0%)
pickup_borough VARCHAR 100.0% (+0.0%) 0.01% (+0.0%)
pickup_zone VARCHAR 100.0% (+0.0%) 0.23% (+0.0%)
dropoff_locationid INTEGER 100.0% (+0.0%) 0.24% (+0.0%)
dropoff_borough VARCHAR 100.0% (+0.0%) 0.01% (+0.0%)
dropoff_zone VARCHAR 100.0% (+0.0%) 0.24% (+0.0%)
pickup_datetime TIMESTAMP 100.0% (+0.0%) 99.96% (+0.0%)
dropoff_datetime TIMESTAMP 100.0% (+0.0%) 99.88% (+0.0%)
store_and_fwd_flag VARCHAR 95.7% (+0.0%) 0.0% (+0.0%)
passenger_count INTEGER 95.7% (+0.0%) 0.01% (+0.0%)
trip_distance NUMERIC(18, 3) 100.0% (+0.0%) 2.32% (+0.0%)
trip_type INTEGER 98.83% (+0.0%) 0.0% (+0.0%)
fare_amount NUMERIC(18, 3) 100.0% (+0.0%) 2.3% (+0.0%)
extra NUMERIC(18, 3) 100.0% (+0.0%) 0.03% (+0.0%)
mta_tax NUMERIC(18, 3) 100.0% (+0.0%) 0.0% (+0.0%)
tip_amount NUMERIC(18, 3) 100.0% (+0.0%) 1.43% (+0.0%)
tolls_amount NUMERIC(18, 3) 100.0% (+0.0%) 0.11% (+0.0%)
ehail_fee NUMERIC(18, 3) 95.68% (+0.0%) 0.0% (+0.0%)
improvement_surcharge NUMERIC(18, 3) 100.0% (+0.0%) 0.0% (+0.0%)
total_amount NUMERIC(18, 3) 100.0% (+0.0%) 4.19% (+0.0%)
payment_type INTEGER 98.83% (+0.0%) 0.0% (+0.0%)
payment_type_description VARCHAR 95.7% (+0.0%) 0.0% (+0.0%)
congestion_surcharge NUMERIC(18, 3) 95.7% (+0.0%) 0.0% (+0.0%)
dm_monthly_zone_statistics (+)
Column Type Valid % Distinct %
revenue_zone (+) VARCHAR 100.0% 4.3%
revenue_month (+) DATE 100.0% 0.68%
service_type (+) VARCHAR 100.0% 0.04%
total_monthly_trips (+) BIGINT 100.0% 3.68%
avg_montly_passenger_count (+) DOUBLE_PRECISION 76.12% 19.76%
avg_montly_trip_distance (+) DOUBLE_PRECISION 100.0% 68.16%
dim_zones
Column Type Valid % Distinct %
locationid NUMERIC(18, 3) 100.0% (+0.0%) 100.0% (+0.0%)
borough VARCHAR 100.0% (+0.0%) 2.64% (+0.0%)
zone VARCHAR 100.0% (+0.0%) 98.87% (+0.0%)
service_zone VARCHAR 100.0% (+0.0%) 1.89% (+0.0%)
dm_monthly_zone_revenue (!)
Column Type Valid % Distinct %
revenue_zone VARCHAR 100.0% (+0.0%) 4.3% (+0.0%)
revenue_month DATE 100.0% (+0.0%) 0.68% (+0.0%)
service_type VARCHAR 100.0% (+0.0%) 0.04% (+0.0%)
revenue_monthly_fare NUMERIC(38, 3) 100.0% (+0.0%) 60.15% (+0.0%)
revenue_monthly_extra NUMERIC(38, 3) 100.0% (+0.0%) 9.16% (+0.0%)
revenue_monthly_mta_tax NUMERIC(38, 3) 100.0% (+0.0%) 3.8% (+0.0%)
revenue_monthly_tip_amount NUMERIC(38, 3) 100.0% (+0.0%) 43.76% (+0.0%)
revenue_monthly_tolls_amount NUMERIC(38, 3) 100.0% (+0.0%) 4.48% (+0.0%)
revenue_monthly_ehail_fee NUMERIC(38, 3) 68.41% (+0.0%) 0.03% (+0.0%)
revenue_monthly_improvement_surcharge NUMERIC(38, 3) 100.0% (+0.0%) 3.79% (+0.0%)
revenue_monthly_total_amount NUMERIC(38, 3) 100.0% (+0.0%) 74.51% (+0.0%)
revenue_monthly_congestion_surcharge NUMERIC(38, 3) 76.12% (+0.0%) 5.02% (+0.0%)
total_monthly_trips (-) BIGINT - -
avg_montly_passenger_count (-) DOUBLE_PRECISION - -
avg_montly_trip_distance (-) DOUBLE_PRECISION - -

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant