Skip to content

Commit

Permalink
Update formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
s2t2 committed Oct 24, 2024
1 parent eee7c35 commit 1600ce1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/_quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
13 changes: 10 additions & 3 deletions docs/notes/pandas/dataframes-2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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()"
Expand Down Expand Up @@ -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()"
]
Expand Down

0 comments on commit 1600ce1

Please sign in to comment.