Skip to content

Commit 48e1d6f

Browse files
authored
Language edit
1 parent 2e6b895 commit 48e1d6f

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

scipy-linalg/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ See the tutorials for details.
99

1010
## Installation
1111

12-
Use [Conda](https://docs.conda.io/en/latest/miniconda.html) to create and activate a virtual environment:
12+
Use [`conda`](https://docs.conda.io/en/latest/miniconda.html) to create and activate a virtual environment:
1313

1414
```console
1515
$ conda create --name linalg

scipy-linalg/vehicles-data-preparation.ipynb

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@
88
]
99
},
1010
{
11+
"attachments": {},
1112
"cell_type": "markdown",
1213
"metadata": {},
1314
"source": [
14-
"Before running this code, make sure you have downloaded the data CSV file from https://www.kaggle.com/austinreese/craigslist-carstrucks-data.\n",
15+
"Before running this code, make sure you've downloaded the data CSV file from https://www.kaggle.com/austinreese/craigslist-carstrucks-data.\n",
1516
"\n",
1617
"You may have to create a Kaggle account to download the data.\n",
1718
"\n",
18-
"After downloading it, extract the zip file and make sure you have a file named `vehicles.csv` in the current directory"
19+
"After downloading it, extract the ZIP file and make sure you have a file named `vehicles.csv` in the current directory."
1920
]
2021
},
2122
{
@@ -271,10 +272,11 @@
271272
]
272273
},
273274
{
275+
"attachments": {},
274276
"cell_type": "markdown",
275277
"metadata": {},
276278
"source": [
277-
"It's difficult to build a model that generalizes to a wide range of types of car. So, you'll consider the only the samples with more usual features:"
279+
"It's difficult to build a model that generalizes to a wide range of types of car. So, you'll consider only the samples with more usual features:"
278280
]
279281
},
280282
{
@@ -310,10 +312,11 @@
310312
]
311313
},
312314
{
315+
"attachments": {},
313316
"cell_type": "markdown",
314317
"metadata": {},
315318
"source": [
316-
"Another problem is that the price is set to zero for some rows. Also, there are rows with very high prices, some of these due to input errors. Here, you'll just filter out these rows, considering just the ones in which 0<price<40000:"
319+
"Another problem is that the price is set to zero for some rows. Also, there are rows with very high prices, some of these due to input errors. Here, you'll just filter out these rows, considering just the ones in which 0 < price < 40000:"
317320
]
318321
},
319322
{
@@ -347,10 +350,11 @@
347350
]
348351
},
349352
{
353+
"attachments": {},
350354
"cell_type": "markdown",
351355
"metadata": {},
352356
"source": [
353-
"The `odometer` columns also includes several rows with very high values. For this model, you'll consider only rows with `odometer`<100000"
357+
"The `odometer` column also includes several rows with very high values. For this model, you'll consider only rows with `odometer` < 100000"
354358
]
355359
},
356360
{
@@ -462,10 +466,11 @@
462466
]
463467
},
464468
{
469+
"attachments": {},
465470
"cell_type": "markdown",
466471
"metadata": {},
467472
"source": [
468-
"As you can notice, `year` and `odometer` are set as `float64` columns, which is not ideal. The data type of these columns can be converted to `int` with the following:"
473+
"As you can notice, `year` and `odometer` are set as `float64` columns, which isn't ideal. The data type of these columns can be converted to `int` with the following:"
469474
]
470475
},
471476
{
@@ -479,10 +484,11 @@
479484
]
480485
},
481486
{
487+
"attachments": {},
482488
"cell_type": "markdown",
483489
"metadata": {},
484490
"source": [
485-
"Finally, save the filtered dataset to a csv:"
491+
"Finally, save the filtered dataset to a CSV file:"
486492
]
487493
},
488494
{

0 commit comments

Comments
 (0)