Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- df = pd.read_clipboard()
- ---------------------------------------------------------------------------
- TypeError Traceback (most recent call last)
- <ipython-input-2-6dead334eb54> in <module>()
- ----> 1 df = pd.read_clipboard()
- C:Python33libsite-packagespandasioclipboard.py in read_clipboard(**kwargs)
- 16 from pandas.io.parsers import read_table
- 17 text = clipboard_get()
- ---> 18 return read_table(StringIO(text), **kwargs)
- 19
- 20
- TypeError: initial_value must be str or None, not bytes
- text = clipboard_get()
- C:python33Libsite-packagespandasioclipboard.py
- from tkinter import Tk
- r = Tk()
- text = r.selection_get(selection="CLIPBOARD")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement