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.

Feature Request: Adding standard `settdiffXd` and `intersectXd` functions

See original GitHub issue

I think there should be a standard implementation of a settdiffXd function in numpy. Right now, various answers online are “hackish” in that they all basically convert them to 1D to end up running setdiff1d. The same goes for intersect1d.

Is there some reason these aren’t standard functions in numpy?

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
shoyercommented, Jan 20, 2017

What rules would you propose for handling multidimensional inputs?

0reactions
diego898commented, Jan 20, 2017

Ah I know what you mean now - yes thats what I meant all along, always along one dimension/axis, but to support multi-dimensional arrays. Hm - maybe this could be my first opportunity for a code contribution

Read more comments on GitHub >

github_iconTop Results From Across the Web

numpy.setdiff1d — NumPy v1.24 Manual
Find the set difference of two arrays. Return the unique values in ar1 that are not in ar2. Parameters: ar1array_like. Input array.
Read more >
bagel/BAGEL.py at master · hart-lab/bagel - GitHub
A tool from the Bayesian Analysis of Gene EssentiaLity (BAGEL) suite. \b. Calculate fold changes from read count data ...
Read more >
Release Notes — NumPy v1.15 Manual
With Python versions containing the lzma module the text IO functions can now transparently read from files with xz or lzma extension. sign ......
Read more >
Statistics and Machine Learning in Python - Archive ouverte HAL
input features (company characteristics) and a target feature (yi ∈ 1Y es, ... Our model needs an intercept so we add a column...
Read more >
computer stuff | On unicorns and genes
We need some functions to compare haplotypes and individuals: ... That is, we won't really make use of any feature of AlphaSimR except...
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