Skip to content

Commit

Permalink
Fix category error
Browse files Browse the repository at this point in the history
  • Loading branch information
choldgraf committed Oct 22, 2024
1 parent 3a0110f commit 159ee52
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions book/finances.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ amortized_records = amortized_records.query("Date >= '2022-01-01'")
amortized_records = amortized_records.sort_values("Monthly amount", ascending=False)
```
+++ {"editable": true, "slideshow": {"slide_type": ""}, "user_expressions": [{"expression": "PROBABILITY_CUTOFF", "result": {"status": "ok", "data": {"text/plain": "0.4"}, "metadata": {}}}]}
+++ {"editable": true, "slideshow": {"slide_type": ""}}
## Budget projections
Expand Down Expand Up @@ -420,7 +420,7 @@ for label in labels:
elif label == "estimated":
iname = "Monthly amount (expected)"
title = "Monthly Revenue (weighted by probability success)"
elif "categories" in label:
elif "category" in label:
data_plot = data_plot.groupby(["Date", "Category"]).sum("Monthly amount (expected)")
data_plot = data_plot.reset_index()
data_plot["Name"] = data_plot["Category"]
Expand Down Expand Up @@ -470,7 +470,3 @@ for ii, ilabel in enumerate(labels):
# Display the tab widget
display(tabs)
```
```{code-cell} ipython3
```

0 comments on commit 159ee52

Please sign in to comment.