New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MRG+1] Take over PR #7647 - Add a "filename" attribute to datasets that have a CSV file #9101

Merged
merged 23 commits into from Dec 4, 2017
Commits
Jump to file or symbol
Failed to load files and symbols.
+2 −2
Diff settings

Always

Just for now

Viewing a subset of changes. View all

adress Andreas comments. fix English sentence structure

  • Loading branch information...
alex-33 authored and maskani-moh committed Oct 25, 2016
commit 740289963a6fd542d59dc514549c7587f6a97198
@@ -160,8 +160,8 @@ learn::
>>> print(diabetes.target_filename) # doctest: +SKIP
(some-path)/sklearn/datasets/data/diabetes_target.csv.gz
Example of reading data file with numpy. Boston dataset contains
2 header lines, that is why we are going to skip them:
You can also read the data file directly with numpy. Consider the following example.
Boston dataset contains 2 header lines, that is why we are going to skip them:
>>> import numpy as np
>>> boston_data = np.loadtxt(boston.filename, delimiter=",", skiprows=2)
ProTip! Use n and p to navigate between commits in a pull request.