Skip to content

Commit c9fa83d

Browse files
NikhilRaverkarNikhil Raverkar
andauthored
Reverting numpy 1.21.2 to 1.19.2 and adding regression (#300)
reverting numpy to 1.19.2 and adding regression Co-authored-by: Nikhil Raverkar <[email protected]>
1 parent 9556801 commit c9fa83d

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ gunicorn==19.10.0
88
itsdangerous==2.0.1
99
matplotlib==3.4.1
1010
multi-model-server==1.1.2
11-
numpy==1.21.6
11+
numpy==1.19.2
1212
pandas==1.2.4
1313
protobuf==3.20.1
1414
psutil==5.6.7 # sagemaker-containers requires psutil 5.6.7

test/resources/versions/train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
gunicorn==19.10.0
1616
matplotlib==3.4.1
1717
multi-model-server==1.1.2
18-
numpy==1.21.6
18+
numpy==1.19.2
1919
pandas==1.2.4
2020
psutil==5.6.7
2121
pyarrow==1.0.1

test/unit/test_data_utils.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import unittest
1515
import os
1616
from pathlib import Path
17+
import pandas as pd
1718
import shutil
1819
import signal
1920
import subprocess
@@ -252,3 +253,7 @@ def test_check_data_redundancy_throws_exception_pipe(self):
252253
pb_file_paths = ['pb_files']
253254
with self.assertRaises(Exception):
254255
data_utils.check_data_redundancy(pb_file_paths[0], pb_file_paths[1])
256+
257+
def test_pyarrow_to_parquet_conversion_does_not_throw_exception(self):
258+
df = pd.DataFrame({'x': [1, 2]})
259+
df.to_parquet('test.parquet', engine='pyarrow')

0 commit comments

Comments
 (0)