2.6. Pandas Read Clipboard

2.6.1. Rationale

  • pd.read_clipboard()

2.6.2. Example

Crew        Role    Astronaut
Prime       CDR     Neil Armstrong
Prime       LMP     Buzz Aldrin
Prime       CMP     Michael Collins
Backup      CDR     James Lovell
Backup      LMP     William Anders
Backup      CMP     Fred Haise
>>> 
... import pandas as pd
...
... df = pd.read_clipboard()
...
... df
     Crew Role        Astronaut
0   Prime  CDR   Neil Armstrong
1   Prime  LMP      Buzz Aldrin
2   Prime  CMP  Michael Collins
3  Backup  CDR     James Lovell
4  Backup  LMP   William Anders
5  Backup  CMP       Fred Haise