File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
bigframes/core/compile/sqlglot Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -244,9 +244,7 @@ def compile_st_regionstats(
244244 this = "_" ,
245245 expressions = [
246246 sge .Identifier (this = "OPTIONS" ),
247- sge .Anonymous (
248- this = "JSON" , expressions = [sge .convert (op .options )]
249- ),
247+ sge .Anonymous (this = "JSON" , expressions = [sge .convert (op .options )]),
250248 ],
251249 )
252250 )
Original file line number Diff line number Diff line change @@ -73,9 +73,13 @@ def test_wildfire_risk(session):
7373
7474 # Step 4: Compute a simple composite index of relative wildfire risk.
7575 relative_risk = (
76- wildfire_risk ["wildfire_likelihood" ].rank (pct = True )
77- + wildfire_risk ["wildfire_consequence" ].rank (pct = True )
78- + wildfire_risk ["average_wind_speed" ].rank (pct = True )
79- ) / 3 * 100
76+ (
77+ wildfire_risk ["wildfire_likelihood" ].rank (pct = True )
78+ + wildfire_risk ["wildfire_consequence" ].rank (pct = True )
79+ + wildfire_risk ["average_wind_speed" ].rank (pct = True )
80+ )
81+ / 3
82+ * 100
83+ )
8084 wildfire_risk = wildfire_risk .assign (relative_risk = relative_risk )
8185 assert wildfire_risk is not None
You can’t perform that action at this time.
0 commit comments