import scanpy as sc sc.pp.filter_cells(adata, max_genes=None, min_genes=200, max_counts=None, min_counts=None)