(self)
| 616 | raise ValueError(error_msg) from None |
| 617 | |
| 618 | def _feature_names(self): |
| 619 | if isinstance(self.features, list): |
| 620 | feature_names = list(self.features[0].keys()) |
| 621 | else: |
| 622 | feature_names = list(self.features.keys()) |
| 623 | return feature_names |
| 624 | |
| 625 | def _init_writer(self, timeout=1): |
| 626 | if self.num_process > 1: |