{ "cells": [ { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Requirement already satisfied: datasets in /opt/anaconda3/lib/python3.12/site-packages (2.21.0)\n", "Requirement already satisfied: filelock in /opt/anaconda3/lib/python3.12/site-packages (from datasets) (3.13.1)\n", "Requirement already satisfied: numpy>=1.17 in /opt/anaconda3/lib/python3.12/site-packages (from datasets) (1.26.4)\n", "Requirement already satisfied: pyarrow>=15.0.0 in /opt/anaconda3/lib/python3.12/site-packages (from datasets) (17.0.0)\n", "Requirement already satisfied: dill<0.3.9,>=0.3.0 in /opt/anaconda3/lib/python3.12/site-packages (from datasets) (0.3.8)\n", "Requirement already satisfied: pandas in /opt/anaconda3/lib/python3.12/site-packages (from datasets) (2.2.2)\n", "Requirement already satisfied: requests>=2.32.2 in /opt/anaconda3/lib/python3.12/site-packages (from datasets) (2.32.2)\n", "Requirement already satisfied: tqdm>=4.66.3 in /opt/anaconda3/lib/python3.12/site-packages (from datasets) (4.66.4)\n", "Requirement already satisfied: xxhash in /opt/anaconda3/lib/python3.12/site-packages (from datasets) (3.5.0)\n", "Requirement already satisfied: multiprocess in /opt/anaconda3/lib/python3.12/site-packages (from datasets) (0.70.16)\n", "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", "Requirement already satisfied: aiohttp in /opt/anaconda3/lib/python3.12/site-packages (from datasets) (3.9.5)\n", "Requirement already satisfied: huggingface-hub>=0.21.2 in /opt/anaconda3/lib/python3.12/site-packages (from datasets) (0.24.6)\n", "Requirement already satisfied: packaging in /opt/anaconda3/lib/python3.12/site-packages (from datasets) (23.2)\n", "Requirement already satisfied: pyyaml>=5.1 in /opt/anaconda3/lib/python3.12/site-packages (from datasets) (6.0.1)\n", "Requirement already satisfied: aiosignal>=1.1.2 in /opt/anaconda3/lib/python3.12/site-packages (from aiohttp->datasets) (1.2.0)\n", "Requirement already satisfied: attrs>=17.3.0 in /opt/anaconda3/lib/python3.12/site-packages (from aiohttp->datasets) (23.1.0)\n", "Requirement already satisfied: frozenlist>=1.1.1 in /opt/anaconda3/lib/python3.12/site-packages (from aiohttp->datasets) (1.4.0)\n", "Requirement already satisfied: multidict<7.0,>=4.5 in /opt/anaconda3/lib/python3.12/site-packages (from aiohttp->datasets) (6.0.4)\n", "Requirement already satisfied: yarl<2.0,>=1.0 in /opt/anaconda3/lib/python3.12/site-packages (from aiohttp->datasets) (1.9.3)\n", "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", "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", "Requirement already satisfied: idna<4,>=2.5 in /opt/anaconda3/lib/python3.12/site-packages (from requests>=2.32.2->datasets) (3.7)\n", "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", "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", "Requirement already satisfied: python-dateutil>=2.8.2 in /opt/anaconda3/lib/python3.12/site-packages (from pandas->datasets) (2.9.0.post0)\n", "Requirement already satisfied: pytz>=2020.1 in /opt/anaconda3/lib/python3.12/site-packages (from pandas->datasets) (2024.1)\n", "Requirement already satisfied: tzdata>=2022.7 in /opt/anaconda3/lib/python3.12/site-packages (from pandas->datasets) (2023.3)\n", "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", "Requirement already satisfied: pandas in /opt/anaconda3/lib/python3.12/site-packages (2.2.2)\n", "Requirement already satisfied: numpy>=1.26.0 in /opt/anaconda3/lib/python3.12/site-packages (from pandas) (1.26.4)\n", "Requirement already satisfied: python-dateutil>=2.8.2 in /opt/anaconda3/lib/python3.12/site-packages (from pandas) (2.9.0.post0)\n", "Requirement already satisfied: pytz>=2020.1 in /opt/anaconda3/lib/python3.12/site-packages (from pandas) (2024.1)\n", "Requirement already satisfied: tzdata>=2022.7 in /opt/anaconda3/lib/python3.12/site-packages (from pandas) (2023.3)\n", "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" ] } ], "source": [ "!pip install datasets\n", "!pip install pandas" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "import datasets" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "6b5bdaff002a48109bf3e939a59b89f7", "version_major": 2, "version_minor": 0 }, "text/plain": [ "Downloading readme: 0%| | 0.00/31.0 [00:00\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
RankCompanyTickerSectorIndustryProfitableFounder_is_CEOFemaleCEOGrowth_in_JobsChange_in_Rank...Assets_MCEOCountryHeadquartersCityHeadquartersStateWebsiteCompanyTypeFootnoteMarketCap_Updated_MUpdated
01WalmartWMTRetailingGeneral Merchandisersyesnonono0.0...252399.0C. Douglas McMillonU.S.BentonvilleArkansashttps://www.stock.walmart.comPublicFigures are for fiscal year ended Jan. 31, 202...559911.02024-08-05
12AmazonAMZNRetailingInternet Services and Retailingyesnonono0.0...527854.0Andrew R. JassyU.S.SeattleWashingtonhttps://www.amazon.comPublicMarket value as of July 15, 2024.2005565.02024-08-05
23AppleAAPLTechnologyComputers, Office Equipmentyesnonono1.0...352583.0Timothy D. CookU.S.CupertinoCaliforniahttps://www.apple.comPublicFigures are for fiscal year ended Sept. 30, 20...3594309.02024-08-05
34UnitedHealth GroupUNHHealth CareHealth Care: Insurance and Managed Careyesnonoyes1.0...273720.0Andrew P. WittyU.S.MinnetonkaMinnesotahttps://www.unitedhealthgroup.comPublicMarket value as of July 15, 2024.474339.02024-08-05
45Berkshire HathawayBRKAFinancialsInsurance: Property and Casualty (Stock)yesnonoyes2.0...1069978.0Warren E. BuffettU.S.OmahaNebraskahttps://www.berkshirehathaway.comPublicMarket value as of July 15, 2024.937028.02024-08-05
..................................................................
995996Allegiant TravelALGTTransportationAirlinesyesnonoyes0.0...4869.4Maurice J. Gallagher Jr.U.S.Las VegasNevadahttps://www.allegiant.comPublicMarket value as of March 28, 2024.1375.02024-06-04
996997DropboxDBXTechnologyComputer Softwareyesyesnono0.0...2983.5Andrew W. HoustonU.S.San FranciscoCaliforniahttps://www.dropbox.comPublicMarket value as of March 28, 2024.8359.02024-06-04
997998Exact SciencesEXASHealth CarePharmaceuticalsnononoyes0.0...6471.3Kevin T. ConroyU.S.MadisonWisconsinhttps://www.exactsciences.comPublicMarket value as of March 28, 2024.12537.02024-06-04
998999BWX TechnologiesBWXTAerospace & DefenseAerospace & Defenseyesnonoyes0.0...2747.1Rex D. GevedenU.S.LynchburgVirginiahttps://www.bwxt.comPublicMarket value as of March 28, 2024.9380.02024-06-04
9991000Clear Channel Outdoor Hldgs.CCOBusiness ServicesAdvertising, marketingnononono-10.0...4722.5Scott R. WellsU.S.San AntonioTexashttps://www.clearchanneloutdoor.comPublicIncludes revenues from discontinued operations...798.02024-06-04
\n", "

1000 rows × 32 columns

\n", "" ], "text/plain": [ " Rank Company Ticker Sector \\\n", "0 1 Walmart WMT Retailing \n", "1 2 Amazon AMZN Retailing \n", "2 3 Apple AAPL Technology \n", "3 4 UnitedHealth Group UNH Health Care \n", "4 5 Berkshire Hathaway BRKA Financials \n", ".. ... ... ... ... \n", "995 996 Allegiant Travel ALGT Transportation \n", "996 997 Dropbox DBX Technology \n", "997 998 Exact Sciences EXAS Health Care \n", "998 999 BWX Technologies BWXT Aerospace & Defense \n", "999 1000 Clear Channel Outdoor Hldgs. CCO Business Services \n", "\n", " Industry Profitable Founder_is_CEO \\\n", "0 General Merchandisers yes no \n", "1 Internet Services and Retailing yes no \n", "2 Computers, Office Equipment yes no \n", "3 Health Care: Insurance and Managed Care yes no \n", "4 Insurance: Property and Casualty (Stock) yes no \n", ".. ... ... ... \n", "995 Airlines yes no \n", "996 Computer Software yes yes \n", "997 Pharmaceuticals no no \n", "998 Aerospace & Defense yes no \n", "999 Advertising, marketing no no \n", "\n", " FemaleCEO Growth_in_Jobs Change_in_Rank ... Assets_M \\\n", "0 no no 0.0 ... 252399.0 \n", "1 no no 0.0 ... 527854.0 \n", "2 no no 1.0 ... 352583.0 \n", "3 no yes 1.0 ... 273720.0 \n", "4 no yes 2.0 ... 1069978.0 \n", ".. ... ... ... ... ... \n", "995 no yes 0.0 ... 4869.4 \n", "996 no no 0.0 ... 2983.5 \n", "997 no yes 0.0 ... 6471.3 \n", "998 no yes 0.0 ... 2747.1 \n", "999 no no -10.0 ... 4722.5 \n", "\n", " CEO Country HeadquartersCity HeadquartersState \\\n", "0 C. Douglas McMillon U.S. Bentonville Arkansas \n", "1 Andrew R. Jassy U.S. Seattle Washington \n", "2 Timothy D. Cook U.S. Cupertino California \n", "3 Andrew P. Witty U.S. Minnetonka Minnesota \n", "4 Warren E. Buffett U.S. Omaha Nebraska \n", ".. ... ... ... ... \n", "995 Maurice J. Gallagher Jr. U.S. Las Vegas Nevada \n", "996 Andrew W. Houston U.S. San Francisco California \n", "997 Kevin T. Conroy U.S. Madison Wisconsin \n", "998 Rex D. Geveden U.S. Lynchburg Virginia \n", "999 Scott R. Wells U.S. San Antonio Texas \n", "\n", " Website CompanyType \\\n", "0 https://www.stock.walmart.com Public \n", "1 https://www.amazon.com Public \n", "2 https://www.apple.com Public \n", "3 https://www.unitedhealthgroup.com Public \n", "4 https://www.berkshirehathaway.com Public \n", ".. ... ... \n", "995 https://www.allegiant.com Public \n", "996 https://www.dropbox.com Public \n", "997 https://www.exactsciences.com Public \n", "998 https://www.bwxt.com Public \n", "999 https://www.clearchanneloutdoor.com Public \n", "\n", " Footnote MarketCap_Updated_M \\\n", "0 Figures are for fiscal year ended Jan. 31, 202... 559911.0 \n", "1 Market value as of July 15, 2024. 2005565.0 \n", "2 Figures are for fiscal year ended Sept. 30, 20... 3594309.0 \n", "3 Market value as of July 15, 2024. 474339.0 \n", "4 Market value as of July 15, 2024. 937028.0 \n", ".. ... ... \n", "995 Market value as of March 28, 2024. 1375.0 \n", "996 Market value as of March 28, 2024. 8359.0 \n", "997 Market value as of March 28, 2024. 12537.0 \n", "998 Market value as of March 28, 2024. 9380.0 \n", "999 Includes revenues from discontinued operations... 798.0 \n", "\n", " Updated \n", "0 2024-08-05 \n", "1 2024-08-05 \n", "2 2024-08-05 \n", "3 2024-08-05 \n", "4 2024-08-05 \n", ".. ... \n", "995 2024-06-04 \n", "996 2024-06-04 \n", "997 2024-06-04 \n", "998 2024-06-04 \n", "999 2024-06-04 \n", "\n", "[1000 rows x 32 columns]" ] }, "execution_count": 10, "metadata": {}, "output_type": "execute_result" } ], "source": [ "test_dataset.to_pandas()" ] }, { "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.12.4" } }, "nbformat": 4, "nbformat_minor": 2 }