Skip to content

Commit 0640e70

Browse files
committed
Datetime, Pandas
1 parent 8591e89 commit 0640e70

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ import zoneinfo, dateutil.tz
632632
### Encode
633633
```python
634634
<D/T/DT> = D/T/DT.fromisoformat(<str>) # Object from ISO string. Raises ValueError.
635-
<DT> = DT.strptime(<str>, '<format>') # Datetime from str, according to format.
635+
<DT> = DT.strptime(<str>, '<format>') # Datetime from custom string. See Format.
636636
<D/DTn> = D/DT.fromordinal(<int>) # D/DT from days since the Gregorian NYE 1.
637637
<DTn> = DT.fromtimestamp(<float>) # Local naive DT from seconds since the Epoch.
638638
<DTa> = DT.fromtimestamp(<float>, <tz>) # Aware datetime from seconds since the Epoch.
@@ -3349,7 +3349,7 @@ c 6 7
33493349
<DF> = pd.read_csv/excel(<path/url/file>) # Also `header/index_col/dtype/usecols/…=<obj>`.
33503350
<list> = pd.read_html(<path/url/file>) # Raises ImportError if webpage has zero tables.
33513351
<S/DF> = pd.read_parquet/feather/hdf(<path…>) # Function read_hdf() accepts `key=<s/df_name>`.
3352-
<DF> = pd.read_sql('<table/query>', <conn>) # Pass SQLite3/Alchemy connection (see #SQLite).
3352+
<DF> = pd.read_sql('<table/query>', <conn>) # Pass SQLite3/Alchemy connection. See #SQLite.
33533353
```
33543354

33553355
```python

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
<body>
5858
<header>
59-
<aside>March 29, 2025</aside>
59+
<aside>March 30, 2025</aside>
6060
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
6161
</header>
6262

@@ -562,7 +562,7 @@
562562
<li><strong>To get ZoneInfo() to work on Windows run <code class="python hljs"><span class="hljs-string">'&gt; pip3 install tzdata'</span></code>.</strong></li>
563563
</ul>
564564
<div><h3 id="encode">Encode</h3><pre><code class="python language-python apache hljs">&lt;D/T/DT&gt; = D/T/DT.fromisoformat(&lt;str&gt;) <span class="hljs-comment"># Object from ISO string. Raises ValueError.</span>
565-
&lt;DT&gt; = DT.strptime(&lt;str&gt;, <span class="hljs-string">'&lt;format&gt;'</span>) <span class="hljs-comment"># Datetime from str, according to format.</span>
565+
&lt;DT&gt; = DT.strptime(&lt;str&gt;, <span class="hljs-string">'&lt;format&gt;'</span>) <span class="hljs-comment"># Datetime from custom string. See Format.</span>
566566
&lt;D/DTn&gt; = D/DT.fromordinal(&lt;int&gt;) <span class="hljs-comment"># D/DT from days since the Gregorian NYE 1.</span>
567567
&lt;DTn&gt; = DT.fromtimestamp(&lt;float&gt;) <span class="hljs-comment"># Local naive DT from seconds since the Epoch.</span>
568568
&lt;DTa&gt; = DT.fromtimestamp(&lt;float&gt;, &lt;tz&gt;) <span class="hljs-comment"># Aware datetime from seconds since the Epoch.</span>
@@ -2744,7 +2744,7 @@ <h3 id="format-2">Format</h3><div><h4 id="forstandardtypesizesandmanualalignment
27442744
&lt;DF&gt; = pd.read_csv/excel(&lt;path/url/file&gt;) <span class="hljs-comment"># Also `header/index_col/dtype/usecols/…=&lt;obj&gt;`.</span>
27452745
&lt;list&gt; = pd.read_html(&lt;path/url/file&gt;) <span class="hljs-comment"># Raises ImportError if webpage has zero tables.</span>
27462746
&lt;S/DF&gt; = pd.read_parquet/feather/hdf(&lt;path…&gt;) <span class="hljs-comment"># Function read_hdf() accepts `key=&lt;s/df_name&gt;`.</span>
2747-
&lt;DF&gt; = pd.read_sql(<span class="hljs-string">'&lt;table/query&gt;'</span>, &lt;conn&gt;) <span class="hljs-comment"># Pass SQLite3/Alchemy connection (see #SQLite).</span>
2747+
&lt;DF&gt; = pd.read_sql(<span class="hljs-string">'&lt;table/query&gt;'</span>, &lt;conn&gt;) <span class="hljs-comment"># Pass SQLite3/Alchemy connection. See #SQLite.</span>
27482748
</code></pre></div>
27492749

27502750
<pre><code class="python language-python hljs">&lt;DF&gt;.to_json/csv/html/parquet/latex(&lt;path&gt;) <span class="hljs-comment"># Returns a string/bytes if path is omitted.</span>
@@ -2944,7 +2944,7 @@ <h3 id="format-2">Format</h3><div><h4 id="forstandardtypesizesandmanualalignment
29442944

29452945

29462946
<footer>
2947-
<aside>March 29, 2025</aside>
2947+
<aside>March 30, 2025</aside>
29482948
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
29492949
</footer>
29502950

0 commit comments

Comments
 (0)