Commit 20af8bd
[SPARK-54787][PS] Use list comprehension in pandas _bool_column_labels
### What changes were proposed in this pull request?
Use list comprehension in the pandas.DataFrame method _bool_column_labels. This will modestly improve memory and performance, but also reduces code to a single line.
### Why are the changes needed?
For mantainability and performance
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
CI
### Was this patch authored or co-authored using generative AI tooling?
No
Closes #53550 from devin-petersohn/devin/pandas_maintain_01.
Authored-by: Devin Petersohn <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>1 parent 27c5100 commit 20af8bd
1 file changed
+3
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11268 | 11268 | | |
11269 | 11269 | | |
11270 | 11270 | | |
11271 | | - | |
11272 | | - | |
11273 | | - | |
11274 | | - | |
11275 | | - | |
11276 | | - | |
11277 | | - | |
11278 | | - | |
11279 | | - | |
| 11271 | + | |
| 11272 | + | |
| 11273 | + | |
11280 | 11274 | | |
11281 | 11275 | | |
11282 | 11276 | | |
| |||
0 commit comments