From 29d7e6531af44472c0fee69d0533ca18235d380a Mon Sep 17 00:00:00 2001 From: Marco Edward Gorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Thu, 15 Dec 2022 20:17:37 +0000 Subject: [PATCH] Backport PR #50280: CI fix githubusercontent in links --- doc/source/getting_started/comparison/comparison_with_sas.rst | 2 +- .../comparison/comparison_with_spreadsheets.rst | 2 +- doc/source/getting_started/comparison/comparison_with_sql.rst | 2 +- .../getting_started/comparison/comparison_with_stata.rst | 2 +- pandas/plotting/_misc.py | 4 ++-- pandas/tests/io/parser/common/test_file_buffer_url.py | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/source/getting_started/comparison/comparison_with_sas.rst b/doc/source/getting_started/comparison/comparison_with_sas.rst index 5a624c9c55782..595f3c85a9dc2 100644 --- a/doc/source/getting_started/comparison/comparison_with_sas.rst +++ b/doc/source/getting_started/comparison/comparison_with_sas.rst @@ -112,7 +112,7 @@ The pandas method is :func:`read_csv`, which works similarly. .. ipython:: python url = ( - "https://raw.github.com/pandas-dev/" + "https://raw.githubusercontent.com/pandas-dev/" "pandas/main/pandas/tests/io/data/csv/tips.csv" ) tips = pd.read_csv(url) diff --git a/doc/source/getting_started/comparison/comparison_with_spreadsheets.rst b/doc/source/getting_started/comparison/comparison_with_spreadsheets.rst index a7148405ba8a0..d55b669d94a87 100644 --- a/doc/source/getting_started/comparison/comparison_with_spreadsheets.rst +++ b/doc/source/getting_started/comparison/comparison_with_spreadsheets.rst @@ -100,7 +100,7 @@ In pandas, you pass the URL or local path of the CSV file to :func:`~pandas.read .. ipython:: python url = ( - "https://raw.github.com/pandas-dev" + "https://raw.githubusercontent.com/pandas-dev" "/pandas/main/pandas/tests/io/data/csv/tips.csv" ) tips = pd.read_csv(url) diff --git a/doc/source/getting_started/comparison/comparison_with_sql.rst b/doc/source/getting_started/comparison/comparison_with_sql.rst index 0a891a4c6d2d7..a6d9d65e85645 100644 --- a/doc/source/getting_started/comparison/comparison_with_sql.rst +++ b/doc/source/getting_started/comparison/comparison_with_sql.rst @@ -17,7 +17,7 @@ structure. .. ipython:: python url = ( - "https://raw.github.com/pandas-dev" + "https://raw.githubusercontent.com/pandas-dev" "/pandas/main/pandas/tests/io/data/csv/tips.csv" ) tips = pd.read_csv(url) diff --git a/doc/source/getting_started/comparison/comparison_with_stata.rst b/doc/source/getting_started/comparison/comparison_with_stata.rst index 636778a2ca32e..b4b0c42d1db1d 100644 --- a/doc/source/getting_started/comparison/comparison_with_stata.rst +++ b/doc/source/getting_started/comparison/comparison_with_stata.rst @@ -108,7 +108,7 @@ the data set if presented with a url. .. ipython:: python url = ( - "https://raw.github.com/pandas-dev" + "https://raw.githubusercontent.com/pandas-dev" "/pandas/main/pandas/tests/io/data/csv/tips.csv" ) tips = pd.read_csv(url) diff --git a/pandas/plotting/_misc.py b/pandas/plotting/_misc.py index 71209e1598d9a..b7e6fca88b637 100644 --- a/pandas/plotting/_misc.py +++ b/pandas/plotting/_misc.py @@ -307,7 +307,7 @@ def andrews_curves( :context: close-figs >>> df = pd.read_csv( - ... 'https://raw.github.com/pandas-dev/' + ... 'https://raw.githubusercontent.com/pandas-dev/' ... 'pandas/main/pandas/tests/io/data/csv/iris.csv' ... ) >>> pd.plotting.andrews_curves(df, 'Name') @@ -439,7 +439,7 @@ def parallel_coordinates( :context: close-figs >>> df = pd.read_csv( - ... 'https://raw.github.com/pandas-dev/' + ... 'https://raw.githubusercontent.com/pandas-dev/' ... 'pandas/main/pandas/tests/io/data/csv/iris.csv' ... ) >>> pd.plotting.parallel_coordinates( diff --git a/pandas/tests/io/parser/common/test_file_buffer_url.py b/pandas/tests/io/parser/common/test_file_buffer_url.py index fce1d1260b3fe..e4cd0f1d19a79 100644 --- a/pandas/tests/io/parser/common/test_file_buffer_url.py +++ b/pandas/tests/io/parser/common/test_file_buffer_url.py @@ -30,7 +30,7 @@ @pytest.mark.network @tm.network( url=( - "https://raw.github.com/pandas-dev/pandas/main/" + "https://raw.githubusercontent.com/pandas-dev/pandas/main/" "pandas/tests/io/parser/data/salaries.csv" ), check_before_test=True, @@ -40,7 +40,7 @@ def test_url(all_parsers, csv_dir_path): kwargs = {"sep": "\t"} url = ( - "https://raw.github.com/pandas-dev/pandas/main/" + "https://raw.githubusercontent.com/pandas-dev/pandas/main/" "pandas/tests/io/parser/data/salaries.csv" ) url_result = parser.read_csv(url, **kwargs)