I am querying sql where the raw OHLC and Volume and Ticker symbols are and calculating technical indicators with ta-lib library. I want to write the dataframe to csv (df.to_