User Tools

Site Tools


data:pandas:allign

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
data:pandas:allign [2018/04/03 20:44] – aistisdata:pandas:allign [2018/04/03 20:45] (current) – aistis
Line 5: Line 5:
 start = time.time() start = time.time()
 for q in d: for q in d:
-    df1.iloc[np.in1d(all_date, q.date, assume_unique=True), df1.columns.get_loc(q.sidb)] = q.pnl+    df1.iloc[np.in1d(all_date, q.date, assume_unique=True),  
 +       df1.columns.get_loc(q.sidb)] = q.pnl
 print ("Result: %.2f secs" % (time.time() - start)) print ("Result: %.2f secs" % (time.time() - start))
 </code> </code>
data/pandas/allign.1522777492.txt.gz · Last modified: by aistis