<li><strong>ISO strings come in following forms: <codeclass="python hljs"><spanclass="hljs-string">'YYYY-MM-DD'</span></code>, <codeclass="python hljs"><spanclass="hljs-string">'HH:MM:SS.mmmuuu[±HH:MM]'</span></code>, or both separated by an arbitrary character. All parts following hours are optional.</strong></li>
<pre><codeclass="python language-python hljs"><Image> = Image.new(<spanclass="hljs-string">'<mode>'</span>, (width, height)) <spanclass="hljs-comment"># Also `color=<int/tuple/str>`.</span>
<Image> = Image.open(<path>) <spanclass="hljs-comment"># Identifies format based on file contents.</span>
<Image> = <Image>.convert(<spanclass="hljs-string">'<mode>'</span>) <spanclass="hljs-comment"># Converts image to the new mode.</span>
<Image>.save(<path>) <spanclass="hljs-comment"># Selects format based on the path extension.</span>
@ -2476,8 +2476,8 @@ rect = pg.Rect(<span class="hljs-number">240</span>, <span class="hljs-number">2
rect(<Surf>, color, <Rect>, width=<spanclass="hljs-number">0</span>) <spanclass="hljs-comment"># Also polygon(<Surf>, color, points, width=0).</span>
</code></pre>
<div><h3id="font">Font</h3><pre><codeclass="python language-python hljs"><Font> = pg.font.SysFont(<spanclass="hljs-string">'<name>'</span>, size) <spanclass="hljs-comment"># Loads the system font or default if missing.</span>
<Font> = pg.font.Font(<spanclass="hljs-string">'<path>'</span>, size) <spanclass="hljs-comment"># Loads the TTF file. Pass None for default.</span>
@ -2789,7 +2789,7 @@ c <span class="hljs-number">7</span> <span class="hljs-number">8</span> <span
<spanclass="hljs-keyword">from</span> plotly.express <spanclass="hljs-keyword">import</span> line
<Figure>.write_html/json/image(<spanclass="hljs-string">'<path>'</span>) <spanclass="hljs-comment"># Also <Figure>.show().</span>
</code></pre></div>
<div><h4id="displaysalinechartoftotalcoronavirusdeathspermilliongroupedbycontinent">Displays a line chart of total coronavirus deaths per million grouped by continent:</h4><p></p><divid="2a950764-39fc-416d-97fe-0a6226a3095f"class="plotly-graph-div"style="height:340px; width:100%;"></div><pre><codeclass="python language-python hljs">covid = pd.read_csv(<spanclass="hljs-string">'https://covid.ourworldindata.org/data/owid-covid-data.csv'</span>,