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

Update dependencies to allow pandas 2.2 and improve performance #187

Merged
merged 2 commits into from
Jan 20, 2024

Conversation

zaneselvans
Copy link
Member

@zaneselvans zaneselvans commented Jan 20, 2024

  • Allow use of pandas 2.2
  • Require pyarrow, which will be required by pandas 3.0, and now raises a deprecation warning. Should also improve string performance in some use cases.

@zaneselvans zaneselvans added xbrl Data published in the eXtensible Business Reporting Language, a dialect of XML used by FERC and SEC dependencies performance Resource consumption like memory or CPU intensity labels Jan 20, 2024
@zaneselvans zaneselvans self-assigned this Jan 20, 2024
Copy link

codecov bot commented Jan 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (226bc86) 93.44% compared to head (c061d9b) 93.44%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #187   +/-   ##
=======================================
  Coverage   93.44%   93.44%           
=======================================
  Files           8        8           
  Lines         610      610           
=======================================
  Hits          570      570           
  Misses         40       40           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

- Allow use of pandas 2.2
- Require pyarrow, which will be required in pandas 3.0 and now raises a
  deprecation warning if it is not available. Should also improve string
  performance in some use cases.
Copy link
Member Author

Choose a reason for hiding this comment

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

Most of the changes in here are because my TOML linter went to town.

Comment on lines -7 to +9
- pip>=21.0,<24
- pip>=21.0
- python>=3.10,<3.13
- setuptools>=66,<69
- setuptools>=66
Copy link
Member Author

Choose a reason for hiding this comment

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

Unnecessarily restrictive.

"setuptools_scm[toml]>=3.5.0",
"wheel",
]
requires = ["setuptools>=66", "setuptools_scm[toml]>=3.5.0", "wheel"]
Copy link
Member Author

Choose a reason for hiding this comment

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

Allow most recent version of setuptools.

Comment on lines -21 to -29
"pydantic>=2,<3",
"coloredlogs>=14.0,<15.1",
"arelle-release>=2.3,<3",
"coloredlogs>=14.0,<15.1",
"frictionless>=4.4,<5",
"lxml>=4.9.1,<6",
"numpy>=1.16,<2",
"pandas>=1.5,<3",
"pyarrow>=14.0.1", # required starting in pandas 3.0
"pydantic>=2,<3",
"sqlalchemy>=1.4,<3",
"pandas>=1.5,<2.2",
"stringcase>=1.2,<2",
"numpy>=1.16,<2",
"lxml>=4.9.1,<6",
Copy link
Member Author

Choose a reason for hiding this comment

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

Only real changes here are allowing pandas 2.2 and requiring pyarrow.

@zaneselvans zaneselvans merged commit fa5709d into main Jan 20, 2024
16 checks passed
@zaneselvans zaneselvans deleted the pandas-2.2 branch January 20, 2024 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies performance Resource consumption like memory or CPU intensity xbrl Data published in the eXtensible Business Reporting Language, a dialect of XML used by FERC and SEC
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant