{ "cells": [ { "cell_type": "markdown", "id": "92e15d0a", "metadata": {}, "source": [ "## Lab 06 ##\n", "\n", "* Read the information from the data from https://github.com/masterfloss/data/raw/main/FWD.xlsx creating a list of dataframes. Each dataframe includes data from each worksheet.\n", "* Convert all columns with numbers to numeric (if needed).\n", "* Show data in 3d\n", "\n", " # Import libraries\n", " from mpl_toolkits import mplot3d\n", " #import numpy as np\n", " import matplotlib.pyplot as plt\n", " # Creating figure\n", " fig = plt.figure(figsize = (10, 7))\n", " ax = plt.axes(projection =\"3d\")\n", " ax.set_xlabel('Retail')\n", " ax.set_ylabel('Food service')\n", " ax.set_zlabel('Household')\n", " # Creating plot\n", " ax.scatter3D(x, y, z, color = \"blue\")\n", " plt.title(\"Food Waste(kg/capita/year) estimate\")\n", " # show plot\n", " plt.show()\n", "\n", "\n", "* convert the previous set in a function\n", "\n", "\n" ] }, { "cell_type": "code", "execution_count": null, "id": "7db0b513", "metadata": {}, "outputs": [], "source": [ "#" ] }, { "cell_type": "code", "execution_count": 2, "id": "36d4c914", "metadata": {}, "outputs": [], "source": [ "#" ] }, { "cell_type": "code", "execution_count": null, "id": "01d16663", "metadata": {}, "outputs": [], "source": [ "#" ] }, { "cell_type": "code", "execution_count": null, "id": "0d4b4da2", "metadata": {}, "outputs": [], "source": [ "#" ] }, { "cell_type": "code", "execution_count": null, "id": "fe977e5f", "metadata": {}, "outputs": [], "source": [ "#" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "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.9.7" } }, "nbformat": 4, "nbformat_minor": 5 }