qua605 commited on
Commit
b25be57
·
1 Parent(s): cfb1883

Second Viz

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,13 +22,13 @@ st.altair_chart(viz1, use_container_width=False)
22
 
23
  st.header("Visualization 2: Issued Time")
24
  data["Original Issue Date"] = pd.to_datetime(data["Original Issue Date"], errors="coerce")
25
- data["YearMonth"] = data["Original Issue Date"].dt.to_period("YM")
26
 
27
  viz2 = (
28
  alt.Chart(data)
29
  .mark_line(point=True)
30
  .encode(
31
- x=alt.X("yearmonth(YearMonth):T", title = "Issue Date(Month)"),
32
  y = alt.Y("count():Q", title="Number of License"),
33
  color = alt.Color("License Type:N", legend=None)
34
  )
 
22
 
23
  st.header("Visualization 2: Issued Time")
24
  data["Original Issue Date"] = pd.to_datetime(data["Original Issue Date"], errors="coerce")
25
+ # data["YearMonth"] = data["Original Issue Date"].dt.to_period("YM")
26
 
27
  viz2 = (
28
  alt.Chart(data)
29
  .mark_line(point=True)
30
  .encode(
31
+ x=alt.X("yearmonth(Original Issue Date):T", title = "Issue Date(Year Month)"),
32
  y = alt.Y("count():Q", title="Number of License"),
33
  color = alt.Color("License Type:N", legend=None)
34
  )