mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 09:05:47 +08:00
Do not use binary read mode
Change-Id: I40f8923d0790c00e842e5d7d749b86bf1a7f8102
This commit is contained in:
1 parent
dd45620473
commit
c51a77f117
1 file changed
+2
-2
@@ -128,9 +128,9 @@ def check_example_using_json(example_name):
|
||||
# Read JSON file
|
||||
json_path = path_for_json_example(example_name)
|
||||
if json_path.endswith('.gz'):
|
||||
f = gzip.open(json_path, 'rb')
|
||||
f = gzip.open(json_path, 'r')
|
||||
else:
|
||||
f = open(json_path, 'rb')
|
||||
f = open(json_path, 'r')
|
||||
|
||||
table = pd.read_json(f, lines=True)
|
||||
|
||||
|
||||
Reference in new issue
Block a user