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.

sparse and other duck array issues

See original GitHub issue

Issues I’ve run into working with @friedrichknuth at the Pangeo meeting trying to use sparse

  1. .plot() doesn’t work. We need to convert to dense before plotting
  2. .values doesn’t work. Raises an error about explicitly calling todense()
  3. align doesn’t seem to work.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:33 (25 by maintainers)

github_iconTop GitHub Comments

4reactions
keewiscommented, Jul 20, 2020

Sounds good. It might be worth discussing the general strategy for the support of this kind of duck array (sparse, cupy and others) in the dev call on Wednesday.

3reactions
shoyercommented, Nov 19, 2019

Also isn’t the function astype not as_type?

Yes, but I think that’s mostly works because it’s so short. In general the rule is to use underscores when it improves clarity. assparse could read in at least two different ways, and one of which is not really appropriate.

Read more comments on GitHub >

github_iconTop Results From Across the Web

sparse and other duck array issues - Bountysource
Issues I've run into working with @friedrichknuth at the Pangeo meeting trying to use sparse .plot() doesn't work.
Read more >
Creating community standards for meta arrays (arrays that wrap ...
SimonHeybrock created a recent discussion (Multiple duck array layers: ... support for many types (see sparse and other duck array issues · Issue...
Read more >
Glossary of Common Terms and API Elements - Scikit-learn
NumPy arrays assume a homogeneous data type throughout, available in the .dtype attribute of an array (or sparse matrix). We generally assume simple...
Read more >
Array.prototype.slice() - JavaScript - MDN Web Docs
expected output: Array ["duck", "elephant"] ... If the sliced portion is sparse, the returned array is sparse as well.
Read more >
NumPy: doc/neps/nep-0030-duck-array-protocol.rst | Fossies
Code that uses np.duckarray is meant for supporting other ndarray-like ... code that follows your use of np.duckarray is present in Dask, CuPy...
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