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

[Python] from_pandas reads 'str' type as binary Arrow data with Python 2

    XMLWordPrintableJSON

    Details

      Description

      Using Python 2, converting Pandas with 'str' data to Arrow results in Arrow data of binary type, even if the user supplies type information. conversion of 'unicode' type works to create Arrow data of string types. For example

      In [25]: pa.Array.from_pandas(pd.Series(['a'])).type
      Out[25]: DataType(binary)
      
      In [26]: pa.Array.from_pandas(pd.Series(['a']), type=pa.string()).type
      Out[26]: DataType(binary)
      
      In [27]: pa.Array.from_pandas(pd.Series([u'a'])).type
      Out[27]: DataType(string)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                joshuastorck Joshua Storck
                Reporter:
                bryanc Bryan Cutler
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: