Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python数据分析练习#_24-如何打印完整的numpy数组而不截断 有误 #62

Open
lxpoet opened this issue Oct 1, 2024 · 0 comments

Comments

@lxpoet
Copy link

lxpoet commented Oct 1, 2024

np.set_printoptions(threshold=np.nan)
出现报错:threshold must be non-NAN, try sys.maxsize for untruncated representation
可改为:
np.set_printoptions(threshold=np.inf)
或者根据提示
先导入 sys 库
import sys
然后将 原语句改为
np.set_printoptions(threshold=sys.maxsize

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant