Ejemplo n.º 1
0
 def as_array(self, cols=None, type_safe=False, null_schema=False):
     schema = None if null_schema else self.schema
     return list(
         PD_UTILS.as_array_iterable(self.native,
                                    schema=schema,
                                    columns=cols,
                                    type_safe=type_safe))
Ejemplo n.º 2
0
 def as_array_iterable(self,
                       columns: Optional[List[str]] = None,
                       type_safe: bool = False) -> Iterable[Any]:
     for row in PD_UTILS.as_array_iterable(
             self.native,
             schema=self.schema.pa_schema,
             columns=columns,
             type_safe=type_safe,
     ):
         yield row