|
|
@ -2847,7 +2847,7 @@ c <span class="hljs-number">7</span> <span class="hljs-number">8</span> |
|
|
|
<span class="hljs-keyword">from</span> plotly.express <span class="hljs-keyword">import</span> line |
|
|
|
<Figure> = line(<DF>, x=<col_name>, y=<col_name>) <span class="hljs-comment"># Or: line(x=<list>, y=<list>)</span> |
|
|
|
<Figure>.update_layout(margin=dict(t=<span class="hljs-number">0</span>, r=<span class="hljs-number">0</span>, b=<span class="hljs-number">0</span>, l=<span class="hljs-number">0</span>)) <span class="hljs-comment"># Or: paper_bgcolor='rgba(0, 0, 0, 0)'</span> |
|
|
|
<Figure>.write_html/json/image(<span class="hljs-string">'<path>'</span>) <span class="hljs-comment"># Or: <Figure>.show()</span> |
|
|
|
<Figure>.write_html/json/image(<span class="hljs-string">'<path>'</span>) <span class="hljs-comment"># Also: <Figure>.show()</span> |
|
|
|
</code></pre></div> |
|
|
|
|
|
|
|
<div><h4 id="coviddeathsbycontinent">Covid deaths by continent:</h4><p></p><div id="2a950764-39fc-416d-97fe-0a6226a3095f" class="plotly-graph-div" style="height:340px; width:100%;"></div><pre><code class="python language-python hljs">covid = pd.read_csv(<span class="hljs-string">'https://covid.ourworldindata.org/data/owid-covid-data.csv'</span>, |
|
|
|