Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-6173

[Python] error loading csv submodule

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 0.12.0, 0.13.0, 0.14.0, 0.14.1
    • Fix Version/s: None
    • Component/s: Python
    • Labels:
    • Environment:
      Windows 7, conda 4.7.11

      Description

      When I create a new environment in conda:

      conda create -n pyarrow-test python=3.7 pyarrow=0.14.1
      

      and try to read a csv file:

      import pyarrow as pa
      pa.csv.read_csv('test.csv')

      it fails with an error:

      Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      AttributeError: module 'pyarrow' has no attribute 'csv'
      

      However, loading it directly works:

      import pyarrow.csv as pc
      table = pc.read_csv('test.csv')
      

      and using pa.csv.read_csv() after loading it directly also works.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Igor Yastrebov Igor Yastrebov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: