Fix 5_1 and 5_3
This commit is contained in:
@@ -115,7 +115,7 @@ kinds of input sources. For example:
|
||||
```python
|
||||
>>> import gzip
|
||||
>>> import stock
|
||||
>>> file = gzip.open('Data/portfolio.csv.gz')
|
||||
>>> file = gzip.open('Data/portfolio.csv.gz', 'rt')
|
||||
>>> port = reader.csv_as_instances(file, stock.Stock)
|
||||
>>> port
|
||||
[Stock('AA', 100, 32.2), Stock('IBM', 50, 91.1), Stock('CAT', 150, 83.44),
|
||||
|
||||
Reference in New Issue
Block a user