User Tools

Site Tools


add_dates

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
add_dates [2020/12/03 19:03] rajuadd_dates [2020/12/03 19:46] – [Related links] raju
Line 133: Line 133:
  
 ==== single date; single offset; without pandas ==== ==== single date; single offset; without pandas ====
-For a single date, we can do this without pandas also 
 <code> <code>
 In [1]:  In [1]: 
Line 147: Line 146:
 ==== Related links ==== ==== Related links ====
   * https://github.com/KamarajuKusumanchi/market_data_processor/blob/master/add_days.py   * https://github.com/KamarajuKusumanchi/market_data_processor/blob/master/add_days.py
 +  * https://pandas.pydata.org/docs/reference/api/pandas.to_timedelta.html
  
 ==== offset calculation ==== ==== offset calculation ====
Line 152: Line 152:
  
 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 and gives it to App2.+  * 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
  
 <code> <code>
add_dates.txt · Last modified: 2021/01/13 14:41 by raju