Skip to content

Commit 47124f3

Browse files
Backport PR pandas-dev#50280 on branch 1.5.x (CI fix githubusercontent in links) (pandas-dev#50284)
Backport PR pandas-dev#50280: CI fix githubusercontent in links Co-authored-by: Marco Edward Gorelli <[email protected]>
1 parent ccce437 commit 47124f3

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

doc/source/getting_started/comparison/comparison_with_sas.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ The pandas method is :func:`read_csv`, which works similarly.
112112
.. ipython:: python
113113
114114
url = (
115-
"https://raw.github.com/pandas-dev/"
115+
"https://raw.githubusercontent.com/pandas-dev/"
116116
"pandas/main/pandas/tests/io/data/csv/tips.csv"
117117
)
118118
tips = pd.read_csv(url)

doc/source/getting_started/comparison/comparison_with_spreadsheets.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ In pandas, you pass the URL or local path of the CSV file to :func:`~pandas.read
100100
.. ipython:: python
101101
102102
url = (
103-
"https://raw.github.com/pandas-dev"
103+
"https://raw.githubusercontent.com/pandas-dev"
104104
"/pandas/main/pandas/tests/io/data/csv/tips.csv"
105105
)
106106
tips = pd.read_csv(url)

doc/source/getting_started/comparison/comparison_with_sql.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ structure.
1717
.. ipython:: python
1818
1919
url = (
20-
"https://raw.github.com/pandas-dev"
20+
"https://raw.githubusercontent.com/pandas-dev"
2121
"/pandas/main/pandas/tests/io/data/csv/tips.csv"
2222
)
2323
tips = pd.read_csv(url)

doc/source/getting_started/comparison/comparison_with_stata.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ the data set if presented with a url.
108108
.. ipython:: python
109109
110110
url = (
111-
"https://raw.github.com/pandas-dev"
111+
"https://raw.githubusercontent.com/pandas-dev"
112112
"/pandas/main/pandas/tests/io/data/csv/tips.csv"
113113
)
114114
tips = pd.read_csv(url)

pandas/plotting/_misc.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ def andrews_curves(
307307
:context: close-figs
308308
309309
>>> df = pd.read_csv(
310-
... 'https://raw.github.com/pandas-dev/'
310+
... 'https://raw.githubusercontent.com/pandas-dev/'
311311
... 'pandas/main/pandas/tests/io/data/csv/iris.csv'
312312
... )
313313
>>> pd.plotting.andrews_curves(df, 'Name')
@@ -439,7 +439,7 @@ def parallel_coordinates(
439439
:context: close-figs
440440
441441
>>> df = pd.read_csv(
442-
... 'https://raw.github.com/pandas-dev/'
442+
... 'https://raw.githubusercontent.com/pandas-dev/'
443443
... 'pandas/main/pandas/tests/io/data/csv/iris.csv'
444444
... )
445445
>>> pd.plotting.parallel_coordinates(

pandas/tests/io/parser/common/test_file_buffer_url.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
@pytest.mark.network
3131
@tm.network(
3232
url=(
33-
"https://raw.github.com/pandas-dev/pandas/main/"
33+
"https://raw.githubusercontent.com/pandas-dev/pandas/main/"
3434
"pandas/tests/io/parser/data/salaries.csv"
3535
),
3636
check_before_test=True,
@@ -40,7 +40,7 @@ def test_url(all_parsers, csv_dir_path):
4040
kwargs = {"sep": "\t"}
4141

4242
url = (
43-
"https://raw.github.com/pandas-dev/pandas/main/"
43+
"https://raw.githubusercontent.com/pandas-dev/pandas/main/"
4444
"pandas/tests/io/parser/data/salaries.csv"
4545
)
4646
url_result = parser.read_csv(url, **kwargs)

0 commit comments

Comments
 (0)