{"cells":[{"cell_type":"code","source":"from 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":"N-aXaawsE735","colab":{"base_uri":"https://localhost:8080/"},"cell_id":"3eebee2f5f934d6ea0591b979614234d","outputId":"62eb308d-02aa-42f9-a92f-db04e4cc36c2","executionInfo":{"user":{"userId":"09471607480253994520","displayName":"David Francisco Bustos Usta"},"status":"ok","elapsed":2470,"user_tz":240,"timestamp":1652654218422},"deepnote_cell_type":"code"},"outputs":[{"output_type":"stream","name":"stdout","text":"Drive already mounted at /content/drive; to attempt to forcibly remount, call drive.mount(\"/content/drive\", force_remount=True).\n/content/drive/My Drive\n/content/drive/My Drive\n"}],"execution_count":10},{"cell_type":"code","source":"import numpy as np \nimport pandas as pd \nimport matplotlib.pyplot as plt \nimport seaborn as sns \n\ndf = pd.read_csv('Breast_cancer_data.csv')\ndf.head()","metadata":{"id":"NXgGXyKtE3AF","colab":{"height":206,"base_uri":"https://localhost:8080/"},"cell_id":"93d06bdddfdb4b93b9ba8e8a5482105c","outputId":"6ab28d83-46d3-4952-85ce-8e64ec853c6b","executionInfo":{"user":{"userId":"09471607480253994520","displayName":"David Francisco Bustos Usta"},"status":"ok","elapsed":664,"user_tz":240,"timestamp":1652654220114},"deepnote_cell_type":"code"},"outputs":[{"output_type":"execute_result","data":{"text/plain":" mean_radius mean_texture mean_perimeter mean_area mean_smoothness \\\n0 17.99 10.38 122.80 1001.0 0.11840 \n1 20.57 17.77 132.90 1326.0 0.08474 \n2 19.69 21.25 130.00 1203.0 0.10960 \n3 11.42 20.38 77.58 386.1 0.14250 \n4 20.29 14.34 135.10 1297.0 0.10030 \n\n diagnosis \n0 0 \n1 0 \n2 0 \n3 0 \n4 0 ","text/html":"\n
\n | mean_radius | \nmean_texture | \nmean_perimeter | \nmean_area | \nmean_smoothness | \ndiagnosis | \n
---|---|---|---|---|---|---|
0 | \n17.99 | \n10.38 | \n122.80 | \n1001.0 | \n0.11840 | \n0 | \n
1 | \n20.57 | \n17.77 | \n132.90 | \n1326.0 | \n0.08474 | \n0 | \n
2 | \n19.69 | \n21.25 | \n130.00 | \n1203.0 | \n0.10960 | \n0 | \n
3 | \n11.42 | \n20.38 | \n77.58 | \n386.1 | \n0.14250 | \n0 | \n
4 | \n20.29 | \n14.34 | \n135.10 | \n1297.0 | \n0.10030 | \n0 | \n
\n | mean_radius | \nmean_texture | \nmean_perimeter | \nmean_area | \nmean_smoothness | \n
---|---|---|---|---|---|
0 | \n17.99 | \n10.38 | \n122.80 | \n1001.0 | \n0.11840 | \n
1 | \n20.57 | \n17.77 | \n132.90 | \n1326.0 | \n0.08474 | \n
2 | \n19.69 | \n21.25 | \n130.00 | \n1203.0 | \n0.10960 | \n
3 | \n11.42 | \n20.38 | \n77.58 | \n386.1 | \n0.14250 | \n
4 | \n20.29 | \n14.34 | \n135.10 | \n1297.0 | \n0.10030 | \n
... | \n... | \n... | \n... | \n... | \n... | \n
564 | \n21.56 | \n22.39 | \n142.00 | \n1479.0 | \n0.11100 | \n
565 | \n20.13 | \n28.25 | \n131.20 | \n1261.0 | \n0.09780 | \n
566 | \n16.60 | \n28.08 | \n108.30 | \n858.1 | \n0.08455 | \n
567 | \n20.60 | \n29.33 | \n140.10 | \n1265.0 | \n0.11780 | \n
568 | \n7.76 | \n24.54 | \n47.92 | \n181.0 | \n0.05263 | \n
569 rows × 5 columns
\n