Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Naming only some dimensions #80

Open
jlumpe opened this issue Sep 23, 2019 · 1 comment
Open

Naming only some dimensions #80

jlumpe opened this issue Sep 23, 2019 · 1 comment

Comments

@jlumpe
Copy link

jlumpe commented Sep 23, 2019

I have a 2D array of time series data. The rows corresponds to variables, so I want to apply names there. The columns correspond to time points so naming them doesn't really make sense. I'm also somewhat worried about performance if an OrderedDict of strings is created for many thousands of columns.

Is there some way to name only the rows and not the columns?

@davidavdav
Copy link
Owner

I don't think it is possible now to have a dimension without a dictionary.

I suppose many thousands is not really an issue on modern hardware, it will take a bit of memory which is wasted indeed. Maybe you can replace a standard OrderedDict with your own fake OrderedDict type after construction. The fake OrderedDict type should implement the Associative interface, but trivially, in a dict[key] == key way. But I don't know if that would work in NamedArrays.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants