Hello I have a pandas series dataframe name "BoilerInfo" from an API request, and I would like to create a CSV file of the data. How do I do that?
Can python create a CSV file in this directory? C:\Users\lingbart\Documents\Python\WB Data
#Create Dataframe for the supply & return temp. Use ffill to merge missing data to do math
BoilerInfo = pd.DataFrame({'hws' : hws_df, 'hwr' : hwr_df,
'DP' : hotWaterLoopDP_df, 'pump3O' : pump3O_df,
'oat' : oat_df, 'elecMeter' : elecMeter_df,
'gasMeter' : gasMeter_df})
BoilerInfo = BoilerInfo.fillna(method = 'ffill').fillna(method = 'bfill')
#Show statistics
print(BoilerInfo.describe())
print(BoilerInfo.head())
print(BoilerInfo.tail())
BoilerInfo = BoilerInfo.fillna(method = 'ffill').fillna(method = 'bfill')
really accomplish anything? To me the'bfill'
seems redundand, since at that point everything isffill
ed – redactedNaN
in the first few rows thenffill
won't replace these, this is whatbfill
will do – EdChum