Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Filters | Openpyxl
Excel Automation with Python (project)

book
Filters

auto_filter() is a method provided by the openpyxl library in Python that allows you to create a filter on a range of cells in a worksheet. The auto_filter.ref() method takes parameters specifying the starting and ending cells of the range and the criteria for the filter, such as a range of values or a text string.

Now, you know how to specifie the area where the filter should be applied.

Tarefa

Swipe to start coding

  1. Define a filter from cell "A1" to "0100";
  2. Save the workbook.

Solução

sheet.auto_filter.ref = "A1:O100"

workbook.save(filename="hello_world_append.xlsx")

Mark tasks as Completed
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 8

Pergunte à IA

expand
ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

some-alt