Skip to main content

Data analysis utilities for GridWiz (extracted from notebook)

Project description

gridwiz_analytics

Utilities to analyze GridWiz e-bike data from Excel files. You provide the file at call-time (e.g., July.xlsx).

Install

pip install .
# or build first:
python -m build && pip install dist/*.whl

Usage

from gridwiz_analytics import (
    RevenueTrendAnalyzer, PeakUsageAnalyzer,
    HourlyPeakAnalyzer, BikeUsageAnalyzer,
    DailyRevenueAnalyzer, DailyRidingAnalyzer
)

# Revenue per parking spot (read Excel when you instantiate)
rev = RevenueTrendAnalyzer("July.xlsx")
print(rev.total_revenue_by_spot())
rev.plot_revenue_by_spot(selected_spots=[
    "Gridwiz Parking Area","Fakultas Teknik","Fakultas Kedokteran"
])

# Peak usage by day for selected spots
peak = PeakUsageAnalyzer("Agustus.xlsx")
peak.plot_daily_peak_usage(["Islamic Center"])

# Hourly usage for top-N spots
hourly = HourlyPeakAnalyzer("august.xlsx")
hourly.plot_hourly_usage_top_spots(from_spots=["Islamic Center","UTTARA"], top_n=5)

# Total usage counts (filtered list)
bike = BikeUsageAnalyzer("data_july.xlsx")
bike.plot_usage([
    "Gridwiz Parking Area","Fakultas Teknik","UPT Perpustakaan","Rektorat"
])

# Daily revenue per spot (wide date range filled with zeros)
daily_rev = DailyRevenueAnalyzer("16-26.xlsx")
daily_rev.plot_daily_revenue(["Gridwiz Parking Area","Fakultas Teknik"])

# Daily riding counts per spot
daily_ride = DailyRidingAnalyzer("16-26.xlsx")
daily_ride.plot_daily_riding(["Islamic Center","UTTARA"], title="Daily Riding Partnership")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gridwiz_analytics-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gridwiz_analytics-0.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file gridwiz_analytics-0.1.0.tar.gz.

File metadata

  • Download URL: gridwiz_analytics-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.0

File hashes

Hashes for gridwiz_analytics-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4224e94aa2650f98dd50bbe830ca37e941add311149928466170b5d13e982f31
MD5 e849516db26e970af805ba6c4bfc92c0
BLAKE2b-256 cdc9c9dd0fae5edd0ad4a33b541c2e0d2d0ce66cc23c3f749c2c9f88c644ef68

See more details on using hashes here.

File details

Details for the file gridwiz_analytics-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gridwiz_analytics-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 faeadb1d78847369368d2dc0af0493b6013fae3ba823aa5ae16e120309346b68
MD5 e9379406f96e39eab69744bbe0846024
BLAKE2b-256 533c4084428d6930aee0b3287f6fefe6d0af42b8e1f59efbd8719f353074966e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page