'Return :class:`~openpyxl.worksheet.AutoFilter` object.
`auto_filter` attribute stores/returns string until 1.8. You should change your code like ``ws.auto_filter.ref = "A1:A3"``.
.. versionchanged:: 1.9'

@property
def auto_filter(self):

    return self._auto_filter
