I somehow missed Juan's reply.
Yes, I think Juan solved the problem.
Thanks, Juan!
On Sat, May 25, 2019 at 12:57 AM Robert Kern wrote:
> On Fri, May 24, 2019 at 9:33 PM C W wrote:
>
>> Thank you, Robert. I will take it up to the Pandas-dev mailing list.
>>
>> I'm not sure if I follow you on "
On Fri, May 24, 2019 at 9:33 PM C W wrote:
> Thank you, Robert. I will take it up to the Pandas-dev mailing list.
>
> I'm not sure if I follow you on "right semantics for the shape of the
> output." Range is just a summary statistic which is a number.
>
> I'm not an expert, but wouldn't something
Thank you, Robert. I will take it up to the Pandas-dev mailing list.
I'm not sure if I follow you on "right semantics for the shape of the
output." Range is just a summary statistic which is a number.
I'm not an expert, but wouldn't something like this do?
def range(vec):
return np.max(vec) -
On Fri, May 24, 2019 at 8:50 PM C W wrote:
> I can't be the first person who asked about range() that calculates the
> *actual* range of two numbers.
>
> I have not used numpy or pandas long enough to know, but how has it been
> dealt with before?
>
First, through `describe()`, then they added `
On Sat, 25 May 2019, at 1:49 PM, C W wrote:
> I can't be the first person who asked about range() that calculates the
> *actual* range of two numbers.
Based on your mention of matlab's `range`, I think you're looking for
numpy.ptp.
https://docs.scipy.org/doc/numpy/reference/generated/numpy.ptp
I can't be the first person who asked about range() that calculates the
*actual* range of two numbers.
I have not used numpy or pandas long enough to know, but how has it been
dealt with before?
On Fri, May 24, 2019 at 11:10 PM Benjamin Root wrote:
> pandas is not built on numpy (at least, not
pandas is not built on numpy (at least, not anymore), but borrows a lot of
inspirations from numpy, and interacts with numpy fairly well. As part of
the scipy ecosystem, we all work together to improve interoperability and
features.
python's built-in range() function has been there long before num
When I looked up pandas mailing list. Numpy showed up. Maybe is because
Pandas is built on Numpy? My apologies.
Yes, please do. For people with statistical background, but not CS. It
seems strange the *real* range() function is used to generate natural
numbers.
Thanks, Ben!
On Fri, May 24, 201
This is the numpy discussion list, not the pandas discussion list. Now, for
numpy's part, I have had hankerings for a `np.minmax()` ufunc, but never
enough to get over just calling min and max on my data separately.
On Fri, May 24, 2019 at 10:27 PM C W wrote:
> Hello all,
>
> I am want to calcul
Hello all,
I am want to calculate the range of a vector. I saw that someone asked for
range() in 2011, but was it ever created?
https://github.com/pandas-dev/pandas/issues/288
Response at the time was to use df.describe(). But df.describe() gives all
the 5-number summary statistics, but I DON'T W
10 matches
Mail list logo