Skip to content

Commit 02979c4

Browse files
author
Marks Mac
committed
fixed miss type in the code
1 parent 4115de4 commit 02979c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

financial/amortization_table.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def amortization_table(
7979
payments = years * 12
8080
interest_rate /= 12
8181
payment_amount = payment(principal, interest_rate, payments)
82-
df = pd.DataFrame(index=range(0, payments + 1), columns=["Payment", "Principal", "Interest", "Remaining"], dtype="float", data=0)
82+
amor_table = pd.DataFrame(index=range(0, payments + 1), columns=["Payment", "Principal", "Interest", "Remaining"], dtype="float", data=0)
8383

8484
amor_table["Payment"][1:] = payment_amount
8585
amor_table["Remaining"][0] = principal

0 commit comments

Comments
 (0)