File tree 2 files changed +15
-9
lines changed
2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ dependencies:
30
30
- openpyxl
31
31
- pandas-gbq
32
32
- google-cloud-bigquery>=1.27.2 # GH 36436
33
- - pyarrow> =0.17
33
+ - pyarrow=0.17.0 # GH 38803
34
34
- pytables>=3.5.1
35
35
- scipy
36
36
- xarray=0.12.3
Original file line number Diff line number Diff line change 36
36
except ImportError :
37
37
pass
38
38
else :
39
- ARROW_CMP_FUNCS = {
40
- "eq" : pc .equal ,
41
- "ne" : pc .not_equal ,
42
- "lt" : pc .less ,
43
- "gt" : pc .greater ,
44
- "le" : pc .less_equal ,
45
- "ge" : pc .greater_equal ,
46
- }
39
+ # pyarrow 0.16.0 adds a compute module (thus the above compute import
40
+ # will work) but the attributes below are not available until pyarrow
41
+ # 1.0.0 resulting in an Attribute Error with pyarrow (0.16.0, 1.0.0].
42
+ try :
43
+ ARROW_CMP_FUNCS = {
44
+ "eq" : pc .equal ,
45
+ "ne" : pc .not_equal ,
46
+ "lt" : pc .less ,
47
+ "gt" : pc .greater ,
48
+ "le" : pc .less_equal ,
49
+ "ge" : pc .greater_equal ,
50
+ }
51
+ except AttributeError :
52
+ pass
47
53
48
54
49
55
if TYPE_CHECKING :
You can’t perform that action at this time.
0 commit comments