Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- df = pd.DataFrame({
- 'names': ['A','B','C','D','E','F','G','H','I','J','K','L'],
- 'col1': [0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0],
- 'col2': [0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0]})
- names col1 col2
- A 0 0
- B 1 0
- C 0 0
- D 1 0
- E 1 1
- F 1 0
- G 0 1
- H 0 0
- I 0 1
- J 1 0
- K 0 0
- L 0 0
- names col1 col2
- A 1 0
- B 1 0
- C 1 0
- D 1 0
- E 1 1
- F 1 1
- G 0 1
- H 0 1
- I 0 1
- J 1 0
- K 1 0
- L 1 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement