Created
June 21, 2020 12:55
-
-
Save karakanb/408bb4e8be98c86ba19a643b511eafab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "cells": [ | |
| { | |
| "cell_type": "code", | |
| "execution_count": 1, | |
| "metadata": {}, | |
| "outputs": [], | |
| "source": [ | |
| "import pandas as pd" | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": 3, | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<div>\n", | |
| "<style scoped>\n", | |
| " .dataframe tbody tr th:only-of-type {\n", | |
| " vertical-align: middle;\n", | |
| " }\n", | |
| "\n", | |
| " .dataframe tbody tr th {\n", | |
| " vertical-align: top;\n", | |
| " }\n", | |
| "\n", | |
| " .dataframe thead th {\n", | |
| " text-align: right;\n", | |
| " }\n", | |
| "</style>\n", | |
| "<table border=\"1\" class=\"dataframe\">\n", | |
| " <thead>\n", | |
| " <tr style=\"text-align: right;\">\n", | |
| " <th></th>\n", | |
| " <th>Country</th>\n", | |
| " <th>Region</th>\n", | |
| " </tr>\n", | |
| " </thead>\n", | |
| " <tbody>\n", | |
| " <tr>\n", | |
| " <th>0</th>\n", | |
| " <td>Algeria</td>\n", | |
| " <td>AFRICA</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| " <th>1</th>\n", | |
| " <td>Angola</td>\n", | |
| " <td>AFRICA</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| " <th>2</th>\n", | |
| " <td>Benin</td>\n", | |
| " <td>AFRICA</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| " <th>3</th>\n", | |
| " <td>Botswana</td>\n", | |
| " <td>AFRICA</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| " <th>4</th>\n", | |
| " <td>Burkina</td>\n", | |
| " <td>AFRICA</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| " <th>...</th>\n", | |
| " <td>...</td>\n", | |
| " <td>...</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| " <th>189</th>\n", | |
| " <td>Paraguay</td>\n", | |
| " <td>SOUTH AMERICA</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| " <th>190</th>\n", | |
| " <td>Peru</td>\n", | |
| " <td>SOUTH AMERICA</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| " <th>191</th>\n", | |
| " <td>Suriname</td>\n", | |
| " <td>SOUTH AMERICA</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| " <th>192</th>\n", | |
| " <td>Uruguay</td>\n", | |
| " <td>SOUTH AMERICA</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| " <th>193</th>\n", | |
| " <td>Venezuela</td>\n", | |
| " <td>SOUTH AMERICA</td>\n", | |
| " </tr>\n", | |
| " </tbody>\n", | |
| "</table>\n", | |
| "<p>194 rows × 2 columns</p>\n", | |
| "</div>" | |
| ], | |
| "text/plain": [ | |
| " Country Region\n", | |
| "0 Algeria AFRICA\n", | |
| "1 Angola AFRICA\n", | |
| "2 Benin AFRICA\n", | |
| "3 Botswana AFRICA\n", | |
| "4 Burkina AFRICA\n", | |
| ".. ... ...\n", | |
| "189 Paraguay SOUTH AMERICA\n", | |
| "190 Peru SOUTH AMERICA\n", | |
| "191 Suriname SOUTH AMERICA\n", | |
| "192 Uruguay SOUTH AMERICA\n", | |
| "193 Venezuela SOUTH AMERICA\n", | |
| "\n", | |
| "[194 rows x 2 columns]" | |
| ] | |
| }, | |
| "execution_count": 3, | |
| "metadata": {}, | |
| "output_type": "execute_result" | |
| } | |
| ], | |
| "source": [ | |
| "url = \"https://raw.githubusercontent.com/cs109/2014_data/master/countries.csv\"\n", | |
| "pd.read_csv(url)" | |
| ] | |
| } | |
| ], | |
| "metadata": { | |
| "kernelspec": { | |
| "display_name": "Python 3", | |
| "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.7.6" | |
| } | |
| }, | |
| "nbformat": 4, | |
| "nbformat_minor": 4 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment