Skip to content

Commit

Permalink
Update Datetime Numeric Check
Browse files Browse the repository at this point in the history
Changed to handle other pandas and numpy integer types such as int64.
  • Loading branch information
19thyneb committed Jan 21, 2021
1 parent 0defa44 commit 02906f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lux/executor/PandasExecutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ def _is_datetime_string(series):

@staticmethod
def _is_datetime_number(series):
if series.dtype == int:
if series.dtype == int or "int" in str(series.dtype):
try:
temp = series.astype(str)
pd.to_datetime(temp)
Expand Down

0 comments on commit 02906f9

Please sign in to comment.