{ "cells": [ { "cell_type": "code", "execution_count": 46, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
CodeNameType_Region11.11.1.11.1.21.1.31.21.2.1...2.1.4.1.32.1.4.1.42.1.4.22.1.4.2.12.1.4.2.22.22.32.3.12.3.22.3.3
00360科技Beijing0.00.00.00.00.00.00.0...0.00.00.00.00.00.00.00.00.00.0
1151WORLDBeijing0.00.00.00.00.00.00.0...0.00.00.00.00.00.00.00.00.00.0
22706所Beijing0.00.00.00.01.00.00.0...0.00.00.00.00.00.00.00.00.00.0
33艾克斯特Beijing0.00.00.00.00.00.00.0...0.00.00.00.00.00.00.00.00.00.0
44爱创科技Beijing0.00.00.00.00.00.00.0...0.00.00.00.00.00.00.00.00.00.0
..................................................................
165165智能云科Non_Beijing0.00.00.00.00.00.00.0...0.00.00.00.00.00.00.00.00.00.0
166166中国电子科技网络信息安全Non_Beijing0.00.00.00.00.00.00.0...0.00.00.00.00.00.00.00.00.00.0
167167中环股份Non_Beijing0.00.01.00.00.00.00.0...0.00.00.00.00.00.00.00.00.00.0
168168中控技术Non_Beijing0.00.00.01.00.00.00.0...0.00.00.00.00.00.00.01.01.01.0
169169中芯国际Non_Beijing0.00.01.00.00.00.00.0...0.00.00.00.00.00.00.00.00.00.0
\n", "

170 rows × 110 columns

\n", "
" ], "text/plain": [ " Code Name Type_Region 1 1.1 1.1.1 1.1.2 1.1.3 1.2 \\\n", "0 0 360科技 Beijing 0.0 0.0 0.0 0.0 0.0 0.0 \n", "1 1 51WORLD Beijing 0.0 0.0 0.0 0.0 0.0 0.0 \n", "2 2 706所 Beijing 0.0 0.0 0.0 0.0 1.0 0.0 \n", "3 3 艾克斯特 Beijing 0.0 0.0 0.0 0.0 0.0 0.0 \n", "4 4 爱创科技 Beijing 0.0 0.0 0.0 0.0 0.0 0.0 \n", ".. ... ... ... ... ... ... ... ... ... \n", "165 165 智能云科 Non_Beijing 0.0 0.0 0.0 0.0 0.0 0.0 \n", "166 166 中国电子科技网络信息安全 Non_Beijing 0.0 0.0 0.0 0.0 0.0 0.0 \n", "167 167 中环股份 Non_Beijing 0.0 0.0 1.0 0.0 0.0 0.0 \n", "168 168 中控技术 Non_Beijing 0.0 0.0 0.0 1.0 0.0 0.0 \n", "169 169 中芯国际 Non_Beijing 0.0 0.0 1.0 0.0 0.0 0.0 \n", "\n", " 1.2.1 ... 2.1.4.1.3 2.1.4.1.4 2.1.4.2 2.1.4.2.1 2.1.4.2.2 2.2 \\\n", "0 0.0 ... 0.0 0.0 0.0 0.0 0.0 0.0 \n", "1 0.0 ... 0.0 0.0 0.0 0.0 0.0 0.0 \n", "2 0.0 ... 0.0 0.0 0.0 0.0 0.0 0.0 \n", "3 0.0 ... 0.0 0.0 0.0 0.0 0.0 0.0 \n", "4 0.0 ... 0.0 0.0 0.0 0.0 0.0 0.0 \n", ".. ... ... ... ... ... ... ... ... \n", "165 0.0 ... 0.0 0.0 0.0 0.0 0.0 0.0 \n", "166 0.0 ... 0.0 0.0 0.0 0.0 0.0 0.0 \n", "167 0.0 ... 0.0 0.0 0.0 0.0 0.0 0.0 \n", "168 0.0 ... 0.0 0.0 0.0 0.0 0.0 0.0 \n", "169 0.0 ... 0.0 0.0 0.0 0.0 0.0 0.0 \n", "\n", " 2.3 2.3.1 2.3.2 2.3.3 \n", "0 0.0 0.0 0.0 0.0 \n", "1 0.0 0.0 0.0 0.0 \n", "2 0.0 0.0 0.0 0.0 \n", "3 0.0 0.0 0.0 0.0 \n", "4 0.0 0.0 0.0 0.0 \n", ".. ... ... ... ... \n", "165 0.0 0.0 0.0 0.0 \n", "166 0.0 0.0 0.0 0.0 \n", "167 0.0 0.0 0.0 0.0 \n", "168 0.0 1.0 1.0 1.0 \n", "169 0.0 0.0 0.0 0.0 \n", "\n", "[170 rows x 110 columns]" ] }, "execution_count": 46, "metadata": {}, "output_type": "execute_result" } ], "source": [ "import pandas as pd\n", "\n", "Firm = pd.read_csv(\"Firm.csv\")\n", "Firm.fillna(0, inplace=True)\n", "Firm" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "base", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.8" }, "orig_nbformat": 4, "vscode": { "interpreter": { "hash": "bcdafc093860683ffb58d6956591562b7f8ed5d58147d17d71a5d4d6605a08df" } } }, "nbformat": 4, "nbformat_minor": 2 }