From 1600ce1109ba46c51993d42cdf55487a3bc3e1e9 Mon Sep 17 00:00:00 2001 From: MJ Rossetti Date: Thu, 24 Oct 2024 09:56:08 -0400 Subject: [PATCH] Update formatting --- docs/_quarto.yml | 6 +++--- docs/notes/pandas/dataframes-2.ipynb | 13 ++++++++++--- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/docs/_quarto.yml b/docs/_quarto.yml index aae7965..7eabfd5 100644 --- a/docs/_quarto.yml +++ b/docs/_quarto.yml @@ -242,9 +242,9 @@ website: - section: href: notes/applied-stats/basic-tests.qmd text: "Statistical Tests" - - section: - href: notes/applied-stats/data-scaling.qmd - text: "Data Scaling" + #- section: + # href: notes/applied-stats/data-scaling.qmd + # text: "Data Scaling" - section: href: notes/applied-stats/correlation.qmd text: "Correlation" diff --git a/docs/notes/pandas/dataframes-2.ipynb b/docs/notes/pandas/dataframes-2.ipynb index 0c557ce..d0a9edd 100644 --- a/docs/notes/pandas/dataframes-2.ipynb +++ b/docs/notes/pandas/dataframes-2.ipynb @@ -1048,8 +1048,14 @@ "\n", "# lesser used format (dict of lists)\n", "prices = {\n", - " \"date\": [\"2020-10-01\", \"2020-10-02\", \"2020-10-03\", \"2020-10-04\", \"2020-10-05\", \"2020-10-06\", \"2020-10-07\", \"2020-10-08\"],\n", - " \"stock_price_usd\": [100.00, 101.01, 120.20, 107.07, 142.42, 135.35, 160.60, 162.62]\n", + " \"date\": [\n", + " \"2020-10-01\", \"2020-10-02\", \"2020-10-03\", \"2020-10-04\",\n", + " \"2020-10-05\", \"2020-10-06\", \"2020-10-07\", \"2020-10-08\"\n", + " ],\n", + " \"stock_price_usd\": [\n", + " 100.00, 101.01, 120.20, 107.07,\n", + " 142.42, 135.35, 160.60, 162.62\n", + " ]\n", "}\n", "df = DataFrame(prices)\n", "df.head()" @@ -1868,7 +1874,8 @@ "source": [ "from pandas import read_csv\n", "\n", - "request_url = \"https://raw.githubusercontent.com/prof-rossetti/intro-to-python/main/data/daily_adjusted_nflx.csv\"\n", + "repo_url = \"https://raw.githubusercontent.com/prof-rossetti/intro-to-python\"\n", + "request_url = f\"{repo_url}/main/data/daily_adjusted_nflx.csv\"\n", "prices_df = read_csv(request_url)\n", "prices_df.head()" ]