{ "cells": [ { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "# Quick start" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "execution": { "iopub.execute_input": "2023-07-23T00:16:39.245335Z", "iopub.status.busy": "2023-07-23T00:16:39.244849Z", "iopub.status.idle": "2023-07-23T00:16:40.317969Z", "shell.execute_reply": "2023-07-23T00:16:40.317211Z" } }, "outputs": [], "source": [ "import py3dinterpolations as p3i\n", "import pandas as pd" ] }, { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "## `GridData`: core object optimized for grid data.\n", "\n", "The `GridData` object is the core object of the package. It is optimized for grid data, i.e. data that are defined on a grid (ie. X,Y,Z coordinates). \n", "\n", "GridData is optimized to handle large data sets. It is based on the `pandas` package and uses `pandas.DataFrame` as the underlying data structure.\n", "\n", "Column names could be either default [\"X\", \"Y\", \"Z\",\"V\"] or custom. In the latter case, the user must specify the column names in the function call." ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "execution": { "iopub.execute_input": "2023-07-23T00:16:40.322349Z", "iopub.status.busy": "2023-07-23T00:16:40.321671Z", "iopub.status.idle": "2023-07-23T00:16:40.339241Z", "shell.execute_reply": "2023-07-23T00:16:40.338609Z" } }, "outputs": [ { "data": { "text/html": [ "
\n", " | ID | \n", "X | \n", "Y | \n", "Z | \n", "V | \n", "
---|---|---|---|---|---|
278 | \n", "ID00 | \n", "15.194 | \n", "0.0 | \n", "12.0 | \n", "9.047969 | \n", "
279 | \n", "ID00 | \n", "15.194 | \n", "0.0 | \n", "10.0 | \n", "10.077271 | \n", "
280 | \n", "ID00 | \n", "15.194 | \n", "0.0 | \n", "8.0 | \n", "20.082454 | \n", "
281 | \n", "ID00 | \n", "15.194 | \n", "0.0 | \n", "6.0 | \n", "19.042223 | \n", "
282 | \n", "ID00 | \n", "15.194 | \n", "0.0 | \n", "4.0 | \n", "12.889411 | \n", "
\n", " | \n", " | \n", " | \n", " | V | \n", "
---|---|---|---|---|
ID | \n", "X | \n", "Y | \n", "Z | \n", "\n", " |
ID30 | \n", "62.163 | \n", "14.336 | \n", "20.0 | \n", "7.523950 | \n", "
18.0 | \n", "7.504403 | \n", "|||
16.0 | \n", "12.431670 | \n", "|||
14.0 | \n", "12.653931 | \n", "|||
12.0 | \n", "17.956143 | \n", "|||
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
ID00 | \n", "15.194 | \n", "0.000 | \n", "12.0 | \n", "9.047969 | \n", "
10.0 | \n", "10.077271 | \n", "|||
8.0 | \n", "20.082454 | \n", "|||
6.0 | \n", "19.042223 | \n", "|||
4.0 | \n", "12.889411 | \n", "
283 rows × 1 columns
\n", "