jvns / pandas-cookbook

Recipes for using Python's pandas library
6.68k stars 2.32k forks source link

Update Chapter 5 - Combining dataframes and scraping Canadian weather… #74

Open tigranvardanyan15 opened 5 years ago

tigranvardanyan15 commented 5 years ago

… data.ipynb

The weather download url has been changed.

pmkmohan commented 5 years ago

import numpy as np import pandas as pd

countries = ['India','France','England'] # Creating two lists containing name of the country and its capital capitals = ['New Delhi','Paris','London']
arr = np.array(capitals) # Making an array with the list capitals dicts = {'a':10, 'b':20, 'c':30, 'd':40, 'e':50, 'f':60, 'g':70, 'h':80} # Defining a dictionary