Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: read_clipboard fails on Windows since pandas 0.12 #4561

Closed
Puggie opened this issue Aug 14, 2013 · 0 comments · Fixed by #4571
Closed

BUG: read_clipboard fails on Windows since pandas 0.12 #4561

Puggie opened this issue Aug 14, 2013 · 0 comments · Fixed by #4571
Labels
Milestone

Comments

@Puggie
Copy link

Puggie commented Aug 14, 2013

Since I updated pandas from version 0.11 to 0.12, read_clipboard fails:

import pandas as pd    
df = pd.read_clipboard()

Results in:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-2-6dead334eb54> in <module>()
----> 1 df = pd.read_clipboard()

C:\Python33\lib\site-packages\pandas\io\clipboard.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

What I did was:

  • Open a csv file in Excel 2010
  • Copy a range of cells, including headers
  • Perform read_clipboard in iPython Qt console as described in above code block

After downgrading to 0.11, this procedure worked fine again.

OS: Win7, 64bit
Python: v3.3.2 32-bit
Pandas: 0.12.0
Numpy: 1.7.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant