Skip to content

Commit

Permalink
Updated paths
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Feb 12, 2017
1 parent ceabee8 commit a617180
Show file tree
Hide file tree
Showing 24 changed files with 114,234 additions and 11 deletions.
583 changes: 577 additions & 6 deletions Untitled.ipynb

Large diffs are not rendered by default.

Binary file modified docs/_build_html/.doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/_build_html/.doctrees/index.doctree
Binary file not shown.
Binary file added docs/_build_html/_images/contribs_head.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_build_html/_images/contribs_info.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_build_html/_images/merged_head.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_build_html/_images/read_csv.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 49 additions & 1 deletion docs/_build_html/_sources/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ Open the file in your notebook using the `read_csv <http://pandas.pydata.org/pan

.. code-block:: python
pandas.read_csv("./docs/_static/prop-committees.csv")
pandas.read_csv("prop-committees.csv")
After you run the cell, you should see something like this.

Expand Down Expand Up @@ -339,3 +339,51 @@ TK
len(prop)
.. image:: /_static/prop_len.png

TK

.. code-block:: python
contribs = pandas.read_csv("contributions.csv")
TK

.. code-block:: python
contribs.head()
.. image:: /_static/contribs_head.png

TK

.. code-block:: python
contribs.info()
.. image:: /_static/contribs_info.png

TK

.. code-block:: python
merged = pandas.merge(prop, contribs, on="calaccess_committee_id")
TK

.. code-block:: python
merged.head()
.. image:: /_static/merged_head.png


Act 4: Hello analysis
---------------------

TK


Act 5: Hello science
--------------------

TK
Binary file added docs/_build_html/_static/contribs-info.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_build_html/_static/contribs_head.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_build_html/_static/contribs_info.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56,762 changes: 56,762 additions & 0 deletions docs/_build_html/_static/contributions.csv

Large diffs are not rendered by default.

Binary file added docs/_build_html/_static/merged-head.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_build_html/_static/merged_head.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_build_html/_static/read_csv.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 34 additions & 1 deletion docs/_build_html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@
<li><a class="reference internal" href="#act-1-hello-notebook">Act 1: Hello notebook</a></li>
<li><a class="reference internal" href="#act-2-hello-pandas">Act 2: Hello pandas</a></li>
<li><a class="reference internal" href="#act-3-hello-data">Act 3: Hello data</a></li>
<li><a class="reference internal" href="#act-4-hello-analysis">Act 4: Hello analysis</a></li>
<li><a class="reference internal" href="#act-5-hello-science">Act 5: Hello science</a></li>
</ul>
</li>
</ul>
Expand Down Expand Up @@ -302,7 +304,7 @@ <h2>Act 3: Hello data<a class="headerlink" href="#act-3-hello-data" title="Perma
<p>To start <a class="reference external" href="https://raw.githubusercontent.com/california-civic-data-coalition/first-python-notebook/master/docs/_static/prop-committees.csv">click here</a> to download a list of last November&#8217;s 17 ballot measures and their affiliated fundraising committees.</p>
<p>The data are structured in rows of comma-separated values. This is known as a CSV file. It is the most common way you will find data published online. Save the file with the name <code class="docutils literal"><span class="pre">prop-committees.csv</span></code> in the same directory where you made your notebook.</p>
<p>Open the file in your notebook using the <a class="reference external" href="http://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_csv.html">read_csv</a> function in <code class="docutils literal"><span class="pre">pandas</span></code>.</p>
<div class="highlight-python"><div class="highlight"><pre><span></span><span class="n">pandas</span><span class="o">.</span><span class="n">read_csv</span><span class="p">(</span><span class="s2">&quot;./docs/_static/prop-committees.csv&quot;</span><span class="p">)</span>
<div class="highlight-python"><div class="highlight"><pre><span></span><span class="n">pandas</span><span class="o">.</span><span class="n">read_csv</span><span class="p">(</span><span class="s2">&quot;prop-committees.csv&quot;</span><span class="p">)</span>
</pre></div>
</div>
<p>After you run the cell, you should see something like this.</p>
Expand Down Expand Up @@ -355,6 +357,37 @@ <h2>Act 3: Hello data<a class="headerlink" href="#act-3-hello-data" title="Perma
</pre></div>
</div>
<img alt="_images/prop_len.png" src="_images/prop_len.png" />
<p>TK</p>
<div class="highlight-python"><div class="highlight"><pre><span></span><span class="n">contribs</span> <span class="o">=</span> <span class="n">pandas</span><span class="o">.</span><span class="n">read_csv</span><span class="p">(</span><span class="s2">&quot;contributions.csv&quot;</span><span class="p">)</span>
</pre></div>
</div>
<p>TK</p>
<div class="highlight-python"><div class="highlight"><pre><span></span><span class="n">contribs</span><span class="o">.</span><span class="n">head</span><span class="p">()</span>
</pre></div>
</div>
<img alt="_images/contribs_head.png" src="_images/contribs_head.png" />
<p>TK</p>
<div class="highlight-python"><div class="highlight"><pre><span></span><span class="n">contribs</span><span class="o">.</span><span class="n">info</span><span class="p">()</span>
</pre></div>
</div>
<img alt="_images/contribs_info.png" src="_images/contribs_info.png" />
<p>TK</p>
<div class="highlight-python"><div class="highlight"><pre><span></span><span class="n">merged</span> <span class="o">=</span> <span class="n">pandas</span><span class="o">.</span><span class="n">merge</span><span class="p">(</span><span class="n">prop</span><span class="p">,</span> <span class="n">contribs</span><span class="p">,</span> <span class="n">on</span><span class="o">=</span><span class="s2">&quot;calaccess_committee_id&quot;</span><span class="p">)</span>
</pre></div>
</div>
<p>TK</p>
<div class="highlight-python"><div class="highlight"><pre><span></span><span class="n">merged</span><span class="o">.</span><span class="n">head</span><span class="p">()</span>
</pre></div>
</div>
<img alt="_images/merged_head.png" src="_images/merged_head.png" />
</div>
<div class="section" id="act-4-hello-analysis">
<h2>Act 4: Hello analysis<a class="headerlink" href="#act-4-hello-analysis" title="Permalink to this headline"></a></h2>
<p>TK</p>
</div>
<div class="section" id="act-5-hello-science">
<h2>Act 5: Hello science<a class="headerlink" href="#act-5-hello-science" title="Permalink to this headline"></a></h2>
<p>TK</p>
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion docs/_build_html/searchindex.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion docs/_static/.~lock.prop-committees.csv#

This file was deleted.

Binary file added docs/_static/contribs_head.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/contribs_info.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a617180

Please sign in to comment.