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

[Python] consistently handle conversion of all-NaN arrays across types

Add voteWatch issue
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Python
    • None

    Description

      In ARROW-5682 (https://github.com/apache/arrow/pull/5333), next to fixing actual conversion bugs, I added the ability to convert all-NaN float arrays when converting to string type (and only with from_pandas=True). So this now works:

      >>> pa.array(np.array([np.nan, np.nan], dtype=float), type=pa.string(), from_pandas=True)
      <pyarrow.lib.StringArray object at 0x7f54dc9de830>
      [
        null,
        null
      ]
      

      However, I only added this for string type (and it already works for float and int types). If we are happy with this behaviour, we should also add it for other types.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jorisvandenbossche Joris Van den Bossche

            Dates

              Created:
              Updated:

              Slack

                Issue deployment