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.

`axis` option for `stats.tmean` do not appear to be working as expected

See original GitHub issue

My issue is about (see title)

Reproducing code example:

import scipy as sp
import numpy as np

r = np.array([[1, 1, 1], [2, 2, 2], [3, 3, 3]])

print(sp.stats.tmean(r, axis=1))
print(sp.stats.tstd(r, axis=1))

Output:

2.0
[0. 0. 0.]

Expectation:

[1.0, 2.0, 3.0]
[0., 0., 0.]

Scipy/Numpy/Python version information:

1.4.1 1.18.1 sys.version_info(major=3, minor=7, micro=6, releaselevel='final', serial=0)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rgommerscommented, May 17, 2020

Thanks @siddhantwahal, please go for it!

0reactions
dburkhardtcommented, Oct 12, 2021

This is still a bug that makes tmean unusable for intended applications.

Read more comments on GitHub >

github_iconTop Results From Across the Web

scipy.stats.ttest_1samp — SciPy v1.9.3 Manual
This is a test for the null hypothesis that the expected value (mean) of a sample of independent observations a is equal to...
Read more >
scipy.stats.ttest_1samp — SciPy v1.11.0.dev0+1141.46811be ...
This is a test for the null hypothesis that the expected value (mean) of a sample of independent observations a is equal to...
Read more >
scipy.stats.stats — Elephant 0.7.0 documentation
A few extra functions that don't appear in the list below can be found by ... axis : int or None, optional Axis...
Read more >
What does axis in pandas mean? - python - Stack Overflow
DataFrame , axes work the same way as in numpy.array s: axis=0 will apply sum() or any other reduction function for each column....
Read more >
Understanding Bland Altman analysis - PMC - NCBI
In 1983 Altman and Bland (B&A) proposed an alternative analysis, ... The B&A plot method only defines the intervals of agreements, it does...
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