{ "cells": [ { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "# Xorbits Pandas DataFrame\n", "\n", "This notebook goes over how to load data from a [xorbits.pandas](https://doc.xorbits.io/en/latest/reference/pandas/frame.html) DataFrame." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "#!pip install xorbits" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "import xorbits.pandas as pd" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "df = pd.read_csv(\"example_data/mlb_teams_2012.csv\")" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "b0d1d84e23c04f1296f63b3ea3dd1e5b", "version_major": 2, "version_minor": 0 }, "text/plain": [ " 0%| | 0.00/100 [00:00, ?it/s]" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
\n", " | Team | \n", "\"Payroll (millions)\" | \n", "\"Wins\" | \n", "
---|---|---|---|
0 | \n", "Nationals | \n", "81.34 | \n", "98 | \n", "
1 | \n", "Reds | \n", "82.20 | \n", "97 | \n", "
2 | \n", "Yankees | \n", "197.96 | \n", "95 | \n", "
3 | \n", "Giants | \n", "117.62 | \n", "94 | \n", "
4 | \n", "Braves | \n", "83.31 | \n", "94 | \n", "