Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
data["labels"] = data["class"].map({0: "Hate Speech",
1: "Offensive Language",
2: "No Hate and Offensive"})
print(data.head())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment