numpy
Here are 6,258 public repositories matching this topic...
-
Updated
Sep 2, 2020 - Jupyter Notebook
-
Updated
Jul 24, 2020 - Python
Picking up from #15731, there are many places in numpy where we do something like:
try:
something_which_throws_typeError
except TypeError:
raise ValueError("a clearer explanation of what went wrong")
It would produce a marginally clearer error if we could change these to use traceback chaining. Our two options are either:
- The inner error provides valuable infor
-
Updated
Oct 19, 2019
-
Updated
Jul 9, 2020 - Python
-
Updated
Sep 27, 2019 - Jupyter Notebook
If you join Dask DataFrame on a categorical column, then the outputted Dask DataFrame column is still category
dtype. However, the moment you .compute()
the outputted Dask DataFrame, then the column is the wrong dtype, not categorical.
Tested on Dask 2.14.0 and Pandas 1.0.3
This example where the category type looks like a float, so after .compute(), the dtype is float.
import dask.d
-
Updated
Aug 16, 2020 - Python
-
Updated
Sep 22, 2019 - Python
-
Updated
Jul 5, 2020 - Python
-
Updated
Aug 17, 2020 - Python
-
Updated
Sep 4, 2020 - Python
-
Updated
Sep 4, 2020 - Python
-
Updated
Feb 6, 2020
Well, Gumbel Distribution is magical. Basically, given a sequence of K logits, i.e., "\log a_1, \log a_2, ..., \log a_K" and K independent gumbel random variables, i.e., "g_1, g_2, ..., g_K". We have
\argmax_i \log a_i + g_i ~ Categorical({a_i / sum(a)})
This gives you a very simple way to sampl
-
Updated
Sep 4, 2020 - C++
Support DataFrame.select_dtypes
What happened:
xr.DataArray([1], coords=[('onecoord', [2])]).sel(onecoord=2).to_dataframe(name='name')
raise an exception ValueError: no valid index for a 0-dimensional object
What you expected to happen:
the same behavior as: xr.DataArray([1], coords=[('onecoord', [2])]).to_dataframe(name='name')
Anything else we need to know?:
I see that the array after the select
-
Updated
Aug 10, 2020 - Jupyter Notebook
-
Updated
Feb 11, 2020 - Python
-
Updated
Aug 30, 2020 - Jupyter Notebook
-
Updated
Sep 6, 2020 - Python
Improve this page
Add a description, image, and links to the numpy topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the numpy topic, visit your repo's landing page and select "manage topics."