Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Sep 16, 2022
1 parent 5a13d52 commit 63a45e1
Showing 1 changed file with 9 additions and 21 deletions.
30 changes: 9 additions & 21 deletions jupyterlite/fast-python-notebook/notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -296,23 +296,15 @@
"Once you’ve got the hang of making the notebook run, you’re ready to introduce pandas, a powerful Python analysis library that can do a whole lot more than add a few numbers together."
]
},
{
"cell_type": "markdown",
"id": "16b19ddf-3cd0-4b48-a635-4bdf44546d64",
"metadata": {
"tags": []
},
"source": [
"## What is Pandas?"
]
},
{
"cell_type": "markdown",
"id": "6a769ba4-a9a9-4c26-bbfd-a14ea202b81a",
"metadata": {},
"source": [
"<div style=\"max-width: 640px\">\n",
"\n",
"## What is pandas? \n",
" \n",
"![pandas on the Python Package Index](https://palewi.re/docs/first-python-notebook/_static/img/pandas-pypi.png)\n",
"\n",
"Lucky for us, Python is filled with functions to do almost anything you’d want to do with a programming language: [navigate the web](http://docs.python-requests.org/), [parse data](https://docs.python.org/2/library/csv.html), [interact with a database](http://www.sqlalchemy.org/), [run fancy statistics](https://www.scipy.org/), [build a pretty website](https://www.djangoproject.com/) and [so](https://www.crummy.com/software/BeautifulSoup/) [much](http://www.nltk.org/) [more](https://pillow.readthedocs.io/en/stable/).\n",
Expand Down Expand Up @@ -650,26 +642,22 @@
"</div>"
]
},
{
"cell_type": "markdown",
"id": "d6bcc0a9-7d4e-4ebc-b555-e262d28ed8c6",
"metadata": {
"tags": []
},
"source": [
"## DataFrames"
]
},
{
"cell_type": "markdown",
"id": "2f2d5836-d7da-482d-a5f0-b1d96c845269",
"metadata": {},
"source": [
"<div style=\"max-width:640px\">\n",
"\n",
"## Introducing dataframes\n",
" \n",
"Now it’s time to get our hands on some real data. The [News Homepages project](https://homepages.news/) is an open-source archive that gathers, saves and shares front pages from sites around the world. It [publishes daily exports of data](https://palewi.re/docs/news-homepages/extracts.html) gathered by the system, which can be used to analyze news coverage. We'll use its roster of sites to demonstrate the power of pandas.\n",
"\n",
"The data are structured in rows of comma-separated values. This is known as a [CSV file](https://en.wikipedia.org/wiki/Comma-separated_values). It is the most common way you will find data published online.\n",
"\n",
"The pandas library is able to read in files from a variety formats, including CSV. In our next cell, we'll use pandas' `read_csv` method to read in `sites.csv` from the archive."
"The pandas library is able to read in files from a variety formats, including CSV. In our next cell, we'll use pandas' `read_csv` method to read in `sites.csv` from the archive.\n",
" \n",
"</div>"
]
},
{
Expand Down

0 comments on commit 63a45e1

Please sign in to comment.