Advertisement
Guest User

Untitled

a guest
Oct 21st, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. import pandas as pd
  2.  
  3. df = pd.read_clipboard()
  4. ---------------------------------------------------------------------------
  5. TypeError Traceback (most recent call last)
  6. <ipython-input-2-6dead334eb54> in <module>()
  7. ----> 1 df = pd.read_clipboard()
  8.  
  9. C:Python33libsite-packagespandasioclipboard.py in read_clipboard(**kwargs)
  10. 16 from pandas.io.parsers import read_table
  11. 17 text = clipboard_get()
  12. ---> 18 return read_table(StringIO(text), **kwargs)
  13. 19
  14. 20
  15.  
  16. TypeError: initial_value must be str or None, not bytes
  17.  
  18. text = clipboard_get()
  19.  
  20. C:python33Libsite-packagespandasioclipboard.py
  21.  
  22. from tkinter import Tk
  23. r = Tk()
  24. text = r.selection_get(selection="CLIPBOARD")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement