Skip to content

Commit ef8567d

Browse files
authored
CLN: Clean csv files in test data GH34427 (#34458)
1 parent c71bfc3 commit ef8567d

File tree

12 files changed

+14
-561
lines changed

12 files changed

+14
-561
lines changed

doc/source/getting_started/comparison/comparison_with_sas.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Reading external data
115115

116116
Like SAS, pandas provides utilities for reading in data from
117117
many formats. The ``tips`` dataset, found within the pandas
118-
tests (`csv <https://raw.github.com/pandas-dev/pandas/master/pandas/tests/data/tips.csv>`_)
118+
tests (`csv <https://raw.github.com/pandas-dev/pandas/master/pandas/tests/io/data/csv/tips.csv>`_)
119119
will be used in many of the following examples.
120120

121121
SAS provides ``PROC IMPORT`` to read csv data into a data set.
@@ -131,7 +131,7 @@ The pandas method is :func:`read_csv`, which works similarly.
131131
.. ipython:: python
132132
133133
url = ('https://raw.github.com/pandas-dev/'
134-
'pandas/master/pandas/tests/data/tips.csv')
134+
'pandas/master/pandas/tests/io/data/csv/tips.csv')
135135
tips = pd.read_csv(url)
136136
tips.head()
137137

doc/source/getting_started/comparison/comparison_with_sql.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ structure.
2525
.. ipython:: python
2626
2727
url = ('https://raw.github.com/pandas-dev'
28-
'/pandas/master/pandas/tests/data/tips.csv')
28+
'/pandas/master/pandas/tests/io/data/csv/tips.csv')
2929
tips = pd.read_csv(url)
3030
tips.head()
3131

doc/source/getting_started/comparison/comparison_with_stata.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Reading external data
112112

113113
Like Stata, pandas provides utilities for reading in data from
114114
many formats. The ``tips`` data set, found within the pandas
115-
tests (`csv <https://raw.github.com/pandas-dev/pandas/master/pandas/tests/data/tips.csv>`_)
115+
tests (`csv <https://raw.github.com/pandas-dev/pandas/master/pandas/tests/io/data/csv/tips.csv>`_)
116116
will be used in many of the following examples.
117117

118118
Stata provides ``import delimited`` to read csv data into a data set in memory.
@@ -128,7 +128,7 @@ the data set if presented with a url.
128128
.. ipython:: python
129129
130130
url = ('https://raw.github.com/pandas-dev'
131-
'/pandas/master/pandas/tests/data/tips.csv')
131+
'/pandas/master/pandas/tests/io/data/csv/tips.csv')
132132
tips = pd.read_csv(url)
133133
tips.head()
134134

doc/source/user_guide/visualization.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ for more information. By coloring these curves differently for each class
865865
it is possible to visualize data clustering. Curves belonging to samples
866866
of the same class will usually be closer together and form larger structures.
867867

868-
**Note**: The "Iris" dataset is available `here <https://raw.github.com/pandas-dev/pandas/master/pandas/tests/data/iris.csv>`__.
868+
**Note**: The "Iris" dataset is available `here <https://raw.github.com/pandas-dev/pandas/master/pandas/tests/io/data/csv/iris.csv>`__.
869869

870870
.. ipython:: python
871871
@@ -1025,7 +1025,7 @@ be colored differently.
10251025
See the R package `Radviz <https://cran.r-project.org/package=Radviz/>`__
10261026
for more information.
10271027

1028-
**Note**: The "Iris" dataset is available `here <https://raw.github.com/pandas-dev/pandas/master/pandas/tests/data/iris.csv>`__.
1028+
**Note**: The "Iris" dataset is available `here <https://raw.github.com/pandas-dev/pandas/master/pandas/tests/io/data/csv/iris.csv>`__.
10291029

10301030
.. ipython:: python
10311031

pandas/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ def iris(datapath):
813813
"""
814814
The iris dataset as a DataFrame.
815815
"""
816-
return pd.read_csv(datapath("data", "iris.csv"))
816+
return pd.read_csv(datapath("io", "data", "csv", "iris.csv"))
817817

818818

819819
# ----------------------------------------------------------------

pandas/plotting/_misc.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def andrews_curves(
263263
264264
>>> df = pd.read_csv(
265265
... 'https://raw.github.com/pandas-dev/'
266-
... 'pandas/master/pandas/tests/data/iris.csv'
266+
... 'pandas/master/pandas/tests/io/data/csv/iris.csv'
267267
... )
268268
>>> pd.plotting.andrews_curves(df, 'Name')
269269
"""
@@ -387,7 +387,7 @@ def parallel_coordinates(
387387
388388
>>> df = pd.read_csv(
389389
... 'https://raw.github.com/pandas-dev/'
390-
... 'pandas/master/pandas/tests/data/iris.csv'
390+
... 'pandas/master/pandas/tests/io/data/csv/iris.csv'
391391
... )
392392
>>> pd.plotting.parallel_coordinates(
393393
... df, 'Name', color=('#556270', '#4ECDC4', '#C7F464')

pandas/tests/data/iris.csv

-151
This file was deleted.

0 commit comments

Comments
 (0)