No topics yet. Start the conversation.

Summary

User supplied summary for the plot

Monthly Waymo Rides

Description

The below description is supplied in free-text by the user
import inspect, sys
from novem import Plot
from novem.colors import StaticColor as SC, DynamicColor as DC
from novem.table import Selector as S

# Load and prep data 
df = pd.read_csv('ex_waymo_data.csv')
df['TripsStart'] = df['TripsStart']/1000.0
df["Date"] = pd.to_datetime(df["Year Month"], format="mixed").dt.strftime("%Y-%m")
df = df.pivot(index="Date", columns="Company_Region", values="TripsStart").fillna(0)


# MAKE NOVEM PLOT 
plt = Plot('waymo') # Initiate the plot 
plt.type = 'sbar'  
print(plt.url)
plt.data = df # Pipe the data to novem


plt.name = "Autonomous Waymo"
plt.title = "Autonomous Waymo (´000 rides per month)"
plt.caption = """Autonomous Waymo rides per month. Until year end 2024, the data is split by San Francisco and Los Angeles. Source: California Public Utilities Commission, August 1 2025"""
plt.shared += 'public' # Make the graph public 
plt.summary = "Monthly Waymo Rides"
plt.description = ''
plt.description += '```python' + ' ' + inspect.getsource(sys.modules[__name__]) + '```' # Include this python script in Description

print(df)