You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "pitrou (via GitHub)" <gi...@apache.org> on 2025/05/27 09:17:08 UTC

[I] [Python] `pa.array(..., type=float16)` should accept Python floats [arrow]

pitrou opened a new issue, #46608:
URL: https://github.com/apache/arrow/issues/46608

   ### Describe the enhancement requested
   
   This should work:
   
   ```python
   >>> pa.array([1.2, 3.5, None], type=pa.float32())
   <pyarrow.lib.FloatArray object at 0x7e178b657520>
   [
     1.2,
     3.5,
     null
   ]
   >>> pa.array([1.2, 3.5, None], type=pa.float16())
   Traceback (most recent call last):
     ...
   ArrowTypeError: Expected np.float16 instance
   ```
   
   
   ### Component(s)
   
   Python


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Python] `pa.array(..., type=float16)` should accept Python floats [arrow]

Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on issue #46608:
URL: https://github.com/apache/arrow/issues/46608#issuecomment-2911796682

   @AlenkaF @thisisnic 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Python] `pa.array(..., type=float16)` should accept Python floats [arrow]

Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd closed issue #46608: [Python] `pa.array(..., type=float16)` should accept Python floats
URL: https://github.com/apache/arrow/issues/46608


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Python] `pa.array(..., type=float16)` should accept Python floats [arrow]

Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on issue #46608:
URL: https://github.com/apache/arrow/issues/46608#issuecomment-2938666238

   This has been solved by:
   - https://github.com/apache/arrow/pull/46618


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Python] `pa.array(..., type=float16)` should accept Python floats [arrow]

Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on issue #46608:
URL: https://github.com/apache/arrow/issues/46608#issuecomment-2911803713

   Perhaps the same issue as GH-46021 (or perhaps not :-)).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Python] `pa.array(..., type=float16)` should accept Python floats [arrow]

Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on issue #46608:
URL: https://github.com/apache/arrow/issues/46608#issuecomment-2913356900

   I am tackling this as part of:
   - https://github.com/apache/arrow/issues/46611
   
   I've pushed a draft PR where I am investigating here:
   - https://github.com/apache/arrow/pull/46618


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org