Commit 06b73f5
authored
Replace undocumented strftime usage in TimesliderChoropleth example. (#919)
In the TimesliderChoropleth Jupyter notebook example `.strftime('%s')` is used to convert datetime objects to an epoch timestamp string. This is undocumented and system dependent and can lead to unexpected behavior. So as an alternative we can convert the Pandas DateTimeIndex object to epoch timestamps and then to strings, which leads to the same result.1 parent b6bf216 commit 06b73f5
2 files changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
261 | | - | |
262 | | - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| |||
0 commit comments