SIENTIAPDE-1579: Lint fixes and formatting
This commit is contained in:
@@ -463,7 +463,9 @@ class DataPreprocessor(BaseEstimator, TransformerMixin):
|
||||
if not date_str:
|
||||
return None
|
||||
try:
|
||||
python_fmt = _frontend_date_format_to_strftime(self.date_format) if self.date_format else None
|
||||
python_fmt = (
|
||||
_frontend_date_format_to_strftime(self.date_format) if self.date_format else None
|
||||
)
|
||||
if python_fmt:
|
||||
return pd.to_datetime(date_str, format=python_fmt)
|
||||
return pd.to_datetime(date_str)
|
||||
|
||||
Reference in New Issue
Block a user