-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unsigned numpy uint64 unsupported #1155
Comments
Hi @suleimanmashini, Please provide a full example that demonstrates the issue, with data and imports, formatted in a "fenced code block" https://www.google.com/url?sa=t&source=web&rct=j&url=https://help.github.com/articles/creating-and-highlighting-code-blocks/&ved=2ahUKEwjMq--AgJ_dAhWQl-AKHSQrCG4QFjAAegQICBAD&usg=AOvVaw297etkhd2-RtKM-CXyUZ9h. Also please include the version of plotly.py you are using. Thanks! |
Hi @jonmmease ,
|
Hi @suleimanmashini , Could you try again with plotly.py 3.2.0 (released yesterday)? When I run your example with this version I don't see this issue: If that doens't fix it for you, can you post what version of numpy you have installed? I did notice that trying to plot a figure with a |
Hey, updating it fixed the problem for me. Thanks! |
1) Preserve numeric numpy types as is in validator out, even if that numeric type is not supported as JavaScript TypedArray 2) Update widget serializer to check numeric numpy arrays for whether they are compatible with TypedArrays. If not, serialize as list. 3) Call to_pydatetime() on pandas datetime series/index values when passed to copy_to_readonly_numpy_array. This returns numpy array of datetimes (which we already know how to serialize) Fixes datetime issue in #1160 Fixes FigureWidget issue in #1155
* Fix error when setting compound or compound array property to `None` * Pandas datetime and numpy numeric array fixes 1) Preserve numeric numpy types as is in validator out, even if that numeric type is not supported as JavaScript TypedArray 2) Update widget serializer to check numeric numpy arrays for whether they are compatible with TypedArrays. If not, serialize as list. 3) Call to_pydatetime() on pandas datetime series/index values when passed to copy_to_readonly_numpy_array. This returns numpy array of datetimes (which we already know how to serialize) Fixes datetime issue in #1160 Fixes FigureWidget issue in #1155
The |
Hi, When I used a pandas array of uint64 on plotly, the numbers appear negative.
I know that they cannot be as i force the type to unsigned when i append:
tempDataFrame[YaxisIn].astype(np.uint64)
In this call:
traces.append(go.Scattergl(
x = tempDataFrame[XaxisIn],
y = tempDataFrame[YaxisIn].astype(np.uint64),
mode = 'markers',
marker = dict (line = dict(width = 1)),
name = database + "." + TablesIn + ".notUseful"
)
)
The text was updated successfully, but these errors were encountered: