Unexpected keyword argument for some arguments documented in to_latex (original) (raw)

To reproduce the errors:

import pandas as pd

names = ['Bob','Jessica','Mary','John','Mel']
births = [968, 155, 77, 578, 973]
BabyDataSet = zip(names, births)
df = pd.DataFrame(data=BabyDataSet, columns=['Names', 'Births'])

Any of these will yield a TypeError:

print df.to_latex(frame=None)
print df.to_latex(force_unicode=False)
print df.to_latex(justify='left')

I assume this is a problem with documentation and that these arguments are deprecated