Skip to content

Commit 117fe02

Browse files
committed
Bumping version to 0.2.6
1 parent 192290d commit 117fe02

File tree

11 files changed

+20
-13
lines changed

11 files changed

+20
-13
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> DataFrames on AWS
44
5-
[![Release](https://img.shields.io/badge/release-0.2.5-brightgreen.svg)](https://pypi.org/project/awswrangler/)
5+
[![Release](https://img.shields.io/badge/release-0.2.6-brightgreen.svg)](https://pypi.org/project/awswrangler/)
66
[![Downloads](https://img.shields.io/pypi/dm/awswrangler.svg)](https://pypi.org/project/awswrangler/)
77
[![Python Version](https://img.shields.io/badge/python-3.6%20%7C%203.7-brightgreen.svg)](https://pypi.org/project/awswrangler/)
88
[![Documentation Status](https://readthedocs.org/projects/aws-data-wrangler/badge/?version=latest)](https://aws-data-wrangler.readthedocs.io/en/latest/?badge=latest)

awswrangler/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
__title__ = "awswrangler"
22
__description__ = "DataFrames on AWS."
3-
__version__ = "0.2.5"
3+
__version__ = "0.2.6"
44
__license__ = "Apache License 2.0"

awswrangler/data_types.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import List, Tuple, Dict, Callable, Optional
1+
from typing import List, Tuple, Dict, Callable, Optional, Any
22
from logging import getLogger, Logger
33
from datetime import datetime, date
44
from decimal import Decimal
@@ -361,7 +361,7 @@ def convert_schema(func: Callable, schema: List[Tuple[str, str]]) -> Dict[str, s
361361

362362
def extract_pyarrow_schema_from_pandas(dataframe: pd.DataFrame,
363363
preserve_index: bool,
364-
indexes_position: str = "right") -> List[Tuple[str, str]]:
364+
indexes_position: str = "right") -> List[Tuple[str, Any]]:
365365
"""
366366
Extract the related Pyarrow schema from any Pandas DataFrame
367367
@@ -387,8 +387,7 @@ def extract_pyarrow_schema_from_pandas(dataframe: pd.DataFrame,
387387
indexes: List[str] = []
388388
for field in pa.Schema.from_pandas(df=dataframe[cols], preserve_index=preserve_index):
389389
name = str(field.name)
390-
dtype = str(field.type)
391-
cols_dtypes[name] = dtype
390+
cols_dtypes[name] = field.type
392391
if name not in dataframe.columns:
393392
indexes.append(name)
394393

awswrangler/glue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def _build_schema(
241241
if partition_cols is None:
242242
partition_cols = []
243243

244-
pyarrow_schema: List[Tuple[str, str]] = data_types.extract_pyarrow_schema_from_pandas(
244+
pyarrow_schema: List[Tuple[str, Any]] = data_types.extract_pyarrow_schema_from_pandas(
245245
dataframe=dataframe, preserve_index=preserve_index, indexes_position=indexes_position)
246246

247247
schema_built: List[Tuple[str, str]] = []

awswrangler/pandas.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1950,6 +1950,7 @@ def read_csv_list(
19501950
receive_pipes[i].close()
19511951
logger.debug(f"Concatenating all {len(paths)} DataFrames...")
19521952
df = pd.concat(objs=dfs, ignore_index=True, sort=False)
1953+
logger.debug("Concatenation done!")
19531954
return df
19541955

19551956
def _read_csv_list_iterator(

building/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,7 @@ ADD requirements-dev.txt /root/
1919
RUN pip3 install --upgrade -r /root/requirements-dev.txt
2020
RUN rm -rf /root/requirements-dev.txt
2121

22+
RUN pip3 install boto3==1.10.34
23+
RUN pip3 install botocore==1.13.34
24+
2225
ENTRYPOINT ["/bin/sh"]

building/build-lambda-layer.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ rm -f "dist/awswrangler-layer.zip"
1818
# Building
1919
pip install . -t ./python
2020
rm -rf python/pyarrow*
21+
rm -rf python/boto*
2122
cp -r /aws-data-wrangler/dist/pyarrow_files/pyarrow* python/
2223
find python -wholename "*/tests/*" -type f -delete
2324
zip -r9 "awswrangler-layer.zip" ./python
@@ -26,4 +27,4 @@ mv "awswrangler-layer.zip" dist/
2627
# Cleaning up the directory again
2728
rm -rf python
2829

29-
cd building
30+
cd building

requirements-dev.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ mypy~=0.761
33
flake8~=3.7.9
44
pytest-cov~=2.8.1
55
scikit-learn~=0.22.1
6-
cfn-lint~=0.27.1
6+
cfn-lint~=0.27.2
77
twine~=3.1.1
88
wheel~=0.33.6
99
sphinx~=2.3.1
1010
pyspark~=2.4.4
1111
pyspark-stubs~=2.4.0.post7
1212
jupyter~=1.0.0
13-
jupyterlab~=1.2.5
13+
jupyterlab~=1.2.6

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
numpy~=1.18.1
22
pandas~=0.25.3
33
pyarrow~=0.15.1
4-
botocore~=1.14.7
5-
boto3~=1.11.7
4+
botocore>=1.13.34
5+
boto3>=1.10.34
66
s3fs~=0.4.0
77
tenacity~=6.0.0
88
pg8000~=1.13.2

testing/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,7 @@ ADD requirements-dev.txt /root/
2929
RUN $PIP install --upgrade -r /root/requirements-dev.txt
3030
RUN rm -rf /root/requirements-dev.txt
3131

32+
RUN $PIP install boto3==1.10.34
33+
RUN $PIP install botocore==1.13.34
34+
3235
ENTRYPOINT ["/bin/sh"]

0 commit comments

Comments
 (0)