Skip to content

Commit 05dbb8f

Browse files
author
y-p
committed
BUG: allow unicode column_format in to_latex
this is an internal method, and the kwd args is not used anywhere, still...
1 parent 792b005 commit 05dbb8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/format.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def to_latex(self, force_unicode=False, column_format=None):
298298
if column_format is None:
299299
column_format = '|l|%s|' % '|'.join('c' for _ in strcols)
300300
else:
301-
assert isinstance(column_format, str)
301+
assert isinstance(column_format, basestring)
302302

303303
self.buf.write('\\begin{tabular}{%s}\n' % column_format)
304304
self.buf.write('\\hline\n')

0 commit comments

Comments
 (0)