Parcourir la source

fixed bug in Cleaning utis

tanja il y a 3 ans
Parent
commit
351271f435
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      cdplib/utils/CleaningUtils.py

+ 2 - 2
cdplib/utils/CleaningUtils.py

@@ -8,7 +8,7 @@ Created on Fri Sep 27 16:20:03 2019
 
 import pandas as pd
 import numpy as np
-from typing import Union, Any, List
+from typing import Union, List
 
 
 class CleaningUtils:
@@ -16,7 +16,7 @@ class CleaningUtils:
     Unites different methods for data cleaning
     '''
     def convert_dates(self,
-                      series: pd.Series[Any],
+                      series: pd.Series,
                       formats: Union[str, List[str]]) -> pd.Series:
         '''
         Converts values from string to date in a pandas Series