We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98b0f90 commit 2800ec8Copy full SHA for 2800ec8
pandas/core/generic.py
@@ -3092,9 +3092,9 @@ def to_latex(
3092
3093
Examples
3094
--------
3095
- >>> df = pd.DataFrame({{'name': ['Raphael', 'Donatello'],
3096
- ... 'mask': ['red', 'purple'],
3097
- ... 'weapon': ['sai', 'bo staff']}})
+ >>> df = pd.DataFrame(dict(name=['Raphael', 'Donatello'],
+ ... mask=['red', 'purple'],
+ ... weapon=['sai', 'bo staff']))
3098
>>> print(df.to_latex(index=False)) # doctest: +NORMALIZE_WHITESPACE
3099
\begin{{tabular}}{{lll}}
3100
\toprule
0 commit comments