Skip to content

Commit

Permalink
Merge pull request #1785 from alphagov/update-index-col-locator
Browse files Browse the repository at this point in the history
Use df.loc[index, col] as df[col, index] is being deprecated
  • Loading branch information
kentsanggds committed Jul 25, 2024
2 parents 6c04bf3 + 22d94e8 commit 2a0a7fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/datagovuk/lib/organogram_xls_splitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def _inner(x):
if df[column_name].dtype == 'O':
df[column_name] = df[column_name].astype(str)
for i, row in enumerate(df[column_name]):
df[column_name][i] = row.strip()
df.loc[i, column_name] = row.strip()
return df

def blank_out_columns(df, blank_columns):
Expand Down

0 comments on commit 2a0a7fe

Please sign in to comment.