Skip to content

document that .append also works when the axis already exists + deprecate .extend #887

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

Closed
gdementen opened this issue Aug 7, 2020 · 1 comment

Comments

@gdementen
Copy link
Contributor

>>> arr = ndtest(3)
>>> arr
a  a0  a1  a2
    0   1   2
>>> arr.append('a', 42, 'a3')
a  a0  a1  a2  a3
    0   1   2  42
>>> arr2 = Array([42], 'a=a3')
>>> arr.extend('a', arr2)
a  a0  a1  a2  a3
    0   1   2  42
>>> arr3 = Array([42, 43], 'a=a3,a4')
>>> arr.extend('a', arr3)
a  a0  a1  a2  a3  a4
    0   1   2  42  43
>>> arr.append('a', arr3)
a  a0  a1  a2  a3  a4
    0   1   2  42  43
@gdementen
Copy link
Contributor Author

gdementen commented Feb 17, 2023

FWIW, I did a little poll about this for our heaviest users. So far the results are:
jd +1, rd +1, bm -0, gb +0
So I will do this.

gdementen added a commit to gdementen/larray that referenced this issue Mar 13, 2023
also improved docstring for Array.append and moved test_extend closer to related tests
gdementen added a commit to gdementen/larray that referenced this issue Mar 13, 2023
also improved docstring for Array.append and moved test_extend closer to related tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant