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
I added a _repr_latex_ method in order to support latex conversion in the
Jupyter/Ipython notebook. The method simply uses the existing to_latex method
of the Dataframe class.
The _repr_latex_ method looks for newly created options:
- display.latex_escape
- display.latex_longtable
which are passed as arguments to the to_latex method.
a simple test has been added to check if the conversion works. However, if the
implementation of the to_latex method changes, the test function would also have to be updated.
- fixed style problems
- renamed display.latex options
- remove duplicate line
- added whatsnew note
Merged during rebase
- fixed spelling mistake in config_init.py
- the defaults for the display.latex.escape option has been changed to the defaults of the to_latex method
- the to_latex method now gets these defaults from the configuration
- the _repr_latex_ method now simply calls the to latex method without any options
- documentation has been changed accordingly
- removed one``-`` from documentation
fixed bad merge during rebase
- fixed test_repr_latex using new defaults
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.18.0.txt
+1-1
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,6 @@ Check the :ref:`API Changes <whatsnew_0180.api>` and :ref:`deprecations <whatsne
26
26
New features
27
27
~~~~~~~~~~~~
28
28
29
-
30
29
.. _whatsnew_0180.enhancements.moments:
31
30
32
31
Window functions are now methods
@@ -108,6 +107,7 @@ Other enhancements
108
107
- ``read_excel`` now supports s3 urls of the format ``s3://bucketname/filename`` (:issue:`11447`)
109
108
- A simple version of ``Panel.round()`` is now implemented (:issue:`11763`)
110
109
- For Python 3.x, ``round(DataFrame)``, ``round(Series)``, ``round(Panel)`` will work (:issue:`11763`)
110
+
- ``Dataframe`` has gained a ``_repr_latex_`` method in order to allow for automatic conversion to latex in a ipython/jupyter notebook using nbconvert. Options ``display.latex.escape`` and ``display.latex.longtable`` have been added to the configuration and are used automatically by the ``to_latex`` method.(:issue:`11778`)
0 commit comments