Code Monkey home page Code Monkey logo

Comments (8)

ToffeeCrunch avatar ToffeeCrunch commented on June 20, 2024

What do you mean? Could you give an example of what you would like and how it looks now?

from dataset.

pudo avatar pudo commented on June 20, 2024

+1 on @ToffeeCrunch's suggestion. We can probably have a constructor argument where you pass in a class that overrides getattr, is that what you mean?

from dataset.

sbirch avatar sbirch commented on June 20, 2024

This would also be nice to support indexing the columns in order (with a different kind of class, of course). Right now AFAIK it's not possible to know what the original key order is.

from dataset.

gka avatar gka commented on June 20, 2024

@sbirch that would be possible by returning OrderedDicts instead of dicts.. Actually a good idea I think.

from dataset.

gka avatar gka commented on June 20, 2024

OrderedDict support added in branch ordered-dicts

from dataset.

sbirch avatar sbirch commented on June 20, 2024

Woohoo! That will be very useful to me. Though I still think there's value in @JosephShering's original suggestion, as it provides the flexibility to do things like what you did without forking it. (Attribute accessors would be very nice too, for example.)

from dataset.

stefanw avatar stefanw commented on June 20, 2024

FYI: right now SQLAlchemy's RowProxy objects are returned that mostly behave like ordered dicts.

from dataset.

pudo avatar pudo commented on June 20, 2024

It's OrderedDict now.

from dataset.

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.