API reference

chatviz: Chat Visualization

chatviz.visualize_chat(df, title[, colors, ...])

Creates a series of plots given a dataframe of messages.

chatviz.plotting: Individual Plots

plot_donuts(df[, ax, colors, show_ylabels])

Creates a plot of 3 donut charts.

plot_timeline(df[, ax, freq, colors, ...])

Creates a bar chart of number of messages over time.

plot_reply_times(df[, ax, colors, show_ylabels])

Creates a horizontal bar chart showing the average reply time in hours for each person in the chat.

plot_hours_radar(df[, ax, colors, legend])

Creates a radar plot showing the number of messages per hour for each person in the chat.

plot_days_radar(df[, ax, colors, legend])

Creates a radar plot showing the number of messages per day for each person in the chat.

plot_words(df[, ax, top_n, stopwords, ...])

Plots a bar chart per person with their top words used.

chatviz.load_data: Load chat data

prep_facebook_data(filename)

Processes a Facebook chat file into a neat DataFrame.

prep_whatsapp_data(filename)

Processes a WhatsApp chat file into a neat DataFrame.

prep_sms_data(filename)

Processes an SMS chat file into a neat DataFrame.