{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": { "colab": {}, "colab_type": "code", "id": "HEiOAwQPW0qb" }, "outputs": [], "source": [ "import pandas as pd" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "colab": {}, "colab_type": "code", "id": "j7whidfaYjns" }, "outputs": [], "source": [ "file_url = '../dataset/ames_iowa_housing.csv'" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "colab": {}, "colab_type": "code", "id": "nFMz2jNVt-xy" }, "outputs": [], "source": [ "df = pd.read_csv(file_url)" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 34 }, "colab_type": "code", "id": "5aPvl9bpuL5R", "outputId": "3d1ed857-4d0a-4e61-92f2-1f7a4cec89ad" }, "outputs": [], "source": [ "df.shape" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 323 }, "colab_type": "code", "id": "lqiN-nbNuP4F", "outputId": "bbbb332d-a5bc-4964-e5c5-ecc7495040d8" }, "outputs": [], "source": [ "df.columns" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 221 }, "colab_type": "code", "id": "-yRipBFluR2S", "outputId": "c1772c57-94e9-4e9a-e4ce-d23f76b32d12" }, "outputs": [], "source": [ "df.dtypes" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 253 }, "colab_type": "code", "id": "y8hS76MVufBz", "outputId": "9762d3f6-53af-459a-b945-75767d20c1ea" }, "outputs": [], "source": [ "df.head()" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 253 }, "colab_type": "code", "id": "fKw3KEVmufE2", "outputId": "33843314-234a-4255-8364-eab141d822c3" }, "outputs": [], "source": [ "df.tail()" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 253 }, "colab_type": "code", "id": "K_P0LHlzufH7", "outputId": "5fe8e39b-a5d6-4b27-b990-bffc3bee0d71" }, "outputs": [], "source": [ "df.sample(n=5, random_state=8)" ] } ], "metadata": { "colab": { "collapsed_sections": [], "name": "Exercise10_01.ipynb", "provenance": [] }, "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.6" } }, "nbformat": 4, "nbformat_minor": 1 }