.. SPDX-License-Identifier: BSD-2-Clause
   Copyright (c) 2013-2025, John McNamara, jmcnamara@cpan.org

.. _ex_pandas_autofilter:

Example: Pandas Excel output with an autofilter
===============================================

An example of converting a Pandas dataframe to an Excel file with a
autofilter, and filtered data, using Pandas and XlsxWriter. See
:ref:`working_with_autofilters` for a more detailed explanation of
autofilters.

.. image:: _images/pandas_autofilter.png

.. literalinclude:: ../../../examples/pandas_autofilter.py
