Comments (5)
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.
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.
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.
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.
I found a simple solution similar to #691.
from agate.
Related Issues (20)
- Dependency bug in Parsedatetime v2.5 causing Agate / CSVKit issues HOT 1
- TestSniffer.test_sniffer fails with newer Python3 HOT 2
- Ah ha! It looks like you named your script `agate.py` which is also the name of the library, so instead of importing agate it's importing your own code. Try renaming your script! HOT 2
- `print_table` should handle embedded newlines HOT 3
- Force quoting on certain columns? HOT 2
- fails to install with pip in cloud envs due to transitive system dep HOT 1
- PyICU dependency causing pip upgrade failure on macOS HOT 9
- CI: Investigate intermittent test_sniffer error
- best way to convert Date cols to Text after loading? HOT 2
- best way to UNION two tables? HOT 1
- Update more aggregations to work with TimeDelta, specifically Median
- Copying to clipboard HOT 1
- Default string output of TableSet with multiple layers of nesting throws `AttributeError: 'TableSet' object has no attribute 'rows'` HOT 4
- agate requires parsedatetime != 2.5 but won't allow 2.6 HOT 3
- "/" separator for flat JSON files could not be unique HOT 7
- Please add support for python 3.10 HOT 4
- Feature request: line wrapping HOT 1
- Methods missing on some doc pages HOT 1
- Calculating mean for columns, ignoring non-numerical values HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from agate.