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
Copy file name to clipboardExpand all lines: index.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2710,7 +2710,7 @@
2710
2710
<DF> = <DF> +-*/ <el/Sr/DF> <spanclass="hljs-comment"># Items with non-matching keys get value NaN.</span>
2711
2711
</code></pre>
2712
2712
<pre><codeclass="python language-python hljs"><DF> = <DF>.set_index(column_key) <spanclass="hljs-comment"># Replaces row keys with values from a column.</span>
2713
-
<DF> = <DF>.reset_index() <spanclass="hljs-comment"># Moves row keys to their own column.</span>
2713
+
<DF> = <DF>.reset_index() <spanclass="hljs-comment"># Moves row keys to column named index.</span>
2714
2714
<DF> = <DF>.filter(<spanclass="hljs-string">'<regex>'</span>, axis=<spanclass="hljs-number">1</span>) <spanclass="hljs-comment"># Only keeps columns whose key matches the regex.</span>
2715
2715
<DF> = <DF>.melt(id_vars=column_key/s) <spanclass="hljs-comment"># Converts DF from wide to long format.</span>
0 commit comments