diff --git a/aboutpandas.ipynb b/aboutpandas.ipynb new file mode 100644 index 00000000..fc82935e --- /dev/null +++ b/aboutpandas.ipynb @@ -0,0 +1,448 @@ +{ + "nbformat": 4, + "nbformat_minor": 0, + "metadata": { + "colab": { + "provenance": [], + "authorship_tag": "ABX9TyPrlxOheq1SbPmvISkJh26G", + "include_colab_link": true + }, + "kernelspec": { + "name": "python3", + "display_name": "Python 3" + }, + "language_info": { + "name": "python" + } + }, + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "id": "view-in-github", + "colab_type": "text" + }, + "source": [ + "\"Open" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "id": "q9m3UUdLPkNG" + }, + "outputs": [], + "source": [] + }, + { + "cell_type": "markdown", + "source": [ + "pandas is an open source , bsd licensed library provides hig performance , easy to use data strucures and data analysis tools for the python programming lanaugage\n", + "\n", + "what is dataframe?\n", + "what is data series?\n", + "differnet operations in pandas?" + ], + "metadata": { + "id": "RQpc1g07P89r" + } + }, + { + "cell_type": "code", + "source": [ + "# importing pands\n", + "import pandas as pd\n", + "import numpy as np" + ], + "metadata": { + "id": "HIBQ4_QLQXRM" + }, + "execution_count": 1, + "outputs": [] + }, + { + "cell_type": "markdown", + "source": [ + "\n", + "\n", + "```\n", + "# This is formatted as code\n", + "```\n", + "\n" + ], + "metadata": { + "id": "G-4nbtXiP6fC" + } + }, + { + "cell_type": "code", + "source": [ + "df=pd.DataFrame(np.arange(0,20).reshape(5,4),index=['Row1','Row2','Row3','Row4','Row5'],columns=['Column1','Column2','Column3','Column4'])\n", + "df" + ], + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 206 + }, + "id": "2wuxHALrQjlG", + "outputId": "e7cacf38-dbc4-4726-8ea3-3bfd23ac0ae5" + }, + "execution_count": 3, + "outputs": [ + { + "output_type": "execute_result", + "data": { + "text/plain": [ + " Column1 Column2 Column3 Column4\n", + "Row1 0 1 2 3\n", + "Row2 4 5 6 7\n", + "Row3 8 9 10 11\n", + "Row4 12 13 14 15\n", + "Row5 16 17 18 19" + ], + "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", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Column1Column2Column3Column4
Row10123
Row24567
Row3891011
Row412131415
Row516171819
\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" + ], + "application/vnd.google.colaboratory.intrinsic+json": { + "type": "dataframe", + "variable_name": "df", + "summary": "{\n \"name\": \"df\",\n \"rows\": 5,\n \"fields\": [\n {\n \"column\": \"Column1\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 6,\n \"min\": 0,\n \"max\": 16,\n \"num_unique_values\": 5,\n \"samples\": [\n 4,\n 16,\n 8\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"Column2\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 6,\n \"min\": 1,\n \"max\": 17,\n \"num_unique_values\": 5,\n \"samples\": [\n 5,\n 17,\n 9\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"Column3\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 6,\n \"min\": 2,\n \"max\": 18,\n \"num_unique_values\": 5,\n \"samples\": [\n 6,\n 18,\n 10\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"Column4\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 6,\n \"min\": 3,\n \"max\": 19,\n \"num_unique_values\": 5,\n \"samples\": [\n 7,\n 19,\n 11\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n }\n ]\n}" + } + }, + "metadata": {}, + "execution_count": 3 + } + ] + } + ] +} \ No newline at end of file