You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"### df.filter: Filter Columns Based on a Subset of Their Names"
711
+
]
712
+
},
713
+
{
714
+
"cell_type": "markdown",
715
+
"id": "54f71d1b",
716
+
"metadata": {},
717
+
"source": [
718
+
"If you want to filter columns of a pandas DataFrame based on a subset of their names, use `DataFrame.filter`. In the example below, we only choose the columns that contain the word \"cat\". "
<h2><spanclass="section-number">4.6.4. </span>df.filter: Filter Columns Based on a Subset of Their Names<aclass="headerlink" href="#df-filter-filter-columns-based-on-a-subset-of-their-names" title="Permalink to this headline">¶</a></h2>
1140
+
<p>If you want to filter columns of a pandas DataFrame based on a subset of their names, use <codeclass="docutils literal notranslate"><spanclass="pre">DataFrame.filter</span></code>. In the example below, we only choose the columns that contain the word “cat”.</p>
0 commit comments