BLACK FRIDAY EXTRA SAVINGS EVENT - EXTENDED
START FREE

Mission: Learn and Install Jupyter Notebook 349-7 : fail to markdown a table

Screen Link: https://app.dataquest.io/m/349/project%3A-learn-and-install-jupyter-notebook/7/text-and-markdown-cells

Your Code: ```This is a table explaining what each column in the data set describes:

Column Descritpion
“id” App ID
“track_name” App Name
“size_bytes” Size (in Bytes)
“currency” Currency Type
“price” Price Ammount
“rating_count_tot” User Rating Counts (for all versions)
“rating_count_ver” User Rating Count (for current version)
“user_rating” Average User Rating value (for all versions)
“user_rating_ver” Average User Rating value (for current version)
“ver” Latest version code
“cont_rating” Content rating
“prime_genre” Primary Genre
“sup_device.num” Number of supporting devices
“ipadSc_urls.num” Number of screenshots showed for display
“lang.num” Number of supported languages
“vpp_lic” Vpp Device Based Licensing Enabled

What I expected to happen: I try to create a table, using the guidance provided here: https://www.markdownguide.org/extended-syntax/#tables, run the code, but no table is created after running the code.

Attach a screenshot

2 Likes

Hi @ksenia.kustanovich,

Let’s say, we want to create a table of {'Fruits': ['Apple', 'Orange', 'Banana'], 'Vegetables': ['Spinach', 'Broccoli', 'Beetroot']}.

Step 1
Select Markdown as the cell type
Screenshot 2020-03-24 at 12.20.43 PM

Step 2
In a fresh new line, type:

|Fruits|Vegetables|
|---|---|
  • | is used to represent column border
  • The newline is used to represent a new row
  • --- represents that the row above is a header row.

Step 3
Type the column values in the same format as the first row:

|Apple|Spinach|

That’s it, in the above case the complete markdown code will look like this:

|Fruits|Vegetables|
|---|---|
|Apple|Spinach|
|Orange|Broccoli|
|Banana|Beetroot|

And the table will look like this:

Fruits Vegetables
Apple Spinach
Orange Broccoli
Banana Beetroot

Hope this helps :slightly_smiling_face:.

Best,
Sahil

2 Likes

Thank you!
Basically, my mistake was that I had some text before the table itslef in the same markdown cell. Whe I eliminatend the narative text the table appeared :slight_smile:

1 Like

Do we need to customize the table ourselves? or is there code that just makes the table automatically?

where did you get the table documentation you have in your jupyter notebook? I can’t seem to find it anywhere

I had to manually write:

Column name Description
“id” App ID
“track_name” App Name
“size_bytes” Size (in Bytes)
“currency” Currency Type
“price” Price amount
“ratingcounttot” User Rating counts (for all version)
“ratingcountver” User Rating counts (for current version)
“user_rating” Average User Rating value (for all version)
“userratingver” Average User Rating value (for current version)
“ver” Latest version code
“cont_rating” Content Rating
“prime_genre” Primary Genre
“sup_devices.num” Number of supporting devices
“ipadSc_urls.num” Number of screenshots showed for display
“lang.num” Number of supported languages
“vpp_lic” Vpp Device Based Licensing Enabled

Any idea why this table goes from right to left rather than the other way?