-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkc_2
53 lines (53 loc) · 1.39 KB
/
kc_2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"provenance": [],
"authorship_tag": "ABX9TyMULV6aCE3fYaE47kH9ZjO9",
"include_colab_link": true
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
}
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/github/cmsmith890/data_Checks_1/blob/main/kc_2\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "1-kC8g_gs900"
},
"outputs": [],
"source": [
"import matplotlib.pyplot as plt\n",
"import pandas as pd\n",
"\n",
"data = pd.read_csv(r'c://users/cmsmi/Desktop/kar-housing-data.csv')\n",
"df = pd.DataFrame(data, columns=['city', 'price'])\n",
"print(df)\n",
"\n",
"fig, ax = plt.subplots(figsize=(500000, 100000))\n",
"ax.scatter(x = df['City'], y = df['SalePrice'])\n",
"plt.xlabel(\"Days on Market\")\n",
"plt.ylabel(\"House Price\")\n",
"\n",
"plt.show()"
]
}
]
}