{"cells":[{"cell_type":"code","source":"import pandas as pd\nimport numpy as np\nimport matplotlib.pyplot as plt\n%matplotlib inline\nfrom google.colab import drive\nimport os\ndrive.mount('/content/drive')\n# Establecer ruta de acceso en drive\nimport os\nprint(os.getcwd())\nos.chdir(\"/content/drive/My Drive\")\nprint(os.getcwd())","metadata":{"id":"yhPMn72ngWAW","colab":{"base_uri":"https://localhost:8080/"},"cell_id":"9c5af6cff7774a5ab9dc267d1f69d132","outputId":"e5bd2877-6d84-4533-84db-7072d3dd9af8","executionInfo":{"user":{"userId":"09471607480253994520","photoUrl":"https://lh3.googleusercontent.com/a-/AOh14GjvGjd5VpSUEHTxlxXRYAinh8eCspL5nxvcW9wD=s64","displayName":"David Francisco Bustos Usta"},"status":"ok","elapsed":59524,"user_tz":180,"timestamp":1647171789523},"deepnote_cell_type":"code"},"outputs":[{"output_type":"stream","name":"stdout","text":"Mounted at /content/drive\n/content\n/content/drive/My Drive\n"}],"execution_count":1},{"cell_type":"markdown","source":"# Lectura de archivos","metadata":{"id":"TPUjYGtohL7n","cell_id":"6ad0b616617c490d90774dfe48c126ff","deepnote_cell_type":"markdown"}},{"cell_type":"code","source":"train=pd.read_csv('train.csv',sep=',')\ntrain.head()","metadata":{"id":"8TFYk9q5hNHW","colab":{"height":300,"base_uri":"https://localhost:8080/"},"cell_id":"7ff2077dc60248beae8d6304a65251cf","outputId":"4ddfa4bc-8745-40b6-c902-c96d8cadb5e9","executionInfo":{"user":{"userId":"09471607480253994520","photoUrl":"https://lh3.googleusercontent.com/a-/AOh14GjvGjd5VpSUEHTxlxXRYAinh8eCspL5nxvcW9wD=s64","displayName":"David Francisco Bustos Usta"},"status":"ok","elapsed":709,"user_tz":180,"timestamp":1647171792874},"deepnote_cell_type":"code"},"outputs":[{"output_type":"execute_result","data":{"text/plain":" Id MSSubClass MSZoning LotFrontage LotArea Street Alley LotShape \\\n0 1 60 RL 65.0 8450 Pave NaN Reg \n1 2 20 RL 80.0 9600 Pave NaN Reg \n2 3 60 RL 68.0 11250 Pave NaN IR1 \n3 4 70 RL 60.0 9550 Pave NaN IR1 \n4 5 60 RL 84.0 14260 Pave NaN IR1 \n\n LandContour Utilities ... PoolArea PoolQC Fence MiscFeature MiscVal MoSold \\\n0 Lvl AllPub ... 0 NaN NaN NaN 0 2 \n1 Lvl AllPub ... 0 NaN NaN NaN 0 5 \n2 Lvl AllPub ... 0 NaN NaN NaN 0 9 \n3 Lvl AllPub ... 0 NaN NaN NaN 0 2 \n4 Lvl AllPub ... 0 NaN NaN NaN 0 12 \n\n YrSold SaleType SaleCondition SalePrice \n0 2008 WD Normal 208500 \n1 2007 WD Normal 181500 \n2 2008 WD Normal 223500 \n3 2006 WD Abnorml 140000 \n4 2008 WD Normal 250000 \n\n[5 rows x 81 columns]","text/html":"\n
\n | Id | \nMSSubClass | \nMSZoning | \nLotFrontage | \nLotArea | \nStreet | \nAlley | \nLotShape | \nLandContour | \nUtilities | \n... | \nPoolArea | \nPoolQC | \nFence | \nMiscFeature | \nMiscVal | \nMoSold | \nYrSold | \nSaleType | \nSaleCondition | \nSalePrice | \n
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n1 | \n60 | \nRL | \n65.0 | \n8450 | \nPave | \nNaN | \nReg | \nLvl | \nAllPub | \n... | \n0 | \nNaN | \nNaN | \nNaN | \n0 | \n2 | \n2008 | \nWD | \nNormal | \n208500 | \n
1 | \n2 | \n20 | \nRL | \n80.0 | \n9600 | \nPave | \nNaN | \nReg | \nLvl | \nAllPub | \n... | \n0 | \nNaN | \nNaN | \nNaN | \n0 | \n5 | \n2007 | \nWD | \nNormal | \n181500 | \n
2 | \n3 | \n60 | \nRL | \n68.0 | \n11250 | \nPave | \nNaN | \nIR1 | \nLvl | \nAllPub | \n... | \n0 | \nNaN | \nNaN | \nNaN | \n0 | \n9 | \n2008 | \nWD | \nNormal | \n223500 | \n
3 | \n4 | \n70 | \nRL | \n60.0 | \n9550 | \nPave | \nNaN | \nIR1 | \nLvl | \nAllPub | \n... | \n0 | \nNaN | \nNaN | \nNaN | \n0 | \n2 | \n2006 | \nWD | \nAbnorml | \n140000 | \n
4 | \n5 | \n60 | \nRL | \n84.0 | \n14260 | \nPave | \nNaN | \nIR1 | \nLvl | \nAllPub | \n... | \n0 | \nNaN | \nNaN | \nNaN | \n0 | \n12 | \n2008 | \nWD | \nNormal | \n250000 | \n
5 rows × 81 columns
\n\n | Grvl | \nPave | \nAllPub | \nNoSeWa | \nN | \nY | \nMSSubClass | \nLotFrontage | \nLotArea | \nOverallQual | \n... | \nWoodDeckSF | \nOpenPorchSF | \nEnclosedPorch | \n3SsnPorch | \nScreenPorch | \nPoolArea | \nMiscVal | \nMoSold | \nYrSold | \nSalePrice | \n
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n0 | \n1 | \n1 | \n0 | \n0 | \n1 | \n60 | \n-0.220799 | \n8450 | \n7 | \n... | \n0 | \n61 | \n0 | \n0 | \n0 | \n0 | \n0 | \n2 | \n2008 | \n208500 | \n
1 | \n0 | \n1 | \n1 | \n0 | \n0 | \n1 | \n20 | \n0.460162 | \n9600 | \n6 | \n... | \n298 | \n0 | \n0 | \n0 | \n0 | \n0 | \n0 | \n5 | \n2007 | \n181500 | \n
2 | \n0 | \n1 | \n1 | \n0 | \n0 | \n1 | \n60 | \n-0.084607 | \n11250 | \n7 | \n... | \n0 | \n42 | \n0 | \n0 | \n0 | \n0 | \n0 | \n9 | \n2008 | \n223500 | \n
3 | \n0 | \n1 | \n1 | \n0 | \n0 | \n1 | \n70 | \n-0.447787 | \n9550 | \n7 | \n... | \n0 | \n35 | \n272 | \n0 | \n0 | \n0 | \n0 | \n2 | \n2006 | \n140000 | \n
4 | \n0 | \n1 | \n1 | \n0 | \n0 | \n1 | \n60 | \n0.641752 | \n14260 | \n8 | \n... | \n192 | \n84 | \n0 | \n0 | \n0 | \n0 | \n0 | \n12 | \n2008 | \n250000 | \n
5 rows × 43 columns
\n