# This code will plot the frequency of hate speech over the index of the dataset. import pandas as pd import matplotlib.pyplot as plt # Load the data df = pd.read_csv('train new.csv') # Plot the frequency of hate speech over the index of the dataset plt.figure(figsize=(12, 6)) plt.plot(df.index, df['hate_speech_count'], label='Hate Speech Count') plt.xlabel('Index (Proxy for Time)') plt.ylabel('Hate Speech Count') plt.title('Frequency of Hate Speech Over Time') plt.legend() plt.show()