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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cells": [
|
3 |
+
{
|
4 |
+
"cell_type": "code",
|
5 |
+
"execution_count": 7,
|
6 |
+
"metadata": {},
|
7 |
+
"outputs": [
|
8 |
+
{
|
9 |
+
"name": "stdout",
|
10 |
+
"output_type": "stream",
|
11 |
+
"text": [
|
12 |
+
"Requirement already satisfied: datasets in /opt/anaconda3/lib/python3.12/site-packages (2.21.0)\n",
|
13 |
+
"Requirement already satisfied: filelock in /opt/anaconda3/lib/python3.12/site-packages (from datasets) (3.13.1)\n",
|
14 |
+
"Requirement already satisfied: numpy>=1.17 in /opt/anaconda3/lib/python3.12/site-packages (from datasets) (1.26.4)\n",
|
15 |
+
"Requirement already satisfied: pyarrow>=15.0.0 in /opt/anaconda3/lib/python3.12/site-packages (from datasets) (17.0.0)\n",
|
16 |
+
"Requirement already satisfied: dill<0.3.9,>=0.3.0 in /opt/anaconda3/lib/python3.12/site-packages (from datasets) (0.3.8)\n",
|
17 |
+
"Requirement already satisfied: pandas in /opt/anaconda3/lib/python3.12/site-packages (from datasets) (2.2.2)\n",
|
18 |
+
"Requirement already satisfied: requests>=2.32.2 in /opt/anaconda3/lib/python3.12/site-packages (from datasets) (2.32.2)\n",
|
19 |
+
"Requirement already satisfied: tqdm>=4.66.3 in /opt/anaconda3/lib/python3.12/site-packages (from datasets) (4.66.4)\n",
|
20 |
+
"Requirement already satisfied: xxhash in /opt/anaconda3/lib/python3.12/site-packages (from datasets) (3.5.0)\n",
|
21 |
+
"Requirement already satisfied: multiprocess in /opt/anaconda3/lib/python3.12/site-packages (from datasets) (0.70.16)\n",
|
22 |
+
"Requirement already satisfied: fsspec<=2024.6.1,>=2023.1.0 in /opt/anaconda3/lib/python3.12/site-packages (from fsspec[http]<=2024.6.1,>=2023.1.0->datasets) (2024.3.1)\n",
|
23 |
+
"Requirement already satisfied: aiohttp in /opt/anaconda3/lib/python3.12/site-packages (from datasets) (3.9.5)\n",
|
24 |
+
"Requirement already satisfied: huggingface-hub>=0.21.2 in /opt/anaconda3/lib/python3.12/site-packages (from datasets) (0.24.6)\n",
|
25 |
+
"Requirement already satisfied: packaging in /opt/anaconda3/lib/python3.12/site-packages (from datasets) (23.2)\n",
|
26 |
+
"Requirement already satisfied: pyyaml>=5.1 in /opt/anaconda3/lib/python3.12/site-packages (from datasets) (6.0.1)\n",
|
27 |
+
"Requirement already satisfied: aiosignal>=1.1.2 in /opt/anaconda3/lib/python3.12/site-packages (from aiohttp->datasets) (1.2.0)\n",
|
28 |
+
"Requirement already satisfied: attrs>=17.3.0 in /opt/anaconda3/lib/python3.12/site-packages (from aiohttp->datasets) (23.1.0)\n",
|
29 |
+
"Requirement already satisfied: frozenlist>=1.1.1 in /opt/anaconda3/lib/python3.12/site-packages (from aiohttp->datasets) (1.4.0)\n",
|
30 |
+
"Requirement already satisfied: multidict<7.0,>=4.5 in /opt/anaconda3/lib/python3.12/site-packages (from aiohttp->datasets) (6.0.4)\n",
|
31 |
+
"Requirement already satisfied: yarl<2.0,>=1.0 in /opt/anaconda3/lib/python3.12/site-packages (from aiohttp->datasets) (1.9.3)\n",
|
32 |
+
"Requirement already satisfied: typing-extensions>=3.7.4.3 in /opt/anaconda3/lib/python3.12/site-packages (from huggingface-hub>=0.21.2->datasets) (4.11.0)\n",
|
33 |
+
"Requirement already satisfied: charset-normalizer<4,>=2 in /opt/anaconda3/lib/python3.12/site-packages (from requests>=2.32.2->datasets) (2.0.4)\n",
|
34 |
+
"Requirement already satisfied: idna<4,>=2.5 in /opt/anaconda3/lib/python3.12/site-packages (from requests>=2.32.2->datasets) (3.7)\n",
|
35 |
+
"Requirement already satisfied: urllib3<3,>=1.21.1 in /opt/anaconda3/lib/python3.12/site-packages (from requests>=2.32.2->datasets) (2.2.2)\n",
|
36 |
+
"Requirement already satisfied: certifi>=2017.4.17 in /opt/anaconda3/lib/python3.12/site-packages (from requests>=2.32.2->datasets) (2024.7.4)\n",
|
37 |
+
"Requirement already satisfied: python-dateutil>=2.8.2 in /opt/anaconda3/lib/python3.12/site-packages (from pandas->datasets) (2.9.0.post0)\n",
|
38 |
+
"Requirement already satisfied: pytz>=2020.1 in /opt/anaconda3/lib/python3.12/site-packages (from pandas->datasets) (2024.1)\n",
|
39 |
+
"Requirement already satisfied: tzdata>=2022.7 in /opt/anaconda3/lib/python3.12/site-packages (from pandas->datasets) (2023.3)\n",
|
40 |
+
"Requirement already satisfied: six>=1.5 in /opt/anaconda3/lib/python3.12/site-packages (from python-dateutil>=2.8.2->pandas->datasets) (1.16.0)\n",
|
41 |
+
"Requirement already satisfied: pandas in /opt/anaconda3/lib/python3.12/site-packages (2.2.2)\n",
|
42 |
+
"Requirement already satisfied: numpy>=1.26.0 in /opt/anaconda3/lib/python3.12/site-packages (from pandas) (1.26.4)\n",
|
43 |
+
"Requirement already satisfied: python-dateutil>=2.8.2 in /opt/anaconda3/lib/python3.12/site-packages (from pandas) (2.9.0.post0)\n",
|
44 |
+
"Requirement already satisfied: pytz>=2020.1 in /opt/anaconda3/lib/python3.12/site-packages (from pandas) (2024.1)\n",
|
45 |
+
"Requirement already satisfied: tzdata>=2022.7 in /opt/anaconda3/lib/python3.12/site-packages (from pandas) (2023.3)\n",
|
46 |
+
"Requirement already satisfied: six>=1.5 in /opt/anaconda3/lib/python3.12/site-packages (from python-dateutil>=2.8.2->pandas) (1.16.0)\n"
|
47 |
+
]
|
48 |
+
}
|
49 |
+
],
|
50 |
+
"source": [
|
51 |
+
"!pip install datasets\n",
|
52 |
+
"!pip install pandas"
|
53 |
+
]
|
54 |
+
},
|
55 |
+
{
|
56 |
+
"cell_type": "code",
|
57 |
+
"execution_count": 3,
|
58 |
+
"metadata": {},
|
59 |
+
"outputs": [],
|
60 |
+
"source": [
|
61 |
+
"import datasets"
|
62 |
+
]
|
63 |
+
},
|
64 |
+
{
|
65 |
+
"cell_type": "code",
|
66 |
+
"execution_count": 4,
|
67 |
+
"metadata": {},
|
68 |
+
"outputs": [
|
69 |
+
{
|
70 |
+
"data": {
|
71 |
+
"application/vnd.jupyter.widget-view+json": {
|
72 |
+
"model_id": "6b5bdaff002a48109bf3e939a59b89f7",
|
73 |
+
"version_major": 2,
|
74 |
+
"version_minor": 0
|
75 |
+
},
|
76 |
+
"text/plain": [
|
77 |
+
"Downloading readme: 0%| | 0.00/31.0 [00:00<?, ?B/s]"
|
78 |
+
]
|
79 |
+
},
|
80 |
+
"metadata": {},
|
81 |
+
"output_type": "display_data"
|
82 |
+
},
|
83 |
+
{
|
84 |
+
"data": {
|
85 |
+
"application/vnd.jupyter.widget-view+json": {
|
86 |
+
"model_id": "78f3ec42c8d4487caf3bbfe653d3d2ca",
|
87 |
+
"version_major": 2,
|
88 |
+
"version_minor": 0
|
89 |
+
},
|
90 |
+
"text/plain": [
|
91 |
+
"Downloading data: 0%| | 0.00/293k [00:00<?, ?B/s]"
|
92 |
+
]
|
93 |
+
},
|
94 |
+
"metadata": {},
|
95 |
+
"output_type": "display_data"
|
96 |
+
},
|
97 |
+
{
|
98 |
+
"data": {
|
99 |
+
"application/vnd.jupyter.widget-view+json": {
|
100 |
+
"model_id": "db1bcb892ad3437292c3734acfdc3a57",
|
101 |
+
"version_major": 2,
|
102 |
+
"version_minor": 0
|
103 |
+
},
|
104 |
+
"text/plain": [
|
105 |
+
"Generating train split: 0%| | 0/1000 [00:00<?, ? examples/s]"
|
106 |
+
]
|
107 |
+
},
|
108 |
+
"metadata": {},
|
109 |
+
"output_type": "display_data"
|
110 |
+
}
|
111 |
+
],
|
112 |
+
"source": [
|
113 |
+
"dataset = datasets.load_dataset(\"seemasaharann/fortune1000-dataset\")"
|
114 |
+
]
|
115 |
+
},
|
116 |
+
{
|
117 |
+
"cell_type": "code",
|
118 |
+
"execution_count": 5,
|
119 |
+
"metadata": {},
|
120 |
+
"outputs": [
|
121 |
+
{
|
122 |
+
"data": {
|
123 |
+
"text/plain": [
|
124 |
+
"DatasetDict({\n",
|
125 |
+
" train: Dataset({\n",
|
126 |
+
" features: ['Rank', 'Company', 'Ticker', 'Sector', 'Industry', 'Profitable', 'Founder_is_CEO', 'FemaleCEO', 'Growth_in_Jobs', 'Change_in_Rank', 'Gained_in_Rank', 'Dropped_in_Rank', 'Newcomer_to_the_Fortune500', 'Global500', 'Worlds_Most_Admired_Companies', 'Best_Companies_to_Work_For', 'Number_of_employees', 'MarketCap_March28_M', 'Revenues_M', 'RevenuePercentChange', 'Profits_M', 'ProfitsPercentChange', 'Assets_M', 'CEO', 'Country', 'HeadquartersCity', 'HeadquartersState', 'Website', 'CompanyType', 'Footnote', 'MarketCap_Updated_M', 'Updated'],\n",
|
127 |
+
" num_rows: 1000\n",
|
128 |
+
" })\n",
|
129 |
+
"})"
|
130 |
+
]
|
131 |
+
},
|
132 |
+
"execution_count": 5,
|
133 |
+
"metadata": {},
|
134 |
+
"output_type": "execute_result"
|
135 |
+
}
|
136 |
+
],
|
137 |
+
"source": [
|
138 |
+
"dataset"
|
139 |
+
]
|
140 |
+
},
|
141 |
+
{
|
142 |
+
"cell_type": "code",
|
143 |
+
"execution_count": 9,
|
144 |
+
"metadata": {},
|
145 |
+
"outputs": [],
|
146 |
+
"source": [
|
147 |
+
"test_dataset = dataset[\"train\"]"
|
148 |
+
]
|
149 |
+
},
|
150 |
+
{
|
151 |
+
"cell_type": "code",
|
152 |
+
"execution_count": 10,
|
153 |
+
"metadata": {},
|
154 |
+
"outputs": [
|
155 |
+
{
|
156 |
+
"data": {
|
157 |
+
"text/html": [
|
158 |
+
"<div>\n",
|
159 |
+
"<style scoped>\n",
|
160 |
+
" .dataframe tbody tr th:only-of-type {\n",
|
161 |
+
" vertical-align: middle;\n",
|
162 |
+
" }\n",
|
163 |
+
"\n",
|
164 |
+
" .dataframe tbody tr th {\n",
|
165 |
+
" vertical-align: top;\n",
|
166 |
+
" }\n",
|
167 |
+
"\n",
|
168 |
+
" .dataframe thead th {\n",
|
169 |
+
" text-align: right;\n",
|
170 |
+
" }\n",
|
171 |
+
"</style>\n",
|
172 |
+
"<table border=\"1\" class=\"dataframe\">\n",
|
173 |
+
" <thead>\n",
|
174 |
+
" <tr style=\"text-align: right;\">\n",
|
175 |
+
" <th></th>\n",
|
176 |
+
" <th>Rank</th>\n",
|
177 |
+
" <th>Company</th>\n",
|
178 |
+
" <th>Ticker</th>\n",
|
179 |
+
" <th>Sector</th>\n",
|
180 |
+
" <th>Industry</th>\n",
|
181 |
+
" <th>Profitable</th>\n",
|
182 |
+
" <th>Founder_is_CEO</th>\n",
|
183 |
+
" <th>FemaleCEO</th>\n",
|
184 |
+
" <th>Growth_in_Jobs</th>\n",
|
185 |
+
" <th>Change_in_Rank</th>\n",
|
186 |
+
" <th>...</th>\n",
|
187 |
+
" <th>Assets_M</th>\n",
|
188 |
+
" <th>CEO</th>\n",
|
189 |
+
" <th>Country</th>\n",
|
190 |
+
" <th>HeadquartersCity</th>\n",
|
191 |
+
" <th>HeadquartersState</th>\n",
|
192 |
+
" <th>Website</th>\n",
|
193 |
+
" <th>CompanyType</th>\n",
|
194 |
+
" <th>Footnote</th>\n",
|
195 |
+
" <th>MarketCap_Updated_M</th>\n",
|
196 |
+
" <th>Updated</th>\n",
|
197 |
+
" </tr>\n",
|
198 |
+
" </thead>\n",
|
199 |
+
" <tbody>\n",
|
200 |
+
" <tr>\n",
|
201 |
+
" <th>0</th>\n",
|
202 |
+
" <td>1</td>\n",
|
203 |
+
" <td>Walmart</td>\n",
|
204 |
+
" <td>WMT</td>\n",
|
205 |
+
" <td>Retailing</td>\n",
|
206 |
+
" <td>General Merchandisers</td>\n",
|
207 |
+
" <td>yes</td>\n",
|
208 |
+
" <td>no</td>\n",
|
209 |
+
" <td>no</td>\n",
|
210 |
+
" <td>no</td>\n",
|
211 |
+
" <td>0.0</td>\n",
|
212 |
+
" <td>...</td>\n",
|
213 |
+
" <td>252399.0</td>\n",
|
214 |
+
" <td>C. Douglas McMillon</td>\n",
|
215 |
+
" <td>U.S.</td>\n",
|
216 |
+
" <td>Bentonville</td>\n",
|
217 |
+
" <td>Arkansas</td>\n",
|
218 |
+
" <td>https://www.stock.walmart.com</td>\n",
|
219 |
+
" <td>Public</td>\n",
|
220 |
+
" <td>Figures are for fiscal year ended Jan. 31, 202...</td>\n",
|
221 |
+
" <td>559911.0</td>\n",
|
222 |
+
" <td>2024-08-05</td>\n",
|
223 |
+
" </tr>\n",
|
224 |
+
" <tr>\n",
|
225 |
+
" <th>1</th>\n",
|
226 |
+
" <td>2</td>\n",
|
227 |
+
" <td>Amazon</td>\n",
|
228 |
+
" <td>AMZN</td>\n",
|
229 |
+
" <td>Retailing</td>\n",
|
230 |
+
" <td>Internet Services and Retailing</td>\n",
|
231 |
+
" <td>yes</td>\n",
|
232 |
+
" <td>no</td>\n",
|
233 |
+
" <td>no</td>\n",
|
234 |
+
" <td>no</td>\n",
|
235 |
+
" <td>0.0</td>\n",
|
236 |
+
" <td>...</td>\n",
|
237 |
+
" <td>527854.0</td>\n",
|
238 |
+
" <td>Andrew R. Jassy</td>\n",
|
239 |
+
" <td>U.S.</td>\n",
|
240 |
+
" <td>Seattle</td>\n",
|
241 |
+
" <td>Washington</td>\n",
|
242 |
+
" <td>https://www.amazon.com</td>\n",
|
243 |
+
" <td>Public</td>\n",
|
244 |
+
" <td>Market value as of July 15, 2024.</td>\n",
|
245 |
+
" <td>2005565.0</td>\n",
|
246 |
+
" <td>2024-08-05</td>\n",
|
247 |
+
" </tr>\n",
|
248 |
+
" <tr>\n",
|
249 |
+
" <th>2</th>\n",
|
250 |
+
" <td>3</td>\n",
|
251 |
+
" <td>Apple</td>\n",
|
252 |
+
" <td>AAPL</td>\n",
|
253 |
+
" <td>Technology</td>\n",
|
254 |
+
" <td>Computers, Office Equipment</td>\n",
|
255 |
+
" <td>yes</td>\n",
|
256 |
+
" <td>no</td>\n",
|
257 |
+
" <td>no</td>\n",
|
258 |
+
" <td>no</td>\n",
|
259 |
+
" <td>1.0</td>\n",
|
260 |
+
" <td>...</td>\n",
|
261 |
+
" <td>352583.0</td>\n",
|
262 |
+
" <td>Timothy D. Cook</td>\n",
|
263 |
+
" <td>U.S.</td>\n",
|
264 |
+
" <td>Cupertino</td>\n",
|
265 |
+
" <td>California</td>\n",
|
266 |
+
" <td>https://www.apple.com</td>\n",
|
267 |
+
" <td>Public</td>\n",
|
268 |
+
" <td>Figures are for fiscal year ended Sept. 30, 20...</td>\n",
|
269 |
+
" <td>3594309.0</td>\n",
|
270 |
+
" <td>2024-08-05</td>\n",
|
271 |
+
" </tr>\n",
|
272 |
+
" <tr>\n",
|
273 |
+
" <th>3</th>\n",
|
274 |
+
" <td>4</td>\n",
|
275 |
+
" <td>UnitedHealth Group</td>\n",
|
276 |
+
" <td>UNH</td>\n",
|
277 |
+
" <td>Health Care</td>\n",
|
278 |
+
" <td>Health Care: Insurance and Managed Care</td>\n",
|
279 |
+
" <td>yes</td>\n",
|
280 |
+
" <td>no</td>\n",
|
281 |
+
" <td>no</td>\n",
|
282 |
+
" <td>yes</td>\n",
|
283 |
+
" <td>1.0</td>\n",
|
284 |
+
" <td>...</td>\n",
|
285 |
+
" <td>273720.0</td>\n",
|
286 |
+
" <td>Andrew P. Witty</td>\n",
|
287 |
+
" <td>U.S.</td>\n",
|
288 |
+
" <td>Minnetonka</td>\n",
|
289 |
+
" <td>Minnesota</td>\n",
|
290 |
+
" <td>https://www.unitedhealthgroup.com</td>\n",
|
291 |
+
" <td>Public</td>\n",
|
292 |
+
" <td>Market value as of July 15, 2024.</td>\n",
|
293 |
+
" <td>474339.0</td>\n",
|
294 |
+
" <td>2024-08-05</td>\n",
|
295 |
+
" </tr>\n",
|
296 |
+
" <tr>\n",
|
297 |
+
" <th>4</th>\n",
|
298 |
+
" <td>5</td>\n",
|
299 |
+
" <td>Berkshire Hathaway</td>\n",
|
300 |
+
" <td>BRKA</td>\n",
|
301 |
+
" <td>Financials</td>\n",
|
302 |
+
" <td>Insurance: Property and Casualty (Stock)</td>\n",
|
303 |
+
" <td>yes</td>\n",
|
304 |
+
" <td>no</td>\n",
|
305 |
+
" <td>no</td>\n",
|
306 |
+
" <td>yes</td>\n",
|
307 |
+
" <td>2.0</td>\n",
|
308 |
+
" <td>...</td>\n",
|
309 |
+
" <td>1069978.0</td>\n",
|
310 |
+
" <td>Warren E. Buffett</td>\n",
|
311 |
+
" <td>U.S.</td>\n",
|
312 |
+
" <td>Omaha</td>\n",
|
313 |
+
" <td>Nebraska</td>\n",
|
314 |
+
" <td>https://www.berkshirehathaway.com</td>\n",
|
315 |
+
" <td>Public</td>\n",
|
316 |
+
" <td>Market value as of July 15, 2024.</td>\n",
|
317 |
+
" <td>937028.0</td>\n",
|
318 |
+
" <td>2024-08-05</td>\n",
|
319 |
+
" </tr>\n",
|
320 |
+
" <tr>\n",
|
321 |
+
" <th>...</th>\n",
|
322 |
+
" <td>...</td>\n",
|
323 |
+
" <td>...</td>\n",
|
324 |
+
" <td>...</td>\n",
|
325 |
+
" <td>...</td>\n",
|
326 |
+
" <td>...</td>\n",
|
327 |
+
" <td>...</td>\n",
|
328 |
+
" <td>...</td>\n",
|
329 |
+
" <td>...</td>\n",
|
330 |
+
" <td>...</td>\n",
|
331 |
+
" <td>...</td>\n",
|
332 |
+
" <td>...</td>\n",
|
333 |
+
" <td>...</td>\n",
|
334 |
+
" <td>...</td>\n",
|
335 |
+
" <td>...</td>\n",
|
336 |
+
" <td>...</td>\n",
|
337 |
+
" <td>...</td>\n",
|
338 |
+
" <td>...</td>\n",
|
339 |
+
" <td>...</td>\n",
|
340 |
+
" <td>...</td>\n",
|
341 |
+
" <td>...</td>\n",
|
342 |
+
" <td>...</td>\n",
|
343 |
+
" </tr>\n",
|
344 |
+
" <tr>\n",
|
345 |
+
" <th>995</th>\n",
|
346 |
+
" <td>996</td>\n",
|
347 |
+
" <td>Allegiant Travel</td>\n",
|
348 |
+
" <td>ALGT</td>\n",
|
349 |
+
" <td>Transportation</td>\n",
|
350 |
+
" <td>Airlines</td>\n",
|
351 |
+
" <td>yes</td>\n",
|
352 |
+
" <td>no</td>\n",
|
353 |
+
" <td>no</td>\n",
|
354 |
+
" <td>yes</td>\n",
|
355 |
+
" <td>0.0</td>\n",
|
356 |
+
" <td>...</td>\n",
|
357 |
+
" <td>4869.4</td>\n",
|
358 |
+
" <td>Maurice J. Gallagher Jr.</td>\n",
|
359 |
+
" <td>U.S.</td>\n",
|
360 |
+
" <td>Las Vegas</td>\n",
|
361 |
+
" <td>Nevada</td>\n",
|
362 |
+
" <td>https://www.allegiant.com</td>\n",
|
363 |
+
" <td>Public</td>\n",
|
364 |
+
" <td>Market value as of March 28, 2024.</td>\n",
|
365 |
+
" <td>1375.0</td>\n",
|
366 |
+
" <td>2024-06-04</td>\n",
|
367 |
+
" </tr>\n",
|
368 |
+
" <tr>\n",
|
369 |
+
" <th>996</th>\n",
|
370 |
+
" <td>997</td>\n",
|
371 |
+
" <td>Dropbox</td>\n",
|
372 |
+
" <td>DBX</td>\n",
|
373 |
+
" <td>Technology</td>\n",
|
374 |
+
" <td>Computer Software</td>\n",
|
375 |
+
" <td>yes</td>\n",
|
376 |
+
" <td>yes</td>\n",
|
377 |
+
" <td>no</td>\n",
|
378 |
+
" <td>no</td>\n",
|
379 |
+
" <td>0.0</td>\n",
|
380 |
+
" <td>...</td>\n",
|
381 |
+
" <td>2983.5</td>\n",
|
382 |
+
" <td>Andrew W. Houston</td>\n",
|
383 |
+
" <td>U.S.</td>\n",
|
384 |
+
" <td>San Francisco</td>\n",
|
385 |
+
" <td>California</td>\n",
|
386 |
+
" <td>https://www.dropbox.com</td>\n",
|
387 |
+
" <td>Public</td>\n",
|
388 |
+
" <td>Market value as of March 28, 2024.</td>\n",
|
389 |
+
" <td>8359.0</td>\n",
|
390 |
+
" <td>2024-06-04</td>\n",
|
391 |
+
" </tr>\n",
|
392 |
+
" <tr>\n",
|
393 |
+
" <th>997</th>\n",
|
394 |
+
" <td>998</td>\n",
|
395 |
+
" <td>Exact Sciences</td>\n",
|
396 |
+
" <td>EXAS</td>\n",
|
397 |
+
" <td>Health Care</td>\n",
|
398 |
+
" <td>Pharmaceuticals</td>\n",
|
399 |
+
" <td>no</td>\n",
|
400 |
+
" <td>no</td>\n",
|
401 |
+
" <td>no</td>\n",
|
402 |
+
" <td>yes</td>\n",
|
403 |
+
" <td>0.0</td>\n",
|
404 |
+
" <td>...</td>\n",
|
405 |
+
" <td>6471.3</td>\n",
|
406 |
+
" <td>Kevin T. Conroy</td>\n",
|
407 |
+
" <td>U.S.</td>\n",
|
408 |
+
" <td>Madison</td>\n",
|
409 |
+
" <td>Wisconsin</td>\n",
|
410 |
+
" <td>https://www.exactsciences.com</td>\n",
|
411 |
+
" <td>Public</td>\n",
|
412 |
+
" <td>Market value as of March 28, 2024.</td>\n",
|
413 |
+
" <td>12537.0</td>\n",
|
414 |
+
" <td>2024-06-04</td>\n",
|
415 |
+
" </tr>\n",
|
416 |
+
" <tr>\n",
|
417 |
+
" <th>998</th>\n",
|
418 |
+
" <td>999</td>\n",
|
419 |
+
" <td>BWX Technologies</td>\n",
|
420 |
+
" <td>BWXT</td>\n",
|
421 |
+
" <td>Aerospace & Defense</td>\n",
|
422 |
+
" <td>Aerospace & Defense</td>\n",
|
423 |
+
" <td>yes</td>\n",
|
424 |
+
" <td>no</td>\n",
|
425 |
+
" <td>no</td>\n",
|
426 |
+
" <td>yes</td>\n",
|
427 |
+
" <td>0.0</td>\n",
|
428 |
+
" <td>...</td>\n",
|
429 |
+
" <td>2747.1</td>\n",
|
430 |
+
" <td>Rex D. Geveden</td>\n",
|
431 |
+
" <td>U.S.</td>\n",
|
432 |
+
" <td>Lynchburg</td>\n",
|
433 |
+
" <td>Virginia</td>\n",
|
434 |
+
" <td>https://www.bwxt.com</td>\n",
|
435 |
+
" <td>Public</td>\n",
|
436 |
+
" <td>Market value as of March 28, 2024.</td>\n",
|
437 |
+
" <td>9380.0</td>\n",
|
438 |
+
" <td>2024-06-04</td>\n",
|
439 |
+
" </tr>\n",
|
440 |
+
" <tr>\n",
|
441 |
+
" <th>999</th>\n",
|
442 |
+
" <td>1000</td>\n",
|
443 |
+
" <td>Clear Channel Outdoor Hldgs.</td>\n",
|
444 |
+
" <td>CCO</td>\n",
|
445 |
+
" <td>Business Services</td>\n",
|
446 |
+
" <td>Advertising, marketing</td>\n",
|
447 |
+
" <td>no</td>\n",
|
448 |
+
" <td>no</td>\n",
|
449 |
+
" <td>no</td>\n",
|
450 |
+
" <td>no</td>\n",
|
451 |
+
" <td>-10.0</td>\n",
|
452 |
+
" <td>...</td>\n",
|
453 |
+
" <td>4722.5</td>\n",
|
454 |
+
" <td>Scott R. Wells</td>\n",
|
455 |
+
" <td>U.S.</td>\n",
|
456 |
+
" <td>San Antonio</td>\n",
|
457 |
+
" <td>Texas</td>\n",
|
458 |
+
" <td>https://www.clearchanneloutdoor.com</td>\n",
|
459 |
+
" <td>Public</td>\n",
|
460 |
+
" <td>Includes revenues from discontinued operations...</td>\n",
|
461 |
+
" <td>798.0</td>\n",
|
462 |
+
" <td>2024-06-04</td>\n",
|
463 |
+
" </tr>\n",
|
464 |
+
" </tbody>\n",
|
465 |
+
"</table>\n",
|
466 |
+
"<p>1000 rows × 32 columns</p>\n",
|
467 |
+
"</div>"
|
468 |
+
],
|
469 |
+
"text/plain": [
|
470 |
+
" Rank Company Ticker Sector \\\n",
|
471 |
+
"0 1 Walmart WMT Retailing \n",
|
472 |
+
"1 2 Amazon AMZN Retailing \n",
|
473 |
+
"2 3 Apple AAPL Technology \n",
|
474 |
+
"3 4 UnitedHealth Group UNH Health Care \n",
|
475 |
+
"4 5 Berkshire Hathaway BRKA Financials \n",
|
476 |
+
".. ... ... ... ... \n",
|
477 |
+
"995 996 Allegiant Travel ALGT Transportation \n",
|
478 |
+
"996 997 Dropbox DBX Technology \n",
|
479 |
+
"997 998 Exact Sciences EXAS Health Care \n",
|
480 |
+
"998 999 BWX Technologies BWXT Aerospace & Defense \n",
|
481 |
+
"999 1000 Clear Channel Outdoor Hldgs. CCO Business Services \n",
|
482 |
+
"\n",
|
483 |
+
" Industry Profitable Founder_is_CEO \\\n",
|
484 |
+
"0 General Merchandisers yes no \n",
|
485 |
+
"1 Internet Services and Retailing yes no \n",
|
486 |
+
"2 Computers, Office Equipment yes no \n",
|
487 |
+
"3 Health Care: Insurance and Managed Care yes no \n",
|
488 |
+
"4 Insurance: Property and Casualty (Stock) yes no \n",
|
489 |
+
".. ... ... ... \n",
|
490 |
+
"995 Airlines yes no \n",
|
491 |
+
"996 Computer Software yes yes \n",
|
492 |
+
"997 Pharmaceuticals no no \n",
|
493 |
+
"998 Aerospace & Defense yes no \n",
|
494 |
+
"999 Advertising, marketing no no \n",
|
495 |
+
"\n",
|
496 |
+
" FemaleCEO Growth_in_Jobs Change_in_Rank ... Assets_M \\\n",
|
497 |
+
"0 no no 0.0 ... 252399.0 \n",
|
498 |
+
"1 no no 0.0 ... 527854.0 \n",
|
499 |
+
"2 no no 1.0 ... 352583.0 \n",
|
500 |
+
"3 no yes 1.0 ... 273720.0 \n",
|
501 |
+
"4 no yes 2.0 ... 1069978.0 \n",
|
502 |
+
".. ... ... ... ... ... \n",
|
503 |
+
"995 no yes 0.0 ... 4869.4 \n",
|
504 |
+
"996 no no 0.0 ... 2983.5 \n",
|
505 |
+
"997 no yes 0.0 ... 6471.3 \n",
|
506 |
+
"998 no yes 0.0 ... 2747.1 \n",
|
507 |
+
"999 no no -10.0 ... 4722.5 \n",
|
508 |
+
"\n",
|
509 |
+
" CEO Country HeadquartersCity HeadquartersState \\\n",
|
510 |
+
"0 C. Douglas McMillon U.S. Bentonville Arkansas \n",
|
511 |
+
"1 Andrew R. Jassy U.S. Seattle Washington \n",
|
512 |
+
"2 Timothy D. Cook U.S. Cupertino California \n",
|
513 |
+
"3 Andrew P. Witty U.S. Minnetonka Minnesota \n",
|
514 |
+
"4 Warren E. Buffett U.S. Omaha Nebraska \n",
|
515 |
+
".. ... ... ... ... \n",
|
516 |
+
"995 Maurice J. Gallagher Jr. U.S. Las Vegas Nevada \n",
|
517 |
+
"996 Andrew W. Houston U.S. San Francisco California \n",
|
518 |
+
"997 Kevin T. Conroy U.S. Madison Wisconsin \n",
|
519 |
+
"998 Rex D. Geveden U.S. Lynchburg Virginia \n",
|
520 |
+
"999 Scott R. Wells U.S. San Antonio Texas \n",
|
521 |
+
"\n",
|
522 |
+
" Website CompanyType \\\n",
|
523 |
+
"0 https://www.stock.walmart.com Public \n",
|
524 |
+
"1 https://www.amazon.com Public \n",
|
525 |
+
"2 https://www.apple.com Public \n",
|
526 |
+
"3 https://www.unitedhealthgroup.com Public \n",
|
527 |
+
"4 https://www.berkshirehathaway.com Public \n",
|
528 |
+
".. ... ... \n",
|
529 |
+
"995 https://www.allegiant.com Public \n",
|
530 |
+
"996 https://www.dropbox.com Public \n",
|
531 |
+
"997 https://www.exactsciences.com Public \n",
|
532 |
+
"998 https://www.bwxt.com Public \n",
|
533 |
+
"999 https://www.clearchanneloutdoor.com Public \n",
|
534 |
+
"\n",
|
535 |
+
" Footnote MarketCap_Updated_M \\\n",
|
536 |
+
"0 Figures are for fiscal year ended Jan. 31, 202... 559911.0 \n",
|
537 |
+
"1 Market value as of July 15, 2024. 2005565.0 \n",
|
538 |
+
"2 Figures are for fiscal year ended Sept. 30, 20... 3594309.0 \n",
|
539 |
+
"3 Market value as of July 15, 2024. 474339.0 \n",
|
540 |
+
"4 Market value as of July 15, 2024. 937028.0 \n",
|
541 |
+
".. ... ... \n",
|
542 |
+
"995 Market value as of March 28, 2024. 1375.0 \n",
|
543 |
+
"996 Market value as of March 28, 2024. 8359.0 \n",
|
544 |
+
"997 Market value as of March 28, 2024. 12537.0 \n",
|
545 |
+
"998 Market value as of March 28, 2024. 9380.0 \n",
|
546 |
+
"999 Includes revenues from discontinued operations... 798.0 \n",
|
547 |
+
"\n",
|
548 |
+
" Updated \n",
|
549 |
+
"0 2024-08-05 \n",
|
550 |
+
"1 2024-08-05 \n",
|
551 |
+
"2 2024-08-05 \n",
|
552 |
+
"3 2024-08-05 \n",
|
553 |
+
"4 2024-08-05 \n",
|
554 |
+
".. ... \n",
|
555 |
+
"995 2024-06-04 \n",
|
556 |
+
"996 2024-06-04 \n",
|
557 |
+
"997 2024-06-04 \n",
|
558 |
+
"998 2024-06-04 \n",
|
559 |
+
"999 2024-06-04 \n",
|
560 |
+
"\n",
|
561 |
+
"[1000 rows x 32 columns]"
|
562 |
+
]
|
563 |
+
},
|
564 |
+
"execution_count": 10,
|
565 |
+
"metadata": {},
|
566 |
+
"output_type": "execute_result"
|
567 |
+
}
|
568 |
+
],
|
569 |
+
"source": [
|
570 |
+
"test_dataset.to_pandas()"
|
571 |
+
]
|
572 |
+
},
|
573 |
+
{
|
574 |
+
"cell_type": "code",
|
575 |
+
"execution_count": null,
|
576 |
+
"metadata": {},
|
577 |
+
"outputs": [],
|
578 |
+
"source": []
|
579 |
+
}
|
580 |
+
],
|
581 |
+
"metadata": {
|
582 |
+
"kernelspec": {
|
583 |
+
"display_name": "base",
|
584 |
+
"language": "python",
|
585 |
+
"name": "python3"
|
586 |
+
},
|
587 |
+
"language_info": {
|
588 |
+
"codemirror_mode": {
|
589 |
+
"name": "ipython",
|
590 |
+
"version": 3
|
591 |
+
},
|
592 |
+
"file_extension": ".py",
|
593 |
+
"mimetype": "text/x-python",
|
594 |
+
"name": "python",
|
595 |
+
"nbconvert_exporter": "python",
|
596 |
+
"pygments_lexer": "ipython3",
|
597 |
+
"version": "3.12.4"
|
598 |
+
}
|
599 |
+
},
|
600 |
+
"nbformat": 4,
|
601 |
+
"nbformat_minor": 2
|
602 |
+
}
|
fortune1000_2024.csv → train.csv
RENAMED
File without changes
|