Skip to content

Commit

Permalink
translate: improve ToInteger implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
pcoccoli committed Aug 21, 2023
1 parent ffb85db commit 7ab26a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firepit/aio/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def translate(
logger.debug('transform: %s %s', txf_col, txf_name)
# Accelerate common transforms
if txf_name == 'ToInteger':
df[txf_col] = df[txf_col].dropna().astype('int')
df[txf_col] = pd.to_numeric(df[txf_col]).dropna().astype('int')
elif txf_name == 'EpochToTimestamp': # QRadar, QDL
df[txf_col] = (pd.to_datetime(df[txf_col].astype(int),
unit="ms",
Expand Down

0 comments on commit 7ab26a9

Please sign in to comment.