Skip to content

Commit

Permalink
bd
Browse files Browse the repository at this point in the history
  • Loading branch information
briandalessandro committed Sep 10, 2018
1 parent a88263e commit 0ee5809
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ipython/python35/churn_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def makeBar(df, h, lab, width):
'''
Contains
'''
df_s = df.sort(columns = [h], ascending = False)
df_s = df.sort_values(by = [h], ascending = False)

#Get a barplot
ind = np.arange(df_s.shape[0])
Expand All @@ -87,7 +87,7 @@ def makeBar(df, h, lab, width):
ax = plt.subplot(111)
plt.subplots_adjust(bottom = 0.25)

rec = ax.bar(ind + width, df_s[[h]].values, width, color='r')
rec = ax.bar(ind + width, df_s[h].values, width, color='r')

ax.set_xticks(ind + getTickAdj(labs, width))
ax.set_xticklabels(labs, rotation = 45, size = 14)
Expand Down Expand Up @@ -130,7 +130,7 @@ def makeBarSigned(df, h, lab, width):
'''
Contains
'''
df_s = df.sort(columns = [h], ascending = False)
df_s = df.sort_values(by = [h], ascending = False)

#Get a barplot
ind = np.arange(df_s.shape[0])
Expand Down

0 comments on commit 0ee5809

Please sign in to comment.