Skip to content

Commit

Permalink
style: format code with linter
Browse files Browse the repository at this point in the history
  • Loading branch information
paulschreiber committed Nov 7, 2024
1 parent 9ed11b6 commit 1042ac9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions soil_id/us_soil.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1042ac9

Please sign in to comment.