{ "cells": [ { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "# Builtin Excel Functions\n", "\n", ".. note::\n", " This page is still in progress. Come back soon!" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
NumberWord
01one
12two
23three
34four
\n", "
" ], "text/plain": [ " Number Word\n", "0 1 one\n", "1 2 two\n", "2 3 three\n", "3 4 four" ] }, "execution_count": 1, "metadata": {}, "output_type": "execute_result" } ], "source": [ "import pandas as pd\n", "df = pd.DataFrame(\n", " zip([1,2,3,4], ['one', 'two', 'three', 'four']),\n", " columns=['Number', 'Word']\n", ")\n", "df" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from excelbird.fn import CONCAT # All 506 builtin excel functions here\n", "\n", "fr = Frame(df)\n", "fr['Big Number'] = fr['Number'] + \" thousand\"\n", "\n", "fr['Combined'] = CONCAT( fr.loc['Word':'Big Number'] )\n", "\n", "Book(fr).write(PATH)" ] }, { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "" ] } ], "metadata": { "kernelspec": { "display_name": "env", "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.11.1" }, "orig_nbformat": 4, "vscode": { "interpreter": { "hash": "6ee8c39a5e4f5a5ffe92ac0abdca1f10885ded7e28c74450614be57680931831" } } }, "nbformat": 4, "nbformat_minor": 2 }