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 @@ -205,9 +205,7 @@ def compile_st_regionstats(
205205 this = "_" ,
206206 expressions = [
207207 sge .Identifier (this = "OPTIONS" ),
208- sge .Anonymous (
209- this = "JSON" , expressions = [sge .convert (op .options )]
210- ),
208+ sge .Anonymous (this = "JSON" , expressions = [sge .convert (op .options )]),
211209 ],
212210 )
213211 )
Original file line number Diff line number Diff line change @@ -68,9 +68,13 @@ def test_wildfire_risk(session):
6868
6969 # Step 4: Compute a simple composite index of relative wildfire risk.
7070 relative_risk = (
71- wildfire_risk ["wildfire_likelihood" ].rank (pct = True )
72- + wildfire_risk ["wildfire_consequence" ].rank (pct = True )
73- + wildfire_risk ["average_wind_speed" ].rank (pct = True )
74- ) / 3 * 100
71+ (
72+ wildfire_risk ["wildfire_likelihood" ].rank (pct = True )
73+ + wildfire_risk ["wildfire_consequence" ].rank (pct = True )
74+ + wildfire_risk ["average_wind_speed" ].rank (pct = True )
75+ )
76+ / 3
77+ * 100
78+ )
7579 wildfire_risk = wildfire_risk .assign (relative_risk = relative_risk )
7680 assert wildfire_risk is not None
You can’t perform that action at this time.
0 commit comments