Skip to content

Commit

Permalink
.ix[] -> .loc[]
Browse files Browse the repository at this point in the history
  • Loading branch information
smmaurer committed Mar 18, 2020
1 parent 61b1d50 commit 2954eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion urbansim/utils/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def series64bitto32bit(s):


def _pandassummarytojson(v, ndigits=3):
return {i: round(float(v.ix[i]), ndigits) for i in v.index}
return {i: round(float(v.loc[i]), ndigits) for i in v.index}


def pandasdfsummarytojson(df, ndigits=3):
Expand Down

0 comments on commit 2954eb2

Please sign in to comment.