{ "cells": [ { "cell_type": "markdown", "id": "9d749fa9", "metadata": {}, "source": [ "*******************************************************************************\n", "** Please acknowlegde the source\n", "** Boermans, M.A. (2022). A literature review of Securities Holdings Statistics research and a practitioner's guide. DNB Working Paper No 757.\n", "** Version 2.0 (XX August 2024) (First version: 8 December 2022)\n", "*******************************************************************************" ] }, { "cell_type": "code", "execution_count": null, "id": "2c5ffe55", "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import numpy as np\n", "file = \"F32_2024Q1\"\n", "*! check file extension or selection of F31_2024Q1 or F511_2024Q1 or F52E_2024Q1\n", "df = pd.read_stata(file)\n" ] }, { "cell_type": "code", "execution_count": null, "id": "bba48748", "metadata": {}, "outputs": [], "source": [ "* use \t\"F32_2024Q1.dta\", clear\t\t\n", "* use \t\"F31_2024Q1.dta\", clear\t\n", " \n", " * stocks and investment funds, edit quotation_basis filter ad 6.\n", "\t* use \t\"F511_2024Q1.dta\", clear\t\t\n", "\t* use \t\"F52E_2024Q1.dta\", clear\t" ] }, { "cell_type": "markdown", "id": "12281681-d784-4b95-8692-2ef74d16def5", "metadata": {}, "source": [ "##### Data preperation and selection\n", "\n", "Selecting:\n", "
\n", " | \n", " | period | \n", "year | \n", "quarter | \n", "qdate | \n", "qdate_str | \n", "
---|---|---|---|---|---|---|
id_panel_sj | \n", "qdate | \n", "\n", " | \n", " | \n", " | \n", " | \n", " |
US961214EF61 NL invfd | \n", "2024-01-01 | \n", "2024-Q1 | \n", "2024 | \n", "Q1 | \n", "2024-01-01 | \n", "2024Q1 | \n", "
FR0013398831 DE gov | \n", "2024-01-01 | \n", "2024-Q1 | \n", "2024 | \n", "Q1 | \n", "2024-01-01 | \n", "2024Q1 | \n", "
PTEGPAOM0017 LU invfd | \n", "2024-01-01 | \n", "2024-Q1 | \n", "2024 | \n", "Q1 | \n", "2024-01-01 | \n", "2024Q1 | \n", "
XS2675884576 LU hhold | \n", "2024-01-01 | \n", "2024-Q1 | \n", "2024 | \n", "Q1 | \n", "2024-01-01 | \n", "2024Q1 | \n", "
US05578BAJ52 IT pfund | \n", "2024-01-01 | \n", "2024-Q1 | \n", "2024 | \n", "Q1 | \n", "2024-01-01 | \n", "2024Q1 | \n", "