Skip to content

Commit

Permalink
update type hint using typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jday7879 committed Dec 10, 2024
1 parent 922cb6b commit 9d75510
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cons_results/imputation/post_imputation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import warnings
from typing import List

import numpy as np
import pandas as pd
Expand All @@ -11,7 +12,7 @@
# Can the total be imputed? my guess would be no


def calculate_totals(df: pd.DataFrame, derive_from: list[int]) -> pd.DataFrame:
def calculate_totals(df: pd.DataFrame, derive_from: List[int]) -> pd.DataFrame:

"""
Returns the sums of a dataframe in which the first level index is in
Expand Down

0 comments on commit 9d75510

Please sign in to comment.