Skip to content

[Python] Add __iter__ method to NativeFile #19194

@asfimport

Description

@asfimport

Copied from #2114

Currently, NativeFile does not pass the check of pandas for being a "file-like" object because it does not have __iter__ method. It can be easily added using code from native python io module as a reference. Another way would be to subclass io.IOBase.

The exact code of pandas check can be found here.

Code for __iter__ method and io.IOBase can be found here.

Reporter: Wes McKinney / @wesm
Assignee: Dimitri Vorona / @alendit

PRs and other links:

Note: This issue was originally created as ARROW-2816. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions