Skip to content

Instantly share code, notes, and snippets.

@lakshay-arora
Created August 19, 2019 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lakshay-arora/b48450269a0f2aca4969616318e16d1c to your computer and use it in GitHub Desktop.
Save lakshay-arora/b48450269a0f2aca4969616318e16d1c to your computer and use it in GitHub Desktop.
import pandas as pd
df = pd.DataFrame({
'Class': ['A', 'A', 'A', 'V', 'V', 'A', 'A', 'A'],
'X': [4, 3, 5, 2, 1, 7, 7, 5],
'Y': [0, 4, 3, 6, 7, 10, 11, 9],
'Z': [1, 2, 3, 1, 2, 3, 1, 2]
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment