Skip to content

Commit

Permalink
deploy: 63a4dcd
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Jul 24, 2024
1 parent f69be30 commit 0e0ae38
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 62 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,10 @@
}
],
"source": [
"url = \"https://github.com/ioos/notebooks_demos/raw/master/notebooks/data/dwc/raw/\"\n",
"url = (\n",
" \"https://github.com/ioos/notebooks_demos/\"\n",
" \"raw/main/ioos_code_lab/jupyterbook/content/code_gallery/data/\"\n",
")\n",
"file = \"MadeUpDataForBiologicalDataTraining.csv\"\n",
"df = pd.read_csv(url + file, header=[0])\n",
"df.head()"
Expand Down Expand Up @@ -1598,7 +1601,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.2"
"version": "3.12.4"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,10 @@ <h2>Creating event core with an occurrence and extended measurement or fact exte
<p>Now we need to read in the raw data file using <a class="reference external" href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_csv.html">pandas.read_csv()</a>. Here we display the first ten rows of data to give the user an idea of what observations are contained in the <a class="reference external" href="https://github.com/ioos/notebooks_demos/blob/master/notebooks/data/dwc/raw/MadeUpDataForBiologicalDataTraining.csv">raw file</a>.</p>
<div class="cell docutils container">
<div class="cell_input docutils container">
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">url</span> <span class="o">=</span> <span class="s2">&quot;https://github.com/ioos/notebooks_demos/raw/master/notebooks/data/dwc/raw/&quot;</span>
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">url</span> <span class="o">=</span> <span class="p">(</span>
<span class="s2">&quot;https://github.com/ioos/notebooks_demos/&quot;</span>
<span class="s2">&quot;raw/main/ioos_code_lab/jupyterbook/content/code_gallery/data/&quot;</span>
<span class="p">)</span>
<span class="n">file</span> <span class="o">=</span> <span class="s2">&quot;MadeUpDataForBiologicalDataTraining.csv&quot;</span>
<span class="n">df</span> <span class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">read_csv</span><span class="p">(</span><span class="n">url</span> <span class="o">+</span> <span class="n">file</span><span class="p">,</span> <span class="n">header</span><span class="o">=</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span>
<span class="n">df</span><span class="o">.</span><span class="n">head</span><span class="p">()</span>
Expand Down
Loading

0 comments on commit 0e0ae38

Please sign in to comment.