You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In [34]: df=pandas.DataFrame({'A': [u'\u03c3']})
In [35]: dfOut[35]:
A0σIn [36]: printdf.to_html()
---------------------------------------------------------------------------UnicodeEncodeErrorTraceback (mostrecentcalllast)
...
UnicodeEncodeError: 'ascii'codeccan't encode character u'\u03c3' inposition1: ordinalnotinrange(128)
In [37]:
further more from the thread:
... I wanted to spot as well that
force_unicode is in the doc but is not available.
TypeError: to_html() got an unexpected keyword argument 'force_unicode'
The text was updated successfully, but these errors were encountered:
Currently DataFrame.to_string() and DataFrame.to_html() have the same docstring (through Appender decorator), except for bold_rows. However to_html() misses justify and force_unicode arguments. It probably makes sense for html not to add the force_unicode argument and always use unicode.
By the way bold_rows=True also makes the column labels bold.
@lodagro appear to have gotten this one. I think the headers always come through as bold via <th> but I could be wrong. I was doing a bunch of other unicode cleanup / fixes in #795 also.
see also mailing list
further more from the thread:
The text was updated successfully, but these errors were encountered: