Created
September 3, 2016 12:43
-
-
Save anubhaw2091/d147ee5d1326187b53dd7cbcdbb35396 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import psutil | |
import os | |
import time | |
start_time = time.time() | |
import MySQLdb as mysql | |
import cv2 | |
import sys | |
import rpy2.robjects as robj | |
import rpy2.robjects.numpy2ri | |
rpy2.robjects.numpy2ri.activate() | |
from rpy2.robjects.packages import importr | |
R = robj.r | |
#DTW = importr('dtw') | |
import pandas as pd | |
df = pd.DataFrame(index=range(0,1000),columns=['A']) | |
df['iu']=0 | |
for i in df.index: | |
#time.sleep(0.11) | |
df['iu'][i]=i | |
print i | |
#time taken | |
print(" --- %s seconds ---" % (time.time() - start_time)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment