From 92f85e596b50652e39206c5e085af269a7e389b5 Mon Sep 17 00:00:00 2001 From: SouravPal1995 Date: Thu, 21 Jan 2021 00:39:29 +0530 Subject: [PATCH 1/8] Redirected to docs/getting_started/index.html --- web/pandas/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/pandas/config.yml b/web/pandas/config.yml index 9a178d26659c3..90990c17ad7fe 100644 --- a/web/pandas/config.yml +++ b/web/pandas/config.yml @@ -34,7 +34,7 @@ navbar: - name: "Citing and logo" target: /about/citing.html - name: "Getting started" - target: /getting_started.html + target: doc/getting_started/index.html - name: "Documentation" target: /docs/ - name: "Community" From c624629bc37cd578722c9d814c9684fcfa5c6098 Mon Sep 17 00:00:00 2001 From: SouravPal1995 Date: Thu, 21 Jan 2021 00:42:40 +0530 Subject: [PATCH 2/8] Added proper encoding before file reading --- web/pandas_web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/pandas_web.py b/web/pandas_web.py index 7dd63175e69ac..eaf18ab9eb6c5 100755 --- a/web/pandas_web.py +++ b/web/pandas_web.py @@ -92,7 +92,7 @@ def blog_add_posts(context): md = markdown.Markdown( extensions=context["main"]["markdown_extensions"] ) - with open(os.path.join(posts_path, fname)) as f: + with open(os.path.join(posts_path, fname), encoding='utf8') as f: html = md.convert(f.read()) title = md.Meta["title"][0] summary = re.sub(tag_expr, "", html) From 42f5eb311b38a9276c3be6f2c3dc9ae539833e58 Mon Sep 17 00:00:00 2001 From: SouravPal1995 Date: Thu, 21 Jan 2021 00:46:22 +0530 Subject: [PATCH 3/8] Rectified URL --- web/pandas/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/pandas/config.yml b/web/pandas/config.yml index 90990c17ad7fe..f9a6886ff2b68 100644 --- a/web/pandas/config.yml +++ b/web/pandas/config.yml @@ -34,7 +34,7 @@ navbar: - name: "Citing and logo" target: /about/citing.html - name: "Getting started" - target: doc/getting_started/index.html + target: docs/getting_started/index.html - name: "Documentation" target: /docs/ - name: "Community" From 929d1065a7c3ec035f34e856e8254d493198748c Mon Sep 17 00:00:00 2001 From: SouravPal1995 Date: Thu, 21 Jan 2021 01:09:31 +0530 Subject: [PATCH 4/8] Removed utf8 encoding --- web/pandas_web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/pandas_web.py b/web/pandas_web.py index eaf18ab9eb6c5..7dd63175e69ac 100755 --- a/web/pandas_web.py +++ b/web/pandas_web.py @@ -92,7 +92,7 @@ def blog_add_posts(context): md = markdown.Markdown( extensions=context["main"]["markdown_extensions"] ) - with open(os.path.join(posts_path, fname), encoding='utf8') as f: + with open(os.path.join(posts_path, fname)) as f: html = md.convert(f.read()) title = md.Meta["title"][0] summary = re.sub(tag_expr, "", html) From ca00d1449b1bc3d535de8572feedaa6e262640ee Mon Sep 17 00:00:00 2001 From: SouravPal1995 Date: Thu, 21 Jan 2021 15:14:15 +0530 Subject: [PATCH 5/8] Added leading slash to 'Getting started' url --- web/pandas/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/pandas/config.yml b/web/pandas/config.yml index f9a6886ff2b68..bc0dea2a97486 100644 --- a/web/pandas/config.yml +++ b/web/pandas/config.yml @@ -34,7 +34,7 @@ navbar: - name: "Citing and logo" target: /about/citing.html - name: "Getting started" - target: docs/getting_started/index.html + target: /docs/getting_started/index.html - name: "Documentation" target: /docs/ - name: "Community" From f2542dcd072d293e9027a97d5adb678a200ba93d Mon Sep 17 00:00:00 2001 From: SouravPal1995 Date: Thu, 21 Jan 2021 15:16:34 +0530 Subject: [PATCH 6/8] Removed the static getting_started.md --- web/pandas/getting_started.md | 57 ----------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 web/pandas/getting_started.md diff --git a/web/pandas/getting_started.md b/web/pandas/getting_started.md deleted file mode 100644 index d4f40a1153fb4..0000000000000 --- a/web/pandas/getting_started.md +++ /dev/null @@ -1,57 +0,0 @@ -# Getting started - -## Installation instructions - -The next steps provides the easiest and recommended way to set up your -environment to use pandas. Other installation options can be found in -the [advanced installation page]({{ base_url}}/docs/getting_started/install.html). - -1. Download [Anaconda](https://www.anaconda.com/distribution/) for your operating system and - the latest Python version, run the installer, and follow the steps. Please note: - - - It is not needed (and discouraged) to install Anaconda as root or administrator. - - When asked if you wish to initialize Anaconda3, answer yes. - - Restart the terminal after completing the installation. - - Detailed instructions on how to install Anaconda can be found in the - [Anaconda documentation](https://docs.anaconda.com/anaconda/install/). - -2. In the Anaconda prompt (or terminal in Linux or MacOS), start JupyterLab: - - - -3. In JupyterLab, create a new (Python 3) notebook: - - - -4. In the first cell of the notebook, you can import pandas and check the version with: - - - -5. Now you are ready to use pandas, and you can write your code in the next cells. - -## Tutorials - -You can learn more about pandas in the [tutorials]({{ base_url }}/docs/getting_started/intro_tutorials/), -and more about JupyterLab in the -[JupyterLab documentation](https://jupyterlab.readthedocs.io/en/stable/user/interface.html). - -## Books - -The book we recommend to learn pandas is [Python for Data Analysis](https://amzn.to/2KI5JJw), -by [Wes McKinney](https://wesmckinney.com/), creator of pandas. - - - Python for Data Analysis - - -## Videos - - - -## Cheat sheet - -[pandas cheat sheet](https://pandas.pydata.org/Pandas_Cheat_Sheet.pdf) From ddf5e957c6d1149ae5df78e021f170296c13afa9 Mon Sep 17 00:00:00 2001 From: SouravPal1995 Date: Thu, 21 Jan 2021 15:28:22 +0530 Subject: [PATCH 7/8] Added a new entry to redirect --- doc/redirects.csv | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/redirects.csv b/doc/redirects.csv index de69d0168835d..f5660808dae1d 100644 --- a/doc/redirects.csv +++ b/doc/redirects.csv @@ -5,6 +5,9 @@ whatsnew,whatsnew/index release,whatsnew/index +# web +/getting_started.html,/docs/getting_started/index.html + # getting started install,getting_started/install comparison_with_r,getting_started/comparison/comparison_with_r From 4d508a0ca18b6eb5010bc1ff98faeaadf3f6e9df Mon Sep 17 00:00:00 2001 From: SouravPal1995 Date: Thu, 21 Jan 2021 15:42:37 +0530 Subject: [PATCH 8/8] UPdated redirect.csv --- doc/redirects.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/redirects.csv b/doc/redirects.csv index f5660808dae1d..475e5bbdae9be 100644 --- a/doc/redirects.csv +++ b/doc/redirects.csv @@ -6,7 +6,7 @@ whatsnew,whatsnew/index release,whatsnew/index # web -/getting_started.html,/docs/getting_started/index.html +getting_started,docs/getting_started/index # getting started install,getting_started/install