A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pandas-dev/pandas/issues/8305 below:

to_clipboard(excel=False) truncates strings to 50 characters · Issue #8305 · pandas-dev/pandas · GitHub

I hope this is not intended as I can't find the point in this behavior:

import pandas as pd
df = pd.DataFrame.from_dict({1: ''.join(['1234567890'] * 6)}, 'index')
df.to_clipboard(excel=False)

result copied to clipboard:

                                                   0
1  1234567890123456789012345678901234567890123456...

Another issue - trying to omit index:

df.to_clipboard(excel=False, index=False)

result copied to clipboard, just the same as previous (with index):

                                                   0
1  1234567890123456789012345678901234567890123456...

This doesn't happen if I leave excel parameter to default value.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4