Skip to content

Commit afcf180

Browse files
authored
Revert "Pin fastparquet to leq 0.5.0" (pandas-dev#41443)
1 parent ef747da commit afcf180

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

ci/deps/actions-37-db.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies:
1515
- beautifulsoup4
1616
- botocore>=1.11
1717
- dask
18-
- fastparquet>=0.4.0, <=0.5.0
18+
- fastparquet>=0.4.0
1919
- fsspec>=0.7.4
2020
- gcsfs>=0.6.0
2121
- geopandas

ci/deps/azure-windows-38.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies:
1515
# pandas dependencies
1616
- blosc
1717
- bottleneck
18-
- fastparquet>=0.4.0, <=0.5.0
18+
- fastparquet>=0.4.0
1919
- flask
2020
- fsspec>=0.8.0
2121
- matplotlib=3.1.3

environment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ dependencies:
9999
- xlwt
100100
- odfpy
101101

102-
- fastparquet>=0.3.2, <=0.5.0 # pandas.read_parquet, DataFrame.to_parquet
102+
- fastparquet>=0.3.2 # pandas.read_parquet, DataFrame.to_parquet
103103
- pyarrow>=0.15.0 # pandas.read_parquet, DataFrame.to_parquet, pandas.read_feather, DataFrame.to_feather
104104
- python-snappy # required by pyarrow
105105

pandas/io/parquet.py

+8-3
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,14 @@ def read(
327327
if is_fsspec_url(path):
328328
fsspec = import_optional_dependency("fsspec")
329329

330-
parquet_kwargs["open_with"] = lambda path, _: fsspec.open(
331-
path, "rb", **(storage_options or {})
332-
).open()
330+
if Version(self.api.__version__) > Version("0.6.1"):
331+
parquet_kwargs["fs"] = fsspec.open(
332+
path, "rb", **(storage_options or {})
333+
).fs
334+
else:
335+
parquet_kwargs["open_with"] = lambda path, _: fsspec.open(
336+
path, "rb", **(storage_options or {})
337+
).open()
333338
elif isinstance(path, str) and not os.path.isdir(path):
334339
# use get_handle only when we are very certain that it is not a directory
335340
# fsspec resources can also point to directories

requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ xlrd
6464
xlsxwriter
6565
xlwt
6666
odfpy
67-
fastparquet>=0.3.2, <=0.5.0
67+
fastparquet>=0.3.2
6868
pyarrow>=0.15.0
6969
python-snappy
7070
pyqt5>=5.9.2

0 commit comments

Comments
 (0)