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.

Info "stats" looks horrible (since numpy 1.14)

See original GitHub issue

With numpy 1.14+ much of the formatting got much better, but info('stats') is not one of them:

t = QTable([[1.0, 1.1, 1.2]])
t.info('stats')
<QTable length=3>
name        mean                std         min max
---- ------------------ ------------------- --- ---
col0 1.0999999999999999 0.08164965809277258 1.0 1.2

where before it was

<QTable length=3>
name mean       std       min max
---- ---- --------------- --- ---
col0  1.1 0.0816496580928 1.0 1.2

Basically, the rounding rules changed. In the doctests, it was a change like in mean that made it look horrible, but in this example one sees it can be bad without too. I think we basically need to set some default format for columns that uses a sensible number of digits.

cc @taldcroft

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
bsipoczcommented, Sep 26, 2019

Now that we only support numpy versions that have this change (as well as we can change this now in the new LTS more easily than waiting longer along the road when downstream should support multiple things), it would be nice to come up with a solution for this.

0reactions
mhvkcommented, Sep 27, 2021

Yes, good change! Closing…

Read more comments on GitHub >

github_iconTop Results From Across the Web

3.1 Feature Planning · GitHub
Info "stats" looks horrible (since numpy 1.14) #6962 opened by mhvk. Feature Request table utils. 1 linked pull request. Loading... From Needs decision....
Read more >
Conda downgrade numpy version - python - Stack Overflow
I need to downgrade numpy version: python -c "import numpy; print(numpy.__version__)" 1.16.4. conda install numpy==1.14.3
Read more >
Release Notes — NumPy v1.14 Manual
When that argument is not provided, a broken version of np.frombuffer is used that silently accepts unicode strings and – after encoding them...
Read more >
NumPy User Guide
NumPy is the fundamental package for scientific computing in Python. It is a Python library that provides a multidi-.
Read more >
reticulate 1.14 together with Miniconda3 and tensorflow not ...
Hi,- I was very excited to read Kevin Ushey's 2019-12-20 blog contribution on reticulate 1.4, since it promised to make using Python power, ......
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