If I rightclick and select Copy Value
it copies corrupted excerpt only:
In 21st century wasn't it possible to just send all the numbers to clipboard?
Say your NumPy array is mynparray
. Then you can do
import pandas as pd
df = pd.DataFrame(mynparray)
df.to_clipboard(index=False,header=False)
Looks like a PyCharm bug: max buffer size is 255.
Try this workaround: press Insert
and evaluate print(dat)
. The value will be dumped to console, where copy is working fine.
Also you can go ahead and evaluate pyperclip.copy(str(dat))
to copy in python (see this question).
print(dat.tolist())
and then copy it from the run Console