(self, ncols=20)
| 197 | ) |
| 198 | |
| 199 | def choose_schema(self, ncols=20): |
| 200 | schema: list[tuple[type, ...] | type] = [] |
| 201 | while len(schema) < ncols: |
| 202 | if (s := self.make_schema(choice(self.types))) is not None: |
| 203 | schema.append(s) |
| 204 | self.schema = schema |
| 205 | return schema |
| 206 | |
| 207 | def make_records(self, nrecords): |
| 208 | self.records = [self.make_record(nulls=0.05) for i in range(nrecords)] |