Giter VIP home page Giter VIP logo

Comments (6)

mjarmoc avatar mjarmoc commented on July 20, 2024 1

The same happens if size key is present in data.

const df = new dfd.DataFrame(jsonData);

from danfojs.

risenW avatar risenW commented on July 20, 2024

Interesting issue. Thanks for raising this. We have to update the internal name for index then, maybe adding an underscore before the name (_index). Would you like to fix this?

from danfojs.

risenW avatar risenW commented on July 20, 2024

@mjarmoc Would you like to work on this?

I believe you just need to change the internal names, maybe add an underscore before them...for instance "index" can be "_index"

from danfojs.

apokralipsa avatar apokralipsa commented on July 20, 2024

I was looking into it, planning to use Symbols instead of prefixing the field names to better avoid conflicts.
The issue is that the index property is exposed by the NDframe class and is documented here. At the same time accessing columns by name is also documented here. So, if the data contains a column named "index" the two collide. I don't think it can be fixed without breaking backwards compatibility and changing one of those.

I would still like to help fixing this, but don't know breaking which of those would be less of an issue.

from danfojs.

HenrikPereira avatar HenrikPereira commented on July 20, 2024

Happened the same to me, but my JSON had a key named data... After change of this key on source to data_c, everything went ok.

from danfojs.

github-actions avatar github-actions commented on July 20, 2024

Stale issue message

from danfojs.

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.