[Tutor] pandas.to_clipboard() copies nothing

Jim jf_byrnes at comcast.net
Fri Jun 5 21:01:14 EDT 2020


Mint18.3, python3.6, pandas 0.24.1


et_file = '/home/jfb/Downloads/PortfolioDownload.csv'
df = pd.read_csv(et_file, header=6, usecols=[0, 7], skipfooter=6, 
engine='python')
df.to_clipboard(sep=',')
print(df)

Manual notes the following. I'm not using PyQt4, but xclip is installed.

Notes: Requirements for your platform.

     Linux : xclip, or xsel (with PyQt4 modules)
     Windows : none
     OS X : none

The print command prints what I expect to see.

I don't use pandas that much so maybe I am missing something.

Thanks, Jim



More information about the Tutor mailing list