<jupyter_start><jupyter_text>Activity 5.01: Examining Relationship Between Store Location and Revenue<jupyter_code>import pandas as pd
import matplotlib.pyplot as plt, seaborn as sns

df = pd.read_csv('location_rev.csv')
df.head()
df.plot.scatter("median_income", 'revenue', figsize=[5,5])
plt.show()
import seaborn as sns
%matplotlib inline

sns.pairplot(df)
plt.show()
sns.pairplot(df,y_vars="revenue")
plt.show()
df.corr()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13406593406593406, 'fraction_numerical': 0.01098901098901099, 'mean_word_length': 7.60377358490566, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '320117', 'license': 'MIT', 'n_tokens_mistral': 186, 'n_tokens_neox': 175, 'n_words': 37, 'path': 'Chapter05/Activity 5.01.ipynb', 'repo_name': 'sespezua/Data-Science-for-Marketing-Analytics-Second-Edition', 'size': '455'}