chatviz.load_data.prep_whatsapp_data¶
- chatviz.load_data.prep_whatsapp_data(filename)¶
Processes a WhatsApp chat file into a neat DataFrame.
Chat history can be downloaded from WhatsApp as a text file. See here for how to download WhatsApp chat data as a .txt file.
- Parameters
- filenameUnion[int, str, bytes, PathLike]
The path to the JSON chat file.
- Returns
- pd.DataFrame
A DataFrame with all of the necessary columns i.e. [‘date’, ‘name’, ‘text’].