add_dates
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
add_dates [2020/12/03 19:03] – raju | add_dates [2021/01/13 14:41] (current) – raju | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | === Add dates === | + | ===== Add dates ===== |
==== single start date; multiple offsets; with pandas ==== | ==== single start date; multiple offsets; with pandas ==== | ||
Line 63: | Line 63: | ||
</ | </ | ||
- | I used Python 3.8.5, ipython 7.18.1, pandas 1.1.3, numpy 1.19.2 | + | Used | Python 3.8.5, ipython 7.18.1, pandas 1.1.3, numpy 1.19.2 |
+ | |||
+ | demonstrates | round float to int | ||
==== multiple dates; different offsets; with pandas ==== | ==== multiple dates; different offsets; with pandas ==== | ||
Line 133: | Line 135: | ||
==== single date; single offset; without pandas ==== | ==== single date; single offset; without pandas ==== | ||
- | For a single date, we can do this without pandas also | ||
< | < | ||
In [1]: | In [1]: | ||
Line 147: | Line 148: | ||
==== Related links ==== | ==== Related links ==== | ||
* https:// | * https:// | ||
+ | * https:// | ||
==== offset calculation ==== | ==== offset calculation ==== | ||
Line 152: | Line 154: | ||
For example, let's say: | For example, let's say: | ||
- | * There are two applications App1 and App2 where App1 provides input to App2 | + | * There are two applications App1 and App2 |
- | * App1 converts the number of days (an integer value) into number of years (a floating point number) and rounds it to 9 digits | + | * App1 converts the number of days (an integer value) into number of years (a floating point number) and rounds it to 9 digits |
+ | * App2 reads that as input | ||
< | < |
add_dates.1607022225.txt.gz · Last modified: 2020/12/03 19:03 by raju