User-level Report¶

0. Initial Settings¶

In [1]:
import json


# Write VIN number to argument.json file
with open("jupymodule/arguments.json", "r") as fid:
    arguments = json.load(fid)


userId = int(arguments["userId"])

1. Import Jupyter Module¶

  • After making changes to the DataFrameMaker
In [2]:
# Import Jupyter Module
import import_ipynb


import jupymodule.DataFrameMaker as JupyData
import jupymodule.Visualiser as JupyVisualiser
importing Jupyter notebook from /Users/minjoo/Development/PythonProjects/pydata/exploration/jupymodule/DataFrameMaker.ipynb
importing Jupyter notebook from /Users/minjoo/Development/PythonProjects/pydata/exploration/jupymodule/Visualiser.ipynb
In [3]:
ev_data = JupyData.df
In [4]:
# filter the userId of intereset
ev_data_user = ev_data[ev_data["userId"] == userId]

📈 Plot 1. Heatmap of EV charging - day of the week, hour of the day¶

  • This plot shows when a user starts charing the most during the week, and hour of the day
  • The text indicates the average charging duration within a give time period
In [5]:
JupyVisualiser.heatmap(ev_data, f"Heatmap of EV Charging, UserId: {userId}")

📈 Plot 2. Heatmap of EV charging - day of the week, hour of the day against charging time¶

  • During what day of the week and hour of the day the user charged the longest?
In [6]:
JupyVisualiser.heatmap_with_duration(
    ev_data, f"Heatmap of EV Charging, UserId: {userId}"
)