Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Specify newer versions of numpy be used#32

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@dbaxa
Copy link
Contributor

While pandas makes use ofhttps://github.com/scipy/oldest-supported-numpy/blob/main/setup.cfg , we need not hold the version ofnumpy in use back. By requiring a recent release - there should be no issues with regards to architectures such as arm64 on darwin or loongarch64. For python 3.7, we can use 1.21.6.

Signed-off-by: David Black <dblack@atlassian.com>
…n 3.10 & a specific version of numpy being pulled in by pyarrow.Signed-off-by: David Black <dblack@atlassian.com>
Signed-off-by: David Black <dblack@atlassian.com>
@dbaxa
Copy link
ContributorAuthor

This follows on from#31 .

@dbaxa
Copy link
ContributorAuthor

dbaxa commentedAug 15, 2022
edited
Loading

Test execution can be seen athttps://github.com/dbaxa/databricks-sql-python/runs/7837710866?check_suite_focus=true (note that installing dependencies in python 3.10 is considerably faster after this change than it was for#31 ->https://github.com/dbaxa/databricks-sql-python/runs/7837393055?check_suite_focus=true )

…s-of-numpy-be-used# Conflicts:#poetry.lock#pyproject.tomlSigned-off-by: David Black <dblack@atlassian.com>
thrift ="^0.13.0"
pandas ="^1.3.0"
pandas ="^1.3.5"
numpy = [{version="^1.23.2",python=">=3.8"}, {version="^1.21.6",python="<3.8"}]
Copy link
ContributorAuthor

@dbaxadbaxaAug 17, 2022
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I am not sure I have done what I want here. I want to specify "use at least this version of numpy for python >= 3.8". But this ends up as

{':python_version < "3.8"': ['numpy>=1.21.6,<2.0.0'],  ':python_version >= "3.8"': ['numpy>=1.23.2,<2.0.0']}

Which is likely fine but pandas 1.3.5 for example ends up with

        numpy>=1.17.3; platform_machine!='aarch64' and platform_machine!='arm64' and python_version<'3.10'        numpy>=1.19.2; platform_machine=='aarch64' and python_version<'3.10'        numpy>=1.20.0; platform_machine=='arm64' and python_version<'3.10'        numpy>=1.21.0; python_version>='3.10'

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This can be addressed by using>=$version, but I still feel that obtaining numpy version information via pandas is better.

@dbaxa
Copy link
ContributorAuthor

I am going to close this as it is likely better to use a minimum version ofnumpy according to whatpandas wants.

susodapop reacted with thumbs up emoji

@dbaxadbaxa closed thisAug 17, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@susodapopsusodapopAwaiting requested review from susodapop

@arikfrarikfrAwaiting requested review from arikfr

@moderakhmoderakhAwaiting requested review from moderakh

@yunbodeng-dbyunbodeng-dbAwaiting requested review from yunbodeng-db

Assignees

@susodapopsusodapop

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@dbaxa@susodapop

[8]ページ先頭

©2009-2025 Movatter.jp