From 1042ac942dd5c5d6ed30480c26d1fdabef61297a Mon Sep 17 00:00:00 2001 From: Paul Schreiber Date: Thu, 7 Nov 2024 11:08:11 -0500 Subject: [PATCH] style: format code with linter --- soil_id/us_soil.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/soil_id/us_soil.py b/soil_id/us_soil.py index 6ddb8d2..bfceca3 100644 --- a/soil_id/us_soil.py +++ b/soil_id/us_soil.py @@ -1341,13 +1341,11 @@ def list_soils(lon, lat): soilIDRank_output_pd = pd.concat(soilIDRank_output).reset_index(drop=True) # Create a new column that maps each 'cokey' value to its corresponding index value - mucompdata_pd['cokey_order'] = mucompdata_pd['cokey'].map(cokey_Index) + mucompdata_pd["cokey_order"] = mucompdata_pd["cokey"].map(cokey_Index) # Sort the DataFrame by the 'cokey_order' column - mucompdata_cond_prob = mucompdata_pd.sort_values(by='cokey_order').reset_index( - drop=True - ) - mucompdata_cond_prob = mucompdata_cond_prob.drop(columns=['cokey_order']) + mucompdata_cond_prob = mucompdata_pd.sort_values(by="cokey_order").reset_index(drop=True) + mucompdata_cond_prob = mucompdata_cond_prob.drop(columns=["cokey_order"]) # Generate the Rank_Loc column values rank_id = 1