diff --git a/data_processing.ipynb b/data_processing.ipynb index 0fd1a5f..3606ff1 100644 --- a/data_processing.ipynb +++ b/data_processing.ipynb @@ -519,25 +519,6 @@ "tvdf = pd.DataFrame(columns=[['td_total_Ttkm', 'td_short_Ttkm', 'td_noneca_Ttkm']], index=year)" ] }, - { - "cell_type": "raw", - "metadata": { - "collapsed": true - }, - "source": [ - "# Write time variant dataframe to csv\n", - "for s in scn:\n", - " for i in tvdf.columns:\n", - " r = reg[s].td_change\n", - " for y in year:\n", - " tvdf.loc[y, str(i)] = ship[i].sum()\n", - " # Calculate annual changing rate\n", - " r = (1 + r) ** (1 / (len(year) - 1)) - 1\n", - " if r != 0:\n", - " tvdf[i] *= ((1 + r) ** (tvdf.index - year[0]))\n", - " tvdf.to_csv(path + s + '/td.csv', encoding='utf8')" - ] - }, { "cell_type": "code", "execution_count": 64,