Skip to content

Commit

Permalink
logx=False plots data as User_Score is <=10 (#1265)
Browse files Browse the repository at this point in the history
logx=True doesn't seem appropriate since User_Score is <=10 the plot shows nothing

Co-authored-by: Aaron Markham <[email protected]>
Co-authored-by: Ajay Karpur <[email protected]>
  • Loading branch information
3 people authored Nov 11, 2020
1 parent d483cac commit 10fe9c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
"viz['User_Score'] = pd.Series(viz['User_Score'].apply(pd.to_numeric, errors='coerce'))\n",
"viz['User_Score'] = viz['User_Score'].mask(np.isnan(viz[\"User_Score\"]), viz['Critic_Score'] / 10.0)\n",
"viz.plot(kind='scatter', logx=True, logy=True, x='Critic_Score', y='Global_Sales')\n",
"viz.plot(kind='scatter', logx=True, logy=True, x='User_Score', y='Global_Sales')\n",
"viz.plot(kind='scatter', logx=False, logy=True, x='User_Score', y='Global_Sales')\n",
"plt.show()"
]
},
Expand Down

0 comments on commit 10fe9c7

Please sign in to comment.