(self, parent, dependents)
| 1234 | _preserves_partitioning_information = True |
| 1235 | |
| 1236 | def _simplify_up(self, parent, dependents): |
| 1237 | if isinstance(parent, Projection) and self.subset is not None: |
| 1238 | columns = determine_column_projection( |
| 1239 | self, parent, dependents, additional_columns=self.subset |
| 1240 | ) |
| 1241 | columns = [col for col in self.frame.columns if col in columns] |
| 1242 | |
| 1243 | if columns == self.frame.columns: |
| 1244 | # Don't add unnecessary Projections |
| 1245 | return |
| 1246 | |
| 1247 | return type(parent)( |
| 1248 | type(self)(self.frame[columns], *self.operands[1:]), |
| 1249 | *parent.operands[1:], |
| 1250 | ) |
| 1251 | |
| 1252 | |
| 1253 | class CombineFirst(Blockwise): |
nothing calls this directly
no test coverage detected