Open
Description
This code
df=pd.DataFrame([['שלום','עליכם', 'מלאכי השלום', 'ברוכים הבאים']])
df.columns=['A','B','C','D']
df
does this:
See that the data row is close to the right?
Half a workaround is to prepend the unicode LTR character to each row:
print u"\n\u200e".join(unicode(df).split("\n"))
but if you look you can see the data appears in reverse order, since:
In [49]: print df.iloc[0,0]
שלום
The same occurs even if the text is decoded into unicode strings.
I tried to understand the repr code in pandas but it's too complex
for me to follow, full of special cases. I hope the developers can fix this.