Skip to content

Commit ca4ccb9

Browse files
committed
Merge pull request joelgrus#15 from pandeesh/patch-1
Update introduction.py
2 parents 1f46a2b + fdac5a6 commit ca4ccb9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎code/introduction.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ def most_common_interests_with(user_id):
130130
(69000, 6.5), (76000, 7.5),
131131
(60000, 2.5), (83000, 10),
132132
(48000, 1.9), (63000, 4.2)]
133+
134+
from matplotlib import pyplot as plt # not loaded by default
133135

134136
def make_chart_salaries_by_tenure(plt):
135137
tenures = [tenure for salary, tenure in salaries_and_tenures]
@@ -248,4 +250,4 @@ def predict_paid_or_unpaid(years_experience):
248250

249251
for word, count in words_and_counts.most_common():
250252
if count > 1:
251-
print word, count
253+
print word, count

0 commit comments

Comments
 (0)