Data Processing Functions¶
- to_pywib_df(df, colSessionId, colX, colY, colTimeStamp, colEventType, colKeyValue=None, colKeyCode=None, colScreenWidth=None, colScreenHeight=None)¶
Convert a DataFrame to the standard PyWib format.
- Parameters:
df (pd.DataFrame) – Input DataFrame with arbitrary column names.
colSessionId (str) – Name of the column representing the session ID.
colX (str) – Name of the column representing the X coordinate.
colY (str) – Name of the column representing the Y coordinate.
colTimeStamp (str) – Name of the column representing the timestamp.
colEventType (str) – Name of the column representing the event type.
colKeyValue (str | None) – Name of the column representing the key value.
colKeyCode (str | None) – Name of the column representing the key code.
- Returns:
A new DataFrame with standardized column names for PyWib.
- Return type:
pd.DataFrame