mieszkania5/Lab1_zad2.ipynb

2 lines
71 KiB
Plaintext
Raw Normal View History

2023-10-17 18:14:15 +02:00
{"cells":[{"cell_type":"code","execution_count":232,"metadata":{"executionInfo":{"elapsed":422,"status":"ok","timestamp":1696951840697,"user":{"displayName":"Aneta Tlałka","userId":"13389112088336863360"},"user_tz":-120},"id":"veKEtGweNaXi"},"outputs":[],"source":["import pandas as pd\n","import numpy as np\n","import joblib\n"]},{"cell_type":"code","execution_count":191,"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"executionInfo":{"elapsed":4,"status":"ok","timestamp":1696952151344,"user":{"displayName":"Aneta Tlałka","userId":"13389112088336863360"},"user_tz":-120},"id":"w7poi-MONhxI","outputId":"379c3cbe-96bc-4d7e-d27f-dd56d02a817b"},"outputs":[],"source":["df_train = pd.read_csv('train.tsv', sep='\\t', header=None)"]},{"cell_type":"code","execution_count":192,"metadata":{"executionInfo":{"elapsed":226,"status":"ok","timestamp":1696952356655,"user":{"displayName":"Aneta Tlałka","userId":"13389112088336863360"},"user_tz":-120},"id":"8vT9n8oCPIhS"},"outputs":[],"source":["pd.set_option('display.max_columns', 500)"]},{"cell_type":"code","execution_count":193,"metadata":{"colab":{"base_uri":"https://localhost:8080/","height":643},"executionInfo":{"elapsed":254,"status":"ok","timestamp":1696952363298,"user":{"displayName":"Aneta Tlałka","userId":"13389112088336863360"},"user_tz":-120},"id":"hbfWxhoOOeQH","outputId":"3a4608d9-8d37-47c3-b28e-d64be0c43e2d"},"outputs":[{"data":{"text/html":["<div>\n","<style scoped>\n"," .dataframe tbody tr th:only-of-type {\n"," vertical-align: middle;\n"," }\n","\n"," .dataframe tbody tr th {\n"," vertical-align: top;\n"," }\n","\n"," .dataframe thead th {\n"," text-align: right;\n"," }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n"," <thead>\n"," <tr style=\"text-align: right;\">\n"," <th></th>\n"," <th>0</th>\n"," <th>1</th>\n"," <th>2</th>\n"," <th>3</th>\n"," <th>4</th>\n"," <th>5</th>\n"," <th>6</th>\n"," <th>7</th>\n"," <th>8</th>\n"," <th>9</th>\n"," <th>10</th>\n"," <th>11</th>\n"," <th>12</th>\n"," <th>13</th>\n"," <th>14</th>\n"," <th>15</th>\n"," <th>16</th>\n"," <th>17</th>\n"," <th>18</th>\n"," <th>19</th>\n"," <th>20</th>\n"," <th>21</th>\n"," <th>22</th>\n"," <th>23</th>\n"," <th>24</th>\n"," <th>25</th>\n"," </tr>\n"," </thead>\n"," <tbody>\n"," <tr>\n"," <th>0</th>\n"," <td>309000.0</td>\n"," <td>do zamieszkania</td>\n"," <td>390 zł</td>\n"," <td>spółdzielcze własnościowe</td>\n"," <td>7113</td>\n"," <td>https://www.otodom.pl/oferta/niezalezny-uklad-...</td>\n"," <td>2</td>\n"," <td>NaN</td>\n"," <td>43.44</td>\n"," <td>wtórny</td>\n"," <td>4.0</td>\n"," <td>blok</td>\n"," <td>NaN</td>\n"," <td>NaN</td>\n"," <td>Niezależny Układ W Nowoczesnym Wydaniu</td>\n"," <td>1</td>\n"," <td>NaN</td>\n"," <td>gazowe</td>\n"," <td>plastikowe</td>\n"," <td>NaN</td>\n"," <td>NaN</td>\n"," <td>NaN</td>\n"," <td>cegła</td>\n"," <td>Polecamy na sprzedaż dwupokojowe mieszkanie p...</td>\n"," <td>NaN</td>\n"," <td>telewizja kablowa, internet, meble, piwnica, g...</td>\n"," </tr>\n"," <tr>\n"," <th>1</th>\n"," <td>314900.0</td>\n"," <td>do wykończenia</td>\n"," <td>NaN</td>\n"," <td>pełna własność</td>\n"," <td>7392</td>\n"," <td>https://www.otodom.pl/oferta/urokliwe-mieszkan...</td>\n"," <td>2</td>\n"," <td>NaN</td>\n"," <td>42.60</td>\n"," <td>pierwotny</td>\n"," <td>2.0</td>\n"," <td>blok</td>\n"," <td>NaN</td>\n"," <td>NaN</td>\n"," <td>Urokliwe mieszkanie 2 pokojowe Strzeszyn</td>\n"," <td>1</td>\n"," <td>NaN</td>\n"," <td>gazowe</td>\n"," <td>plastikowe</td>\n"," <td>NaN</td>\n"," <td>NaN</td>\n"," <td>NaN</td>\n"," <td>cegła</td>\n"," <td>Kameralne 2 pokojowe mieszkanie z aneksem kuc...</td>\n","