Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created Mar 15, 2021
Embed
What would you like to do?
data["Income"] = data[["Annual Income (k$)"]]
data["Spending"] = data[["Spending Score (1-100)"]]
data = data[["Income", "Spending"]]
print(data.head())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment