text_plain_output_1.png
import pandas as pd

fruits = pd.DataFrame({'Apples': [30, 50, 40], 'Bananas': [21, 10, 15]})
fruits

fruits_1 = pd.DataFrame({'Apples': [30, 50, 40], 'Bananas': [21, 10, 15]}, index=['January', 'February', 'March'])
fruits_1

fruits_2 = pd.DataFrame([[60, 35], [5, 15], [21, 36]], columns=['Apples', 'Bananas'], index=['April', 'May', 'June'])
fruits_2

items_AB = pd.DataFrame([[30, 21], [50, 10], [40, 15]], columns=list('AB'), index=['January', 'February', 'March'])
items_AB

pd.Series([1981, 5.2, 'Ann', 20000])

pd.Series([1981, 5.2, 'Ann', 2000], index=['Birth Year', 'Height', 'First Name', 'Paid'], name='Customer Details')

file_path = '../input/wine-reviews/winemag-data-130k-v2.csv'
wine_reviews = pd.read_csv(file_path)
wine_reviews

wine_reviews = pd.read_csv(file_path, index_col=0)
wine_reviews

wine_reviews.shape

wine_reviews.columns

wine_reviews.columns[0]

wine_reviews.country.unique()

wine_reviews.country.value_counts()

wine_reviews.iloc[5]

wine_reviews.iloc[:, 4]