Giter Site home page Giter Site logo

Comments (5)

Kirkman avatar Kirkman commented on July 18, 2024

The kludge I'm using to get around this is to add the following immediately after invoking .homogenize():

	table = table._fork(table.rows, row_names='date')

This basically re-creates the table and forces the addition of row_names to all rows.

from agate.

jpmckinney avatar jpmckinney commented on July 18, 2024

I think this can be partially solved in the case where the key argument to homogenize is a single column name, but if it is a sequence of names, then it is not clear which value in compare_values to use as the row name. So, absent adding a row_names parameter to homogenize, I do not think it is possible to preserve the names while also correctly setting names for any added rows. So, closing unless anyone needs this feature.

from agate.

Kirkman avatar Kirkman commented on July 18, 2024

Could .homogenize() be set up to add row names set to None?

I have never used row names for anything explicitly in my code. So I don't understand why it's necessary for .denormalize() to automatically generate them, especially if other methods like homogenize will not generate them.

To me, it feels wrong that the sequence of commands I outlined above (denormalize, homogenize, and then order_by) results in an error. I feel like it should work just fine.

from agate.

jpmckinney avatar jpmckinney commented on July 18, 2024

Hmm, that's an idea. I'll reopen the issue.

agate lacks a maintainer, so I'm just stepping in to fix some easy issues and close feature requests that will never be resolved.

from agate.

jpmckinney avatar jpmckinney commented on July 18, 2024

I found a simple solution similar to #691.

from agate.

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.