Skip to content

Commit

Permalink
bd
Browse files Browse the repository at this point in the history
  • Loading branch information
briandalessandro committed Sep 19, 2018
1 parent 1bc4f1d commit f337d57
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions ipython/python27/CaseStudy_Churn_Analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -850,21 +850,21 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python [Root]",
"display_name": "Python 3",
"language": "python",
"name": "Python [Root]"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.12"
"pygments_lexer": "ipython3",
"version": "3.5.2"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions ipython/utils/churn_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,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 @@ -83,7 +83,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 @@ -124,7 +124,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 f337d57

Please sign in to comment.