I'm a researcher new to Python, and I have to analyze a large dataset that contains raw sensordata in an Excel format.
Each Excel-datafile is >100 MB's large for each study participant. The excelfile contains 5 sheets for the measurement of 5 different physiological parameters. Each sheet contains more than 1 million rows and two columns (time, physiological parameter).
After 1 million rows of sensordata, the data automatically continues in the following columns (C and D) in the Excel file.
Every time I try to load the datafile in Python, it takes forever. I was wondering several things:
1) How do I tell Python to read data from a specific Excel sheet? Is it normal that this takes so long?
This is what I tried:
df = pd.read_excel("filepath", sheet_name="Sheetname")
print (df.head (5))
2) Is it feasible to do data munging for this large datafile in Python with Pandas? I tried this to speed up the process:
import xlrd
work_book = xlrd.open_workbook('filepath', on_demand=True)
work_book.release_resources()
3) Later on: I want to compare the physiological parameters of different study participants. As this is a time-series analysis between study participants, how could I get started doing this in Python?
I've learned the basics of Python in a few days, and I love it so far. I realize I have a long way to go.
Update: I think I just finished the time-series analysis (actually just the trend-analysis, using the Dickey-Fuller test and rolling mean visualisation techniques)! :D Thank you all so much for your help!!! The 'datetime' module in pandas was the hardest for me to get around, and my datetime column is still recognized as 'object'. Is this normal? Shouldn't it be datetime64?