Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add limitations
  • Loading branch information
elena.totmenina
elena.totmenina committed Mar 25, 2020
commit a6b7ca95547c5d30f69f0bc5bf909621dbcbbc42
17 changes: 7 additions & 10 deletions sdc/datatypes/hpat_pandas_dataframe_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,13 @@ def hpat_pandas_dataframe_values(df):

Limitations
-----------
Only numeric values supported as an output
- Only numeric values supported as an output
- The dtype will be a lower-common-denominator dtype (implicit upcasting);
that is to say if the dtypes (even of numeric types) are mixed, the one that accommodates all will be chosen.
Use this with care if you are not dealing with the blocks.
e.g. If the dtypes are float16 and float32, dtype will be upcast to float32. If dtypes are int32 and uint8,
dtype will be upcast to int32. By numpy.find_common_type() convention,
mixing int64 and uint64 will result in a float64 dtype.

Examples
--------
Expand All @@ -190,15 +196,6 @@ def hpat_pandas_dataframe_values(df):
:ref:`DataFrame.columns <pandas.DataFrame.columns>`
Retrieving the column names.

.. note::

The dtype will be a lower-common-denominator dtype (implicit upcasting);
that is to say if the dtypes (even of numeric types) are mixed, the one that accommodates all will be chosen.
Use this with care if you are not dealing with the blocks.
e.g. If the dtypes are float16 and float32, dtype will be upcast to float32. If dtypes are int32 and uint8,
dtype will be upcast to int32. By numpy.find_common_type() convention,
mixing int64 and uint64 will result in a float64 dtype.

Intel Scalable Dataframe Compiler Developer Guide
*************************************************
Pandas DataFrame attribute :attr:`pandas.DataFrame.values` implementation.
Expand Down