question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Concatenate for axis != 0

See original GitHub issue

This was an oversight: it’s really needed but I closed the “concatenate” issue (#76) once the function existed, though there’s a NotImplementedError in it:

https://github.com/scikit-hep/awkward-1.0/blob/afaa40f3993819d7beac903f701a4a1fb7f69897/src/awkward1/operations/structure.py#L151-L154

This operation is known to be useful from Awkward0; it was even an external contribution (https://github.com/scikit-hep/awkward-array/pull/80).

In Awkward1, it can probably be implemented as a broadcast in Python + specialized C++ method on ListArray, ListOffsetArray, and RegularArray (nothing else). That would allow all possible axis values.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jpivarskicommented, Jul 25, 2020

@ianna I was just thinking about this: what would you think about taking this on? It would use the negative axis you just finished. Do you see what it’s supposed to do?

(Personally, I don’t know what it ought to do if the desired axis is deeper than a record layer. Maybe we could exclude that case.)

0reactions
jpivarskicommented, Nov 17, 2020

This wasn’t linked to the new PR, #539, so it didn’t automatically close. But it’s done!

Read more comments on GitHub >

github_iconTop Results From Across the Web

numpy.concatenate — NumPy v1.24 Manual
Join a sequence of arrays along an existing axis. The arrays must have the same shape, except in the dimension corresponding to axis...
Read more >
What is the meaning of "axis" attribute in a Pandas DataFrame?
So back to the problem, concat is a shorthand for concatenate (means to link together in a series or chain on this way...
Read more >
pandas.concat — pandas 1.5.2 documentation
When concatenating all Series along the index (axis=0), a Series is returned. When objs contains at least one DataFrame , a DataFrame is...
Read more >
numpy.concatenate - Tutorialspoint
numpy.concatenate, Concatenation refers to joining. This function is used to join two or more arrays of the same shape along a specified axis....
Read more >
numpy.concatenate() function | Python - GeeksforGeeks
numpy.concatenate() function concatenate a sequence of arrays along an existing axis. Syntax : numpy.concatenate((arr1, arr2, …), axis=0 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found