{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "spread-happiness", "metadata": {}, "outputs": [], "source": [ "%matplotlib inline\n", "%load_ext autoreload\n", "%autoreload 2\n", "\n", "import numpy as np\n", "import pandas as pd\n", "import torch\n", "import matplotlib.pyplot as plt\n", "import seaborn as sns\n", "from IPython.display import Markdown, display, HTML\n", "\n", "# Fix the dying kernel problem (only a problem in some installations - you can remove it, if it works without it)\n", "import os\n", "os.environ['KMP_DUPLICATE_LIB_OK'] = 'True'" ] }, { "cell_type": "code", "execution_count": 2, "id": "adult-compensation", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Numpy array\n", "[[1. 2. 3.]\n", " [4. 5. 6.]\n", " [7. 8. 9.]]\n", "\n", "Pandas DataFrame\n", " A B C\n", "0 1.0 2.0 3.0\n", "1 4.0 5.0 6.0\n", "2 7.0 8.0 9.0\n", "\n", "Pretty display of pandas DataFrame\n" ] }, { "data": { "text/html": [ "
A | \n", "B | \n", "C | \n", "
---|---|---|
1.0 | \n", "2.0 | \n", "3.0 | \n", "
4.0 | \n", "5.0 | \n", "6.0 | \n", "
7.0 | \n", "8.0 | \n", "9.0 | \n", "