Git Product home page Git Product logo

Comments (2)

jpivarski avatar jpivarski commented on June 11, 2024

Sorry, I've been unable to reproduce it:

>>> import numpy
>>> import awkward
>>> numpy.__version__
'1.18.5'
>>> awkward.__version__      # not my development version; a fresh copy from conda-forge
'0.12.22'
>>> awkward.JaggedArray.fromiter([[20.2, 10.1, 30.3, 50.5], [50.5], [60]])
<JaggedArray [[20.2 10.1 30.3 50.5] [50.5] [60.0]] at 0x7fa44f193c90>
>>> awkward.fromiter([[20.2, 10.1, 30.3, 50.5], [50.5], [60]])
<JaggedArray [[20.2 10.1 30.3 50.5] [50.5] [60.0]] at 0x7fa44f193d50>

screenshot

But hopefully that narrows down your search—you might not be using the versions you think you're using (particularly in Jupyter; it sometimes gets packages from an entirely different installation) or maybe there's something else going on.

If you're just starting a project, you might want to consider Awkward1.

>>> import awkward1 as ak
>>> ak.Array([[20.2, 10.1, 30.3, 50.5], [50.5], [60]])
<Array [[20.2, 10.1, 30.3, 50.5, ... [60]] type='3 * var * float64'>

There's a ak.from_awkward0 and ak.to_awkward0 and you can load both Awkward0 and Awkward1 in the same project, so you can make a gradual transition if necessary.

from awkward-0.x.

sitongan avatar sitongan commented on June 11, 2024

Confirmed that it's a versioning issue instead(sorry!), thanks!

from awkward-0.x.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.