Skip to content

Unsigned numpy uint64 unsupported #1155

Closed

Description

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"
)
)

Activity

  1. jonmmease commented on Sep 3, 2018

    @jonmmease
    Contributor

    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!

  2. jonmmease commented on Sep 6, 2018

    @jonmmease
    Contributor

    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:

    newplot

    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 uint64 array breaks the FigureWidget serialization, so I'm going to mark this as a bug either way.

  3. jonmmease commented on Sep 8, 2018

    @jonmmease
    Contributor

    The FigureWidget issue noted above has been fixed in #1163

  4. added this to the v3.2.1 milestone on Sep 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions