Im trying to use the pandas function "to_cvs" to export some data.
Does anyone knows if it works?
import pandas as pd
def initialize(context):
stocks = {24: sid(24),
466131: sid(46631)
}
pass
def handle_data(context, data):
datapanel = history(200, '1d', 'close_price')
#location = C:\Users\Jose\Desktop\exportacion.txt
pd.to_cvs(datapanel)