Skip to content

Commit

Permalink
replacing deprecated .ix with .loc
Browse files Browse the repository at this point in the history
  • Loading branch information
RJWorth committed Sep 11, 2019
1 parent c336de4 commit 36235a5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
else:
raise Exception('BAD ARGUMENTS')

crime_df = df.ix[df.loc[:, 'OEMC':'TASR'].any(1), :]
crime_df = df.loc[df.loc[:, 'OEMC':'TASR'].any(1), :]
crime_df = crime_df.append(
df.ix[~df['relevant'], :].sample(n=min(3000, (~df['relevant']).sum()),
df.loc[~df['relevant'], :].sample(n=min(3000, (~df['relevant']).sum()),
axis=0)
)

Expand Down

0 comments on commit 36235a5

Please sign in to comment.