Skip to content

Commit

Permalink
skip timestamp col when fill na
Browse files Browse the repository at this point in the history
  • Loading branch information
sundy1994 committed Feb 28, 2025
1 parent 8a352ec commit b50ea77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/team_comm_tools/utils/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ def preprocess_conversation_columns(df: pd.DataFrame, column_names: dict, groupi
df.columns = df.columns.str.replace('[^A-Za-z0-9_]', '', regex=True)
# fillna
for role, col in column_names.items():
if role == 'timestamp_col':
continue
df[col] = df[col].fillna('')

if not grouping_keys: # case 1: single identifier
Expand Down

0 comments on commit b50ea77

Please sign in to comment.