.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/my_example.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_examples_my_example.py: my_example.py ========================== Here is a plot example .. GENERATED FROM PYTHON SOURCE LINES 7-12 .. code-block:: Python import matplotlib.pyplot as plt _ = plt.plot([1,2,3]) .. image-sg:: /examples/images/sphx_glr_my_example_001.png :alt: my example :srcset: /examples/images/sphx_glr_my_example_001.png :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 13-14 pandas dataframes have a html representation, and this is captured: .. GENERATED FROM PYTHON SOURCE LINES 14-22 .. code-block:: Python import pandas as pd df = pd.DataFrame({'col1': [1,2,3], 'col2': [4,5,6]}) print( df ) s = pd.Series([1,2,3]) .. rst-class:: sphx-glr-script-out .. code-block:: none col1 col2 0 1 4 1 2 5 2 3 6 .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.303 seconds) .. _sphx_glr_download_examples_my_example.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: my_example.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: my_example.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: my_example.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_