|
214 | 214 | "cell_type": "markdown",
|
215 | 215 | "metadata": {},
|
216 | 216 | "source": [
|
217 |
| - "### Step 5. Create a histogram of the top 5 itens bought" |
| 217 | + "### Step 5. Create a histogram of the top 5 items bought" |
218 | 218 | ]
|
219 | 219 | },
|
220 | 220 | {
|
|
245 | 245 | "# convert the dictionary to a DataFrame\n",
|
246 | 246 | "df = pd.DataFrame.from_dict(letter_counts, orient='index')\n",
|
247 | 247 | "\n",
|
248 |
| - "# sort the values from the top to the least value and slice the first 5 itens\n", |
| 248 | + "# sort the values from the top to the least value and slice the first 5 items\n", |
249 | 249 | "df = df[0].sort_values(ascending = True)[45:50]\n",
|
250 | 250 | "\n",
|
251 | 251 | "# create the plot\n",
|
252 | 252 | "df.plot(kind='bar')\n",
|
253 | 253 | "\n",
|
254 | 254 | "# Set the title and labels\n",
|
255 |
| - "plt.xlabel('Itens')\n", |
| 255 | + "plt.xlabel('Items')\n", |
256 | 256 | "plt.ylabel('Price')\n",
|
257 |
| - "plt.title('Most ordered Chipotle\\'s Itens')\n", |
| 257 | + "plt.title('Most ordered Chipotle\\'s Items')\n", |
258 | 258 | "\n",
|
259 | 259 | "# show the plot\n",
|
260 | 260 | "plt.show()"
|
|
264 | 264 | "cell_type": "markdown",
|
265 | 265 | "metadata": {},
|
266 | 266 | "source": [
|
267 |
| - "### Step 6. Create a scatterplot with the number of itens orderered per order price\n", |
268 |
| - "#### Hint: Price should be in the X-axis and Itens ordered in the Y-axis" |
| 267 | + "### Step 6. Create a scatterplot with the number of items orderered per order price\n", |
| 268 | + "#### Hint: Price should be in the X-axis and Items ordered in the Y-axis" |
269 | 269 | ]
|
270 | 270 | },
|
271 | 271 | {
|
|
309 | 309 | "\n",
|
310 | 310 | "# Set the title and labels\n",
|
311 | 311 | "plt.xlabel('Order Price')\n",
|
312 |
| - "plt.ylabel('Itens ordered')\n", |
313 |
| - "plt.title('Number of itens ordered per order price')\n", |
| 312 | + "plt.ylabel('Items ordered')\n", |
| 313 | + "plt.title('Number of items ordered per order price')\n", |
314 | 314 | "plt.ylim(0)"
|
315 | 315 | ]
|
316 | 316 | },
|
|
0 commit comments