Skip to content

Commit

Permalink
downgrade requirements for polars
Browse files Browse the repository at this point in the history
  • Loading branch information
gladysteh99 committed Sep 5, 2024
1 parent eb504da commit 42a95ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions locopy/redshift.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,10 +602,7 @@ def insert_dataframe_to_table(
logger.info("New table has been created")

logger.info("Inserting records...")

length = len(dataframe)

for start in range(0, length, batch_size):
for start in range(0, len(dataframe), batch_size):
# create a list of tuples for insert
to_insert = []
if isinstance(dataframe, pd.DataFrame):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = [
{ name="Faisal Dosani", email="[email protected]" },
]
license = {text = "Apache Software License"}
dependencies = ["boto3<=1.35.9,>=1.9.92", "PyYAML<=6.0.1,>=5.1", "pandas<=2.2.2,>=0.25.2", "numpy<=2.0.2,>=1.22.0", "polars>=1.0.0"]
dependencies = ["boto3<=1.35.9,>=1.9.92", "PyYAML<=6.0.1,>=5.1", "pandas<=2.2.2,>=0.25.2", "numpy<=2.0.2,>=1.22.0", "polars>=0.20.0"]

requires-python = ">=3.9.0"
classifiers = [
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.9
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile --output-file=requirements.txt pyproject.toml
Expand Down

0 comments on commit 42a95ce

Please sign in to comment.