Skip to content

Commit 33f9024

Browse files
kosiewkylebarron
andauthored
Update python/datafusion/dataframe.py
Co-authored-by: Kyle Barron <[email protected]>
1 parent d3c68cc commit 33f9024

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/datafusion/dataframe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ def __iter__(self) -> Iterator[RecordBatch]:
11471147

11481148
def __aiter__(self) -> AsyncIterator[RecordBatch]:
11491149
"""Return an async iterator over this DataFrame's record batches."""
1150-
return self.execute_stream().__aiter__()
1150+
return aiter(self.execute_stream())
11511151

11521152
def transform(self, func: Callable[..., DataFrame], *args: Any) -> DataFrame:
11531153
"""Apply a function to the current DataFrame which returns another DataFrame.

0 commit comments

Comments
 (0)