diff --git a/Minor Project Submissions/SOLUTION.md b/Minor Project Submissions/SOLUTION.md index 978c4b2..d8ba9d9 100644 --- a/Minor Project Submissions/SOLUTION.md +++ b/Minor Project Submissions/SOLUTION.md @@ -1,2 +1,3 @@ # SOLUTION +colab link:- https://colab.research.google.com/drive/1hp6E8FRLEG8l31RpAhFmu-AfiFj1dsJZ?usp=sharing diff --git a/Minor Project Submissions/honeyproduction.ipynb b/Minor Project Submissions/honeyproduction.ipynb new file mode 100644 index 0000000..15ab6f2 --- /dev/null +++ b/Minor Project Submissions/honeyproduction.ipynb @@ -0,0 +1,3047 @@ +{ + "nbformat": 4, + "nbformat_minor": 0, + "metadata": { + "colab": { + "name": "honeyproduction.ipynb", + "provenance": [] + }, + "kernelspec": { + "name": "python3", + "display_name": "Python 3" + }, + "language_info": { + "name": "python" + } + }, + "cells": [ + { + "cell_type": "markdown", + "source": [ + "Minor Project on Honey Production Dataset\n", + "\n", + "---\n", + "\n", + "\n", + "By\n", + "Name : Shivam Aryan\n" + ], + "metadata": { + "id": "P6Bp05VVokJE" + } + }, + { + "cell_type": "markdown", + "source": [ + "Importing all the libraries " + ], + "metadata": { + "id": "PG2bVljNpFBK" + } + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "id": "dwcDQahgMFi6" + }, + "outputs": [], + "source": [ + "import pandas as pd\n", + "import numpy as np\n", + "import matplotlib.pyplot as plt\n", + "import seaborn as sns\n", + "plt.style.use('seaborn-pastel')\n" + ] + }, + { + "cell_type": "code", + "source": [ + "from google.colab import drive\n", + "drive.mount('/content/drive')" + ], + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/" + }, + "id": "2OCJUS1Mefq0", + "outputId": "7c4527b4-bb78-4cdf-bd2b-89de0b5939b6" + }, + "execution_count": 2, + "outputs": [ + { + "output_type": "stream", + "name": "stdout", + "text": [ + "Mounted at /content/drive\n" + ] + } + ] + }, + { + "cell_type": "code", + "source": [ + "df= pd.read_csv('/content/drive/MyDrive/twitter df/honeyproduction.csv')\n", + "df.head()" + ], + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 206 + }, + "id": "wX5GIrIuNSRf", + "outputId": "3fa24412-0c17-4f0e-e5d2-1eef389ba6df" + }, + "execution_count": 3, + "outputs": [ + { + "output_type": "execute_result", + "data": { + "text/plain": [ + " state numcol yieldpercol totalprod stocks priceperlb \\\n", + "0 AL 16000.0 71 1136000.0 159000.0 0.72 \n", + "1 AZ 55000.0 60 3300000.0 1485000.0 0.64 \n", + "2 AR 53000.0 65 3445000.0 1688000.0 0.59 \n", + "3 CA 450000.0 83 37350000.0 12326000.0 0.62 \n", + "4 CO 27000.0 72 1944000.0 1594000.0 0.70 \n", + "\n", + " prodvalue year \n", + "0 818000.0 1998 \n", + "1 2112000.0 1998 \n", + "2 2033000.0 1998 \n", + "3 23157000.0 1998 \n", + "4 1361000.0 1998 " + ], + "text/html": [ + "\n", + "
\n", + " | state | \n", + "numcol | \n", + "yieldpercol | \n", + "totalprod | \n", + "stocks | \n", + "priceperlb | \n", + "prodvalue | \n", + "year | \n", + "
---|---|---|---|---|---|---|---|---|
0 | \n", + "AL | \n", + "16000.0 | \n", + "71 | \n", + "1136000.0 | \n", + "159000.0 | \n", + "0.72 | \n", + "818000.0 | \n", + "1998 | \n", + "
1 | \n", + "AZ | \n", + "55000.0 | \n", + "60 | \n", + "3300000.0 | \n", + "1485000.0 | \n", + "0.64 | \n", + "2112000.0 | \n", + "1998 | \n", + "
2 | \n", + "AR | \n", + "53000.0 | \n", + "65 | \n", + "3445000.0 | \n", + "1688000.0 | \n", + "0.59 | \n", + "2033000.0 | \n", + "1998 | \n", + "
3 | \n", + "CA | \n", + "450000.0 | \n", + "83 | \n", + "37350000.0 | \n", + "12326000.0 | \n", + "0.62 | \n", + "23157000.0 | \n", + "1998 | \n", + "
4 | \n", + "CO | \n", + "27000.0 | \n", + "72 | \n", + "1944000.0 | \n", + "1594000.0 | \n", + "0.70 | \n", + "1361000.0 | \n", + "1998 | \n", + "
\n", + " | state | \n", + "numcol | \n", + "yieldpercol | \n", + "totalprod | \n", + "stocks | \n", + "priceperlb | \n", + "prodvalue | \n", + "year | \n", + "
---|---|---|---|---|---|---|---|---|
621 | \n", + "VA | \n", + "4000.0 | \n", + "41 | \n", + "164000.0 | \n", + "23000.0 | \n", + "3.77 | \n", + "618000.0 | \n", + "2012 | \n", + "
622 | \n", + "WA | \n", + "62000.0 | \n", + "41 | \n", + "2542000.0 | \n", + "1017000.0 | \n", + "2.38 | \n", + "6050000.0 | \n", + "2012 | \n", + "
623 | \n", + "WV | \n", + "6000.0 | \n", + "48 | \n", + "288000.0 | \n", + "95000.0 | \n", + "2.91 | \n", + "838000.0 | \n", + "2012 | \n", + "
624 | \n", + "WI | \n", + "60000.0 | \n", + "69 | \n", + "4140000.0 | \n", + "1863000.0 | \n", + "2.05 | \n", + "8487000.0 | \n", + "2012 | \n", + "
625 | \n", + "WY | \n", + "50000.0 | \n", + "51 | \n", + "2550000.0 | \n", + "459000.0 | \n", + "1.87 | \n", + "4769000.0 | \n", + "2012 | \n", + "
\n", + " | numcol | \n", + "yieldpercol | \n", + "totalprod | \n", + "stocks | \n", + "prodvalue | \n", + "
---|---|---|---|---|---|
state | \n", + "\n", + " | \n", + " | \n", + " | \n", + " | \n", + " |
AL | \n", + "179000.0 | \n", + "1013 | \n", + "12382000.0 | \n", + "2382000.0 | \n", + "15029000.0 | \n", + "
AR | \n", + "552000.0 | \n", + "1109 | \n", + "42156000.0 | \n", + "14890000.0 | \n", + "40266000.0 | \n", + "
AZ | \n", + "505000.0 | \n", + "901 | \n", + "30484000.0 | \n", + "13155000.0 | \n", + "31677000.0 | \n", + "
CA | \n", + "6100000.0 | \n", + "837 | \n", + "347535000.0 | \n", + "96807000.0 | \n", + "365390000.0 | \n", + "
CO | \n", + "420000.0 | \n", + "942 | \n", + "26259000.0 | \n", + "12229000.0 | \n", + "31354000.0 | \n", + "
FL | \n", + "2928000.0 | \n", + "1246 | \n", + "247048000.0 | \n", + "33144000.0 | \n", + "249229000.0 | \n", + "
GA | \n", + "906000.0 | \n", + "820 | \n", + "49499000.0 | \n", + "5284000.0 | \n", + "58013000.0 | \n", + "
HI | \n", + "131000.0 | \n", + "1470 | \n", + "12647000.0 | \n", + "2553000.0 | \n", + "21063000.0 | \n", + "
IA | \n", + "472000.0 | \n", + "986 | \n", + "31200000.0 | \n", + "16949000.0 | \n", + "38825000.0 | \n", + "
ID | \n", + "1491000.0 | \n", + "660 | \n", + "66160000.0 | \n", + "28139000.0 | \n", + "71431000.0 | \n", + "
IL | \n", + "121000.0 | \n", + "925 | \n", + "7475000.0 | \n", + "3149000.0 | \n", + "15113000.0 | \n", + "
IN | \n", + "119000.0 | \n", + "914 | \n", + "7260000.0 | \n", + "3039000.0 | \n", + "10358000.0 | \n", + "
KS | \n", + "189000.0 | \n", + "841 | \n", + "10619000.0 | \n", + "5238000.0 | \n", + "13861000.0 | \n", + "
KY | \n", + "66000.0 | \n", + "782 | \n", + "3445000.0 | \n", + "704000.0 | \n", + "7199000.0 | \n", + "
LA | \n", + "565000.0 | \n", + "1436 | \n", + "54410000.0 | \n", + "8156000.0 | \n", + "54303000.0 | \n", + "
MD | \n", + "28000.0 | \n", + "270 | \n", + "1266000.0 | \n", + "291000.0 | \n", + "1833000.0 | \n", + "
ME | \n", + "126000.0 | \n", + "466 | \n", + "3701000.0 | \n", + "1445000.0 | \n", + "5067000.0 | \n", + "
MI | \n", + "1067000.0 | \n", + "1022 | \n", + "72820000.0 | \n", + "34434000.0 | \n", + "86804000.0 | \n", + "
MN | \n", + "1934000.0 | \n", + "1114 | \n", + "144360000.0 | \n", + "32787000.0 | \n", + "157850000.0 | \n", + "
MO | \n", + "235000.0 | \n", + "801 | \n", + "13073000.0 | \n", + "3049000.0 | \n", + "14768000.0 | \n", + "
MS | \n", + "252000.0 | \n", + "1312 | \n", + "21853000.0 | \n", + "4718000.0 | \n", + "24252000.0 | \n", + "
MT | \n", + "2040000.0 | \n", + "1160 | \n", + "156562000.0 | \n", + "47950000.0 | \n", + "176903000.0 | \n", + "
NC | \n", + "171000.0 | \n", + "717 | \n", + "8141000.0 | \n", + "1898000.0 | \n", + "17158000.0 | \n", + "
ND | \n", + "5555000.0 | \n", + "1321 | \n", + "475085000.0 | \n", + "132898000.0 | \n", + "545642000.0 | \n", + "
NE | \n", + "695000.0 | \n", + "1012 | \n", + "47379000.0 | \n", + "25340000.0 | \n", + "52895000.0 | \n", + "
NJ | \n", + "164000.0 | \n", + "554 | \n", + "5993000.0 | \n", + "1722000.0 | \n", + "9105000.0 | \n", + "
NM | \n", + "131000.0 | \n", + "808 | \n", + "7147000.0 | \n", + "3524000.0 | \n", + "8208000.0 | \n", + "
NV | \n", + "108000.0 | \n", + "497 | \n", + "4832000.0 | \n", + "1611000.0 | \n", + "10669000.0 | \n", + "
NY | \n", + "846000.0 | \n", + "1037 | \n", + "59062000.0 | \n", + "26617000.0 | \n", + "75063000.0 | \n", + "
OH | \n", + "242000.0 | \n", + "953 | \n", + "15601000.0 | \n", + "6500000.0 | \n", + "23282000.0 | \n", + "
OK | \n", + "27000.0 | \n", + "278 | \n", + "1207000.0 | \n", + "401000.0 | \n", + "1711000.0 | \n", + "
OR | \n", + "729000.0 | \n", + "666 | \n", + "31821000.0 | \n", + "16183000.0 | \n", + "39349000.0 | \n", + "
PA | \n", + "386000.0 | \n", + "756 | \n", + "19434000.0 | \n", + "8328000.0 | \n", + "27745000.0 | \n", + "
SC | \n", + "16000.0 | \n", + "204 | \n", + "1030000.0 | \n", + "89000.0 | \n", + "1338000.0 | \n", + "
SD | \n", + "3544000.0 | \n", + "1137 | \n", + "266141000.0 | \n", + "131494000.0 | \n", + "290651000.0 | \n", + "
TN | \n", + "108000.0 | \n", + "845 | \n", + "6116000.0 | \n", + "1468000.0 | \n", + "11399000.0 | \n", + "
TX | \n", + "1478000.0 | \n", + "1058 | \n", + "104904000.0 | \n", + "20520000.0 | \n", + "111438000.0 | \n", + "
UT | \n", + "380000.0 | \n", + "698 | \n", + "17686000.0 | \n", + "4615000.0 | \n", + "20165000.0 | \n", + "
VA | \n", + "99000.0 | \n", + "603 | \n", + "3998000.0 | \n", + "1004000.0 | \n", + "8583000.0 | \n", + "
VT | \n", + "85000.0 | \n", + "1004 | \n", + "5821000.0 | \n", + "2284000.0 | \n", + "8435000.0 | \n", + "
WA | \n", + "835000.0 | \n", + "732 | \n", + "40316000.0 | \n", + "16653000.0 | \n", + "49787000.0 | \n", + "
WI | \n", + "1022000.0 | \n", + "1191 | \n", + "81833000.0 | \n", + "42726000.0 | \n", + "97706000.0 | \n", + "
WV | \n", + "98000.0 | \n", + "728 | \n", + "4818000.0 | \n", + "2006000.0 | \n", + "8289000.0 | \n", + "
WY | \n", + "593000.0 | \n", + "992 | \n", + "39269000.0 | \n", + "7233000.0 | \n", + "42848000.0 | \n", + "
\n", + " | numcol | \n", + "yieldpercol | \n", + "totalprod | \n", + "stocks | \n", + "priceperlb | \n", + "prodvalue | \n", + "
---|---|---|---|---|---|---|
count | \n", + "626.000000 | \n", + "626.000000 | \n", + "6.260000e+02 | \n", + "6.260000e+02 | \n", + "626.000000 | \n", + "6.260000e+02 | \n", + "
mean | \n", + "60284.345048 | \n", + "62.009585 | \n", + "4.169086e+06 | \n", + "1.318859e+06 | \n", + "1.409569 | \n", + "4.715741e+06 | \n", + "
std | \n", + "91077.087231 | \n", + "19.458754 | \n", + "6.883847e+06 | \n", + "2.272964e+06 | \n", + "0.638599 | \n", + "7.976110e+06 | \n", + "
min | \n", + "2000.000000 | \n", + "19.000000 | \n", + "8.400000e+04 | \n", + "8.000000e+03 | \n", + "0.490000 | \n", + "1.620000e+05 | \n", + "
25% | \n", + "9000.000000 | \n", + "48.000000 | \n", + "4.750000e+05 | \n", + "1.430000e+05 | \n", + "0.932500 | \n", + "7.592500e+05 | \n", + "
50% | \n", + "26000.000000 | \n", + "60.000000 | \n", + "1.533000e+06 | \n", + "4.395000e+05 | \n", + "1.360000 | \n", + "1.841500e+06 | \n", + "
75% | \n", + "63750.000000 | \n", + "74.000000 | \n", + "4.175250e+06 | \n", + "1.489500e+06 | \n", + "1.680000 | \n", + "4.703250e+06 | \n", + "
max | \n", + "510000.000000 | \n", + "136.000000 | \n", + "4.641000e+07 | \n", + "1.380000e+07 | \n", + "4.150000 | \n", + "6.961500e+07 | \n", + "
\n", + " | numcol | \n", + "totalprod | \n", + "stocks | \n", + "prodvalue | \n", + "
---|---|---|---|---|
year | \n", + "\n", + " | \n", + " | \n", + " | \n", + " |
1998 | \n", + "2621000.0 | \n", + "219519000.0 | \n", + "80565000.0 | \n", + "146091000.0 | \n", + "
1999 | \n", + "2637000.0 | \n", + "202387000.0 | \n", + "78390000.0 | \n", + "123657000.0 | \n", + "
2000 | \n", + "2604000.0 | \n", + "219558000.0 | \n", + "84956000.0 | \n", + "131568000.0 | \n", + "
2001 | \n", + "2542000.0 | \n", + "185748000.0 | \n", + "64764000.0 | \n", + "132282000.0 | \n", + "
2002 | \n", + "2565000.0 | \n", + "171265000.0 | \n", + "39177000.0 | \n", + "227302000.0 | \n", + "
2003 | \n", + "2591000.0 | \n", + "181372000.0 | \n", + "40619000.0 | \n", + "252079000.0 | \n", + "
2004 | \n", + "2539000.0 | \n", + "182729000.0 | \n", + "60981000.0 | \n", + "197307000.0 | \n", + "
2005 | \n", + "2394000.0 | \n", + "173969000.0 | \n", + "62187000.0 | \n", + "160793000.0 | \n", + "
2006 | \n", + "2378000.0 | \n", + "154238000.0 | \n", + "60235000.0 | \n", + "157924000.0 | \n", + "
2007 | \n", + "2428000.0 | \n", + "147621000.0 | \n", + "52405000.0 | \n", + "161356000.0 | \n", + "
2008 | \n", + "2326000.0 | \n", + "162972000.0 | \n", + "50996000.0 | \n", + "229992000.0 | \n", + "
2009 | \n", + "2472000.0 | \n", + "145068000.0 | \n", + "37322000.0 | \n", + "213920000.0 | \n", + "
2010 | \n", + "2666000.0 | \n", + "175294000.0 | \n", + "44797000.0 | \n", + "278370000.0 | \n", + "
2011 | \n", + "2466000.0 | \n", + "147201000.0 | \n", + "36550000.0 | \n", + "258688000.0 | \n", + "
2012 | \n", + "2509000.0 | \n", + "140907000.0 | \n", + "31662000.0 | \n", + "280725000.0 | \n", + "
\n", + " | numcol | \n", + "yieldpercol | \n", + "totalprod | \n", + "stocks | \n", + "priceperlb | \n", + "prodvalue | \n", + "
---|---|---|---|---|---|---|
numcol | \n", + "1.000000 | \n", + "0.243515 | \n", + "0.953594 | \n", + "0.825929 | \n", + "-0.232701 | \n", + "0.912796 | \n", + "
yieldpercol | \n", + "0.243515 | \n", + "1.000000 | \n", + "0.396252 | \n", + "0.367812 | \n", + "-0.358646 | \n", + "0.278977 | \n", + "
totalprod | \n", + "0.953594 | \n", + "0.396252 | \n", + "1.000000 | \n", + "0.878830 | \n", + "-0.264499 | \n", + "0.907236 | \n", + "
stocks | \n", + "0.825929 | \n", + "0.367812 | \n", + "0.878830 | \n", + "1.000000 | \n", + "-0.305867 | \n", + "0.728560 | \n", + "
priceperlb | \n", + "-0.232701 | \n", + "-0.358646 | \n", + "-0.264499 | \n", + "-0.305867 | \n", + "1.000000 | \n", + "-0.089567 | \n", + "
prodvalue | \n", + "0.912796 | \n", + "0.278977 | \n", + "0.907236 | \n", + "0.728560 | \n", + "-0.089567 | \n", + "1.000000 | \n", + "
\n", + " | numcol | \n", + "totalprod | \n", + "stocks | \n", + "prodvalue | \n", + "yieldpercol | \n", + "
---|---|---|---|---|---|
year | \n", + "\n", + " | \n", + " | \n", + " | \n", + " | \n", + " |
1998 | \n", + "2621000.0 | \n", + "219519000.0 | \n", + "80565000.0 | \n", + "146091000.0 | \n", + "84.0 | \n", + "
1999 | \n", + "2637000.0 | \n", + "202387000.0 | \n", + "78390000.0 | \n", + "123657000.0 | \n", + "77.0 | \n", + "
2000 | \n", + "2604000.0 | \n", + "219558000.0 | \n", + "84956000.0 | \n", + "131568000.0 | \n", + "84.0 | \n", + "
2001 | \n", + "2542000.0 | \n", + "185748000.0 | \n", + "64764000.0 | \n", + "132282000.0 | \n", + "73.0 | \n", + "
2002 | \n", + "2565000.0 | \n", + "171265000.0 | \n", + "39177000.0 | \n", + "227302000.0 | \n", + "67.0 | \n", + "
2003 | \n", + "2591000.0 | \n", + "181372000.0 | \n", + "40619000.0 | \n", + "252079000.0 | \n", + "70.0 | \n", + "
2004 | \n", + "2539000.0 | \n", + "182729000.0 | \n", + "60981000.0 | \n", + "197307000.0 | \n", + "72.0 | \n", + "
2005 | \n", + "2394000.0 | \n", + "173969000.0 | \n", + "62187000.0 | \n", + "160793000.0 | \n", + "73.0 | \n", + "
2006 | \n", + "2378000.0 | \n", + "154238000.0 | \n", + "60235000.0 | \n", + "157924000.0 | \n", + "65.0 | \n", + "
2007 | \n", + "2428000.0 | \n", + "147621000.0 | \n", + "52405000.0 | \n", + "161356000.0 | \n", + "61.0 | \n", + "
2008 | \n", + "2326000.0 | \n", + "162972000.0 | \n", + "50996000.0 | \n", + "229992000.0 | \n", + "70.0 | \n", + "
2009 | \n", + "2472000.0 | \n", + "145068000.0 | \n", + "37322000.0 | \n", + "213920000.0 | \n", + "59.0 | \n", + "
2010 | \n", + "2666000.0 | \n", + "175294000.0 | \n", + "44797000.0 | \n", + "278370000.0 | \n", + "66.0 | \n", + "
2011 | \n", + "2466000.0 | \n", + "147201000.0 | \n", + "36550000.0 | \n", + "258688000.0 | \n", + "60.0 | \n", + "
2012 | \n", + "2509000.0 | \n", + "140907000.0 | \n", + "31662000.0 | \n", + "280725000.0 | \n", + "56.0 | \n", + "