Reports

Time Series Pandas Data Frame Function

Aaron Honour
It is useful to have a date time index when working with time series data. This function abstracts the process and lends itself to automation. Before: After: Function Code: import pandas as pd def createTimeSeries(path, timeColumn, dateFormat): """ This function takes a time string, converts it to a datetime stamp and sets it as the index :param path: string: path to .csv file :param timeColumn: string: name of column to set as time index :param dateFormat: string: date format of the datetime index column :return: data frame: time indexed data frame """ df = pd.

M1: Government Deficit and Debt Under the Maastricht Treaty

Aaron Honour
Series Overview The government currently provides 9 different broad measures of money in the UK economy: M1: Government deficit and debt under the Maastricht Treaty M2: General government gross debt at nominal value: Consolidated M3: General government transactions in Maastricht debt instruments: Consolidated M4: Reconciliation of general government net borrowing with general government gross consolidated debt at nominal value M5: Reconciliation of general government gross consolidated debt at nominal value with ESA 2010 balance sheets M6: Reconciliation of transactions in Maastricht debt instruments with ESA 2010 financial account M7: Government deficit under the Maastricht Treaty: Reconciliation of versions of net borrowing M8R: Government deficit and debt under the Maastricht Treaty M9: Supplementary table for the financial crisis Government deficit and debt returns - Office for National Statistics (ons.