text_html_output_1.png
import pandas as pd

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

import seaborn as sns

gdp = pd.read_csv('../input/worldGDP_growth2.csv', encoding='ISO-8859-1')

movie = pd.read_csv('../input/movie_metadata.csv')

gdp_stats= gdp.describe().T

budget = movie[movie['budget'] < 300000000]
budget = budget[budget['budget'].isnull() == False]

budget = pd.concat([budget['title_year'], budget['budget']], axis=1)

budget = budget.dropna(axis=0)

budget = budget[budget['title_year'] > 1960]

gdp_stats = gdp_stats.reset_index()
gdp_stats = gdp_stats.dropna()

df = gdp_stats.copy()

df['index'] = df['index'].astype(str).astype(int)
df = df.rename(columns={'index': 'title_year'})
df = df.rename(columns={'mean': 'growth_rate'})

gross = movie[['title_year', 'gross']].dropna(axis=0)
gross = gross[gross['title_year'] > 1960]

temp = pd.concat([df['growth_rate'], gross['gross']], axis=1)

temp = temp.dropna()

temp['gross'] = temp['gross'] / 100000
temp.head()