Skip to content

Commit 47a6bdc

Browse files
maneeshamaxim-belkin
authored andcommitted
04-data-types-and-format.md: fix typos (#428)
1 parent 4fc6eb0 commit 47a6bdc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

_episodes/04-data-types-and-format.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ keypoints:
2323
---
2424

2525
The format of individual columns and rows will impact analysis performed on a
26-
dataset read into python. For example, you can't perform mathematical
26+
dataset read into Python. For example, you can't perform mathematical
2727
calculations on a string (text formatted data). This might seem obvious,
2828
however sometimes numeric values are read into Python as strings. In this
2929
situation, when you then try to perform calculations on the string-formatted
@@ -36,7 +36,7 @@ structure and format of our data.
3636

3737
How information is stored in a
3838
DataFrame or a Python object affects what we can do with it and the outputs of
39-
calculations as well. There are two main types of data that we're explore in
39+
calculations as well. There are two main types of data that we will explore in
4040
this lesson: numeric and text data types.
4141

4242
## Numeric Data Types
@@ -60,7 +60,7 @@ Text data type is known as Strings in Python, or Objects in Pandas. Strings can
6060
contain numbers and / or characters. For example, a string might be a word, a
6161
sentence, or several sentences. A Pandas object might also be a plot name like
6262
'plot1'. A string can also contain or consist of numbers. For instance, '1234'
63-
could be stored as a string. As could '10.23'. However **strings that contain
63+
could be stored as a string, as could '10.23'. However **strings that contain
6464
numbers can not be used for mathematical operations**!
6565

6666
Pandas and base Python use slightly different names for data types. More on this
@@ -346,7 +346,7 @@ df_na = surveys_df.dropna()
346346
If you now type `df_na`, you should observe that the resulting DataFrame has 30676 rows
347347
and 9 columns, much smaller than the 35549 row original.
348348
349-
We can now use the `to_csv` command to do export a DataFrame in CSV format. Note that the code
349+
We can now use the `to_csv` command to export a DataFrame in CSV format. Note that the code
350350
below will by default save the data into the current working directory. We can
351351
save it to a different folder by adding the foldername and a slash before the filename:
352352
`df.to_csv('foldername/out.csv')`. We use 'index=False' so that

0 commit comments

Comments
 (0)