2023-01-12 16:13:39 +02:00
|
|
|
{
|
|
|
|
"cells": [
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-01-12 21:45:54 +02:00
|
|
|
"execution_count": 1,
|
2023-01-12 20:25:12 +02:00
|
|
|
"id": "41405f3d",
|
2023-01-12 16:13:39 +02:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"from matplotlib import pyplot as plt\n",
|
|
|
|
"import numpy as np"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
2023-01-12 20:25:12 +02:00
|
|
|
"id": "dfc88764",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"## General conversions \n",
|
|
|
|
"\n",
|
|
|
|
"Conversions\n",
|
|
|
|
"\n",
|
|
|
|
"Sunflower Seeds, sunflower seed kernels, dried\n",
|
|
|
|
"584kcal/100g\n",
|
|
|
|
"https://fdc.nal.usda.gov/fdc-app.html#/food-details/170562/nutrients\n",
|
|
|
|
"FDC ID: 170562\n",
|
|
|
|
"USDA Unit LB/acre\n",
|
|
|
|
" \n",
|
|
|
|
"Potatoes, flesh and skin, raw\n",
|
|
|
|
"https://fdc.nal.usda.gov/fdc-app.html#/food-details/170026/nutrients\n",
|
|
|
|
"77kcal/100g\n",
|
|
|
|
"FDC ID: 170026 \n",
|
|
|
|
"USDA Unit CWT/acre\n",
|
|
|
|
"1 CWT = 100lbs\n",
|
|
|
|
" \n",
|
|
|
|
"Wheat, hard red winter\n",
|
|
|
|
"FDC ID: 168890\n",
|
|
|
|
"327kcal/100g\n",
|
|
|
|
"https://fdc.nal.usda.gov/fdc-app.html#/food-details/168890/nutrients\n",
|
|
|
|
"USDA Unit BU/acre\n",
|
|
|
|
"60lb / BU https://www.plainsgrains.org/wp-content/uploads/2018/10/2017-HRWW-Report__HiRes-FINAL.pdf\n",
|
|
|
|
"\n",
|
|
|
|
"Corn grain, yellow\n",
|
|
|
|
"365kcal/100g\n",
|
|
|
|
"https://fdc.nal.usda.gov/fdc-app.html#/food-details/170288/nutrients\n",
|
|
|
|
"FDC ID: 170288 \n",
|
|
|
|
"USDA Unit BU/acre\n",
|
|
|
|
"Shelled, 56lbs/BU\n",
|
|
|
|
"\n",
|
|
|
|
"Soybeans, mature seeds, raw\n",
|
|
|
|
"446kcal/100g\n",
|
|
|
|
"https://fdc.nal.usda.gov/fdc-app.html#/food-details/174270/nutrients\n",
|
|
|
|
"FDC ID: 174270 \n",
|
|
|
|
"USDA Unit BU/acre\n",
|
|
|
|
"60LB/BU https://soybeanresearchinfo.com/research-highlight/exploring-the-impact-of-genetics-on-soybean-test-weight\n"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"id": "72029669",
|
2023-01-12 16:13:39 +02:00
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"## Corn"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-01-12 21:45:54 +02:00
|
|
|
"execution_count": 2,
|
2023-01-12 20:25:12 +02:00
|
|
|
"id": "116f0267",
|
2023-01-12 16:13:39 +02:00
|
|
|
"metadata": {},
|
2023-01-12 21:45:54 +02:00
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
|
|
|
"array([[ nan, 2022. , nan, nan, nan, nan, nan, nan,\n",
|
|
|
|
" nan, nan, nan, nan, nan, 0. , nan, nan,\n",
|
|
|
|
" nan, nan, 172.3, nan],\n",
|
|
|
|
" [ nan, 2021. , nan, nan, nan, nan, nan, nan,\n",
|
|
|
|
" nan, nan, nan, nan, nan, 0. , nan, nan,\n",
|
|
|
|
" nan, nan, 176.7, nan],\n",
|
|
|
|
" [ nan, 2020. , nan, nan, nan, nan, nan, nan,\n",
|
|
|
|
" nan, nan, nan, nan, nan, 0. , nan, nan,\n",
|
|
|
|
" nan, nan, 171.4, nan]])"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"execution_count": 2,
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
}
|
|
|
|
],
|
2023-01-12 16:13:39 +02:00
|
|
|
"source": [
|
|
|
|
"csv=np.genfromtxt ('./data/corn.csv',\n",
|
|
|
|
" skip_header=1,\n",
|
|
|
|
" delimiter=\",\")\n",
|
|
|
|
"csv[0:3]\n",
|
|
|
|
"#csv[0:3].astype(float)"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-01-12 21:45:54 +02:00
|
|
|
"execution_count": 3,
|
2023-01-12 20:25:12 +02:00
|
|
|
"id": "0db69a97",
|
2023-01-12 16:13:39 +02:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"corn_year=csv[:,1]\n",
|
2023-01-12 20:25:12 +02:00
|
|
|
"corn_bu_per_acre=csv[:,-2]\n",
|
|
|
|
"\n",
|
|
|
|
"grams_per_lbs=453.592\n",
|
|
|
|
"corn_lbs_per_bu=(56.0/1.0)\n",
|
|
|
|
"corn_kcal_per_gram=(365/100)\n",
|
|
|
|
"corn_kcal_per_acre = corn_bu_per_acre*corn_lbs_per_bu*grams_per_lbs*corn_kcal_per_gram"
|
2023-01-12 16:13:39 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-01-13 20:54:15 +02:00
|
|
|
"execution_count": 32,
|
2023-01-12 20:25:12 +02:00
|
|
|
"id": "eb375958",
|
2023-01-12 16:13:39 +02:00
|
|
|
"metadata": {},
|
2023-01-12 21:45:54 +02:00
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
2023-01-13 20:54:15 +02:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjsAAAHFCAYAAAAUpjivAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMiw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XMneXl5PPfcc+Tl5Wl/WVhY0Lt3b+10WXH69OmDr68vK1as0B5buXIlKpWKSZMmFfu8oKAgkpKSGD9+vN7rqtVqBg8ezPHjx7l9+7bB5x4+fJisrCzGjh2rd7xnz540adJE71i3bt04efIkkydPvq/RQ0P69++Pv78/H330EWlpacWeV9bvqOaca9eusWHDBl577TW8vLxYt24dvXv31pveMTc3Z/PmzZw9e5YlS5bwzDPPkJCQwLx582jbtm2REa7Crl+/jkqlwsnJ6V67r/Xoo49y9epVNm/ezJtvvkn79u3ZsmULjz/+OFOmTCnXtZRCozGKominrgYOHAgUTOf26dOHX3/91eDnqZkWN5TELGoHCXZEjWZiYgJQZEpDIy8vD1NT0yLHmzRpQkBAAKtXr+bChQv8+OOPZGVlaXNVipOWlsbPP/9Mt27dcHZ2JiUlhZSUFP7zn/+gUqn0cmYSExMxMTHBwcFB7xqurq7FXr8sK4cSEhIA8PT0LPXcmqBwn27cuAHAAw88gKmpqd6vH3/8sdgyArpee+019u7dS0REBLm5uXz11Vc8+eSTuLm5Ffsczes++eSTRV53wYIFKIpS7IoiTZ6IoesXPjZz5kz+7//+jyNHjjBkyBAcHR3p378/wcHBpfarLBYsWMDNmzeLXap
|
2023-01-12 21:45:54 +02:00
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 640x480 with 1 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
2023-01-12 20:25:12 +02:00
|
|
|
"source": [
|
2023-01-13 20:54:15 +02:00
|
|
|
"plt.plot(corn_year,corn_bu_per_acre,\"o\",markerfacecolor=\"none\",label=\"corn\")\n",
|
2023-01-12 20:25:12 +02:00
|
|
|
"plt.xlabel(\"time (calendar year)\")\n",
|
|
|
|
"plt.ylabel(\"Corn, bu/acre\")\n",
|
|
|
|
"plt.title(\"US Agriculture yields, NASS (USDA)\")\n",
|
|
|
|
"plt.legend()\n",
|
2023-01-13 20:54:15 +02:00
|
|
|
"plt.grid()\n",
|
2023-01-12 20:25:12 +02:00
|
|
|
"\n",
|
|
|
|
"#plt.show()\n",
|
|
|
|
"#plt.savefig(\"bear-quadratic.pdf\")"
|
|
|
|
]
|
2023-01-12 16:13:39 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-01-12 21:45:54 +02:00
|
|
|
"execution_count": 5,
|
2023-01-12 20:25:12 +02:00
|
|
|
"id": "9c6ffb7f",
|
2023-01-12 16:13:39 +02:00
|
|
|
"metadata": {},
|
2023-01-12 21:45:54 +02:00
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
2023-01-13 20:54:15 +02:00
|
|
|
"<matplotlib.legend.Legend at 0x255cc993610>"
|
2023-01-12 21:45:54 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"execution_count": 5,
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"data": {
|
2023-01-13 20:54:15 +02:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjcAAAHFCAYAAAAOmtghAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8qNh9FAAAACXBIWXMAAA9hAAAPYQGoP6dpAACUY0lEQVR4nOzdd1hU19YH4N/Q29C7NBtNFEXUYIm9a2LUaJRrS1GxJOpnitHEcjVGTdQYI8bYEiXGEtuNBqMINrDQYgMERUEcQHpRabO/P/AcZ5ihCkxhvc/Dc69nzpzZe5jMWey99toCxhgDIYQQQoia0FB0AwghhBBCGhMFN4QQQghRKxTcEEIIIUStUHBDCCGEELVCwQ0hhBBC1AoFN4QQQghRKxTcEEIIIUStUHBDCCGEELVCwQ0hhBBC1AoFN0RprFixAgKBAFlZWXIf9/LyQr9+/aSOpaamYs6cOXB1dYW+vj7Mzc3RsWN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Xr1gY9f/HixRCJRFI/np6eePfddxu5pS2DlpYWAMhMUXDKy8uhra0tc9zZ2RkBAQHYtWsXEhMTcfDgQbx48YLPNalOYWEhDh8+jO7du8PKygp5eXnIy8vDO++8A4FAIJXzkp2dDS0tLZibm0tdw8bGptrr12Vlz9OnTwEADg4OtZ6rDKr2KSMjAwDQrVs3aGtrS/0cPHiw2mX9kj7++GOEhIQgISEBZWVl+OWXXzB+/HjY2tpW+xzudcePHy/zuuvWrQNjrNo
|
2023-01-12 21:45:54 +02:00
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 640x480 with 1 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
2023-01-12 16:13:39 +02:00
|
|
|
"source": [
|
2023-01-13 20:54:15 +02:00
|
|
|
"plt.plot(corn_year,corn_kcal_per_acre,\"o\",markerfacecolor=\"none\",label=\"corn\")\n",
|
2023-01-12 16:13:39 +02:00
|
|
|
"plt.xlabel(\"time (calendar year)\")\n",
|
2023-01-12 20:25:12 +02:00
|
|
|
"plt.ylabel(\"kcal/acre\")\n",
|
2023-01-12 16:13:39 +02:00
|
|
|
"plt.title(\"US Agriculture yields, NASS (USDA)\")\n",
|
|
|
|
"plt.legend()\n",
|
|
|
|
"\n",
|
|
|
|
"#plt.show()\n",
|
|
|
|
"#plt.savefig(\"bear-quadratic.pdf\")"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
2023-01-12 20:25:12 +02:00
|
|
|
"id": "fa891f0e",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"## Wheat"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-01-12 21:45:54 +02:00
|
|
|
"execution_count": 6,
|
2023-01-12 20:25:12 +02:00
|
|
|
"id": "263ea341",
|
|
|
|
"metadata": {},
|
2023-01-12 21:45:54 +02:00
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
|
|
|
"array([[ nan, 2022. , nan, nan, nan, nan, nan, nan,\n",
|
|
|
|
" nan, nan, nan, nan, nan, 0. , nan, nan,\n",
|
|
|
|
" nan, nan, 46.5, nan],\n",
|
|
|
|
" [ nan, 2021. , nan, nan, nan, nan, nan, nan,\n",
|
|
|
|
" nan, nan, nan, nan, nan, 0. , nan, nan,\n",
|
|
|
|
" nan, nan, 44.3, nan],\n",
|
|
|
|
" [ nan, 2020. , nan, nan, nan, nan, nan, nan,\n",
|
|
|
|
" nan, nan, nan, nan, nan, 0. , nan, nan,\n",
|
|
|
|
" nan, nan, 49.7, nan]])"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"execution_count": 6,
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
}
|
|
|
|
],
|
2023-01-12 20:25:12 +02:00
|
|
|
"source": [
|
|
|
|
"csv=np.genfromtxt ('./data/wheat.csv',\n",
|
|
|
|
" skip_header=1,\n",
|
|
|
|
" delimiter=\",\")\n",
|
|
|
|
"csv[0:3]\n",
|
|
|
|
"#csv[0:3].astype(float)"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-01-12 21:45:54 +02:00
|
|
|
"execution_count": 7,
|
2023-01-12 20:25:12 +02:00
|
|
|
"id": "5aa38243",
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"wheat_year=csv[:,1]\n",
|
|
|
|
"wheat_bu_per_acre=csv[:,-2]\n",
|
|
|
|
"\n",
|
|
|
|
"wheat_lbs_per_bu=60\n",
|
|
|
|
"#grams_per_lbs\n",
|
|
|
|
"wheat_kcal_per_gram=327.0/100.0\n",
|
|
|
|
"\n",
|
|
|
|
"wheat_kcal_per_acre=wheat_bu_per_acre*wheat_lbs_per_bu*grams_per_lbs*wheat_kcal_per_gram"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-01-12 21:45:54 +02:00
|
|
|
"execution_count": 8,
|
2023-01-12 20:25:12 +02:00
|
|
|
"id": "5dd77124",
|
|
|
|
"metadata": {},
|
2023-01-12 21:45:54 +02:00
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
2023-01-13 20:54:15 +02:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjoAAAHFCAYAAAD7ZFORAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8qNh9FAAAACXBIWXMAAA9hAAAPYQGoP6dpAAC7+UlEQVR4nOydeVwU9f/HX8uNcl+CyqUoqIiIN5qI921maoZnpb/UMu2wTC31K1lY2YWYpllGZodXad6gpigioikIigioIMghiAiyO78/thlmd2cv2GUXeD8fDx7AnJ+ZHfi85n2KGIZhQBAEQRAE0QQxMfQACIIgCIIg9AUJHYIgCIIgmiwkdAiCIAiCaLKQ0CEIgiAIoslCQocgCIIgiCYLCR2CIAiCIJosJHQIgiAIgmiykNAhCIIgCKLJQkKHIAiCIIgmCwkdwihZtWoVRCIRHjx4ILg+MDAQgwYNklmWm5uLBQsWoGPHjrC2toaTkxO6du2KuXPnIjc3V+Nz79+/HyKRCM7OzqiqqqrPZaiEvUZ9cfv2bYhEImzfvp1bdvbsWaxatQqlpaV6O6++2b59O0QiEW7fvq3XfQcNGqTwjOmSQYMGQSQSYeTIkQrr2M/u008/FdxXk2e0oqICn3zyCbp16wY7OzvY2tqiffv2mDJlCk6ePCmzbVpaGmbMmIF27drBysoKLi4uCAkJwWuvvYaysjKNrmfNmjXo3LkzJBKJRtfw6aefKnwWT58+xbfffotevXrByckJLVq0gLe3NyZMmIA9e/Yo3B/2y9zcHM7OzujVqxeWLFmCa9euqRzrm2++CZFIhLFjxwquz8jIgIWFBZKTkzW6dsK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IawsDCmS5cuDMMwzLFjxxgAzNdff80wjHLXjKbPKMMwzNatWxkbGxsGAAOA8fDwYGbOnMmcOnVKZrsnT54wzz77LLedqakp0717d2b58uVMQUGB2uv45JNPGABMfn6+zHJtXVcMI/3bcnFx4cbi7OzMTJ48mdm/f79Wx2YYhpk6dSoDgLl//z63bM2aNQwA5tChQwzDSP/mRCIRM2PGDMFjbNmyhQHApKWlqbwHhHFDFh2iSSASibBp0ybcunULGzduxJw5c/D06VNs2LABXbp0UcgyEYJ1D7300kvcMWfPno3s7GwZqwB7rClTpsjsP23aNKXHnjRpktrzHz16FGKxGAsXLlS7rTEgf02HDx9GTU0NZs6ciZqaGu7LysoKYWFhnItMGYMGDUK3bt0QHR3NLdu0aRNEIhHmzZundL+zZ8+iuLgYs2bNkjmvRCLByJEjceHCBVRUVAjum5CQgCdPniAiIkJmeWhoKLy9vWWW9e7dG5cvX8aCBQvqZTUUYsiQIRg+fDjWrFmD8vJypdtp+oyy29y5cwc///wzFi1aBE9PT/z0008ICwuTcelYWlpiz549SE1NxYYNG/DCCy+gsLAQkZGR6NSpk4JlS5579+5BJBLBxcWlrpfPMXr0aOTk5GDPnj14++230aVLF+zduxfjx4/Ha6+9ptWxGDkrDMMwnLtq2LBhAKQu3EGDBuGPP/4Q/DxZV7hQwDLReCChQxglZmZmAKDgxmCpqamBubm5wnJvb2/Mnz8fW7duxY0bN7Br1y48efKEi01RRnl5OX777Tf07t0brq6uKC0tRWlpKSZOnAiRSCQTI1NUVAQzMzM4OTnJHKNVq1ZKj69JhlBhYSEAoG3btmq3NQbkr+n+/fsAgF69esHc3Fzma9euXUpLBfBZtGgRjh8/jvT0dDx9+hRbtmzB888/D3d3d6X7sOd9/vnnFc77ySefgGEYpZlDbFyI0PHlly1btgyffvopzp07h1GjRsHZ2RlDhgxBUlKS2uvShE8
|
2023-01-12 21:45:54 +02:00
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 640x480 with 1 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
2023-01-12 20:25:12 +02:00
|
|
|
"source": [
|
2023-01-13 20:54:15 +02:00
|
|
|
"plt.plot(corn_year,corn_bu_per_acre,\"o\",markerfacecolor=\"none\",label=\"Corn (BU/ACRE)\")\n",
|
2023-01-12 20:25:12 +02:00
|
|
|
"plt.plot(wheat_year,wheat_bu_per_acre,\"x\",label=\"Wheat (BU/ACRE)\")\n",
|
|
|
|
"plt.xlabel(\"time (calendar year)\")\n",
|
|
|
|
"plt.ylabel(\"Average per acre production\")\n",
|
|
|
|
"plt.title(\"US Agriculture yields, NASS (USDA)\")\n",
|
|
|
|
"plt.legend()\n",
|
|
|
|
"plt.yscale(\"log\")\n",
|
|
|
|
"#plt.show()\n",
|
|
|
|
"#plt.savefig(\"bear-quadratic.pdf\")"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"id": "89c8f489",
|
2023-01-12 16:13:39 +02:00
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"## Potatoes"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-01-12 21:45:54 +02:00
|
|
|
"execution_count": 9,
|
2023-01-12 20:25:12 +02:00
|
|
|
"id": "c31828d0",
|
2023-01-12 16:13:39 +02:00
|
|
|
"metadata": {},
|
2023-01-12 21:45:54 +02:00
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
|
|
|
"array([[ nan, 2022., nan, nan, nan, nan, nan, nan, nan,\n",
|
|
|
|
" nan, nan, nan, nan, 0., nan, nan, nan, nan,\n",
|
|
|
|
" 438., nan],\n",
|
|
|
|
" [ nan, 2021., nan, nan, nan, nan, nan, nan, nan,\n",
|
|
|
|
" nan, nan, nan, nan, 0., nan, nan, nan, nan,\n",
|
|
|
|
" 444., nan],\n",
|
|
|
|
" [ nan, 2020., nan, nan, nan, nan, nan, nan, nan,\n",
|
|
|
|
" nan, nan, nan, nan, 0., nan, nan, nan, nan,\n",
|
|
|
|
" 461., nan]])"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"execution_count": 9,
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
}
|
|
|
|
],
|
2023-01-12 16:13:39 +02:00
|
|
|
"source": [
|
|
|
|
"csv=np.genfromtxt ('./data/potatoes.csv',\n",
|
|
|
|
" skip_header=1,\n",
|
|
|
|
" delimiter=\",\")\n",
|
|
|
|
"csv[0:3]\n",
|
|
|
|
"#csv[0:3].astype(float)"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-01-12 21:45:54 +02:00
|
|
|
"execution_count": 10,
|
2023-01-12 20:25:12 +02:00
|
|
|
"id": "86091fed",
|
2023-01-12 16:13:39 +02:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"potatoes_year=csv[:,1]\n",
|
2023-01-12 20:25:12 +02:00
|
|
|
"potatoes_cwt_per_acre=csv[:,-2]\n",
|
|
|
|
"\n",
|
|
|
|
"lbs_per_cwt=100\n",
|
|
|
|
"#grams_per_lbs\n",
|
|
|
|
"potatoes_kcal_per_gram=77.0/100.0\n",
|
|
|
|
"potatoes_kcal_per_acre=potatoes_cwt_per_acre*lbs_per_cwt*grams_per_lbs*potatoes_kcal_per_gram"
|
2023-01-12 16:13:39 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-01-12 21:45:54 +02:00
|
|
|
"execution_count": 11,
|
2023-01-12 20:25:12 +02:00
|
|
|
"id": "5ea8b2ac",
|
2023-01-12 16:13:39 +02:00
|
|
|
"metadata": {},
|
2023-01-12 21:45:54 +02:00
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
2023-01-13 20:54:15 +02:00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mDLli306dPHYK6FzKOPPoq/vz+bNm0q8z/O9957j8mTJ9OsWTPWrl3Lli1bePLJJw2KLXN59tlnefHFFwH46aefiI6OJjo6mu7du1fofE8//TS2trasX7+ezZs3Y2try0cffcSkSZPo0KEDP/zwA+vXryc/P5/77ruP+Ph4o+dq1aoVDz30ECtWrKCkpERn21dffUWzZs145JFHjB7/7bffMmzYMFxcXPjvf//LDz/8gLu7O8OHDy9X7HzwwQe88cYbDB06lJ9//pmQkBCee+45Tp8+rbPfwoULmTt3LpMmTWLbtm1ERETwzDPP3HUYcOLEifTo0YN33nmHW7dulbu/KZ/Rnj17Ymtry8svv8yGDRtIS0szer6+ffuSlpbG5MmT2bt3L0VFRWbZf/DgQbKzsxk4cKBZx5UmMDCQRo0a8cEHHxAeHl6hHCyZZs2a0aNHD/bv38/t27eV9YsXL7Jz507GjBmDp6cnTz75JOfOnePPP/80eJ4BAwbwv//9z6AQEtQiqtmjJBAYxNzQlVqtlv7v//5PsrKykgBJpVJJgYGB0qxZs0wO0/z5558SIL355pvKOf38/CRfX18d9/22bdskQAoLC9M5fsGCBRIgvf/++3r3YcgdL2+TSUxMlKytraXJkyeXaaevr6/05JNP6q2XDrWYG7oqbbux68nhn6lTp+rsl5KSItnY2Egvvviiznp+fr7k7e0tTZgwocz72rNnjwRIW7ZsUdYuXbok2djYSB988IHe9eV7KCgokNzd3aUHH3xQ53wlJSVSly5dpN69exs9Njc3V3JwcJAeeeQRnWP//vtvCdB5P0ePHi117dq1zHswh+DgYKljx46SJElSZGSkBEhffvmlJEnGQzOmfkYlSZJWrVolOTk5SYAESE2bNpWmTp0q/fnnnzr73bhxQ3r44YeV/aytraVu3bpJb7/9tpSRkVHufXzyyScSIKWnp+usmxu6kiTN71bjxo0VWzw8PKTx48dLW7duNevckiRJEydOlADpypUrytqHH34oAdL27dslSdL8zqlUKumJJ54weI6VK1dKgJSQkFDmeyCo2QiPjqBOoFKpWLFiBYmJiSxfvpynnnqKW7dusWTJEjp27KhXZWIIOTz09NNPK+ecNm0aycnJOl4B+VwTJkzQOX7SpElGzz127Nhyr//HH39QUlLCzJkzy923JlD6nnbs2MHt27eZOnUqt2/fVh4ODg4EBwcrITJjDBgwgC5durBs2TJlbcWKFahUKqZPn270uP3795OTk8OTTz6pc121Ws2IESM4dOgQBQUFBo+Njo7mxo0bTJ48WWe9X79++Pr66qz17t2bY8eOMWPGjLvyGhpi8ODBDBs2jA8//JD8/Hyj+5n6GZX3uXjxIt999x0vvfQSPj4+fPvttwQHB+uEdOzt7dmyZQvx8fEsWbKExx57jMzMTObPn09gYKCeZ6s0ly9fRqVS0bhx44revsLIkSNJSUlhy5YtvPbaa3Ts2JGff/6Zhx56iBdeeMGsc0mlvDCSJCnhqqFDhwKaEO6AAQP48ccfDf485VC4oYRlQe1BCB1BjcTGxgZAL4whc/v2bWxtbfXWfX19CQkJYdWqVZw9e5aIiAhu3Lih5KYYIz8/n02bNtG7d288PT3Jy8sjLy+PRx55BJVKpZMjk52djY2NDe7u7jrnaNKkidHzm1IhlJmZCUCLFi3K3bcmUPqerly5AkCvXr2wtbXVeURERBhtFaDNSy+9xK5duzh9+jS3bt1i5cqVjBs3Dm9vb6PHyNcdN26c3nU/+eQTJEkyWjkk54UYOn/ptdDQUD799FMOHDjAAw88gIeHB4MHD+bw4cPl3pcpfPLJJ2RlZRktxzb
|
2023-01-12 21:45:54 +02:00
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 640x480 with 1 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
2023-01-12 20:25:12 +02:00
|
|
|
"source": [
|
2023-01-13 20:54:15 +02:00
|
|
|
"plt.plot(corn_year,corn_bu_per_acre,\"o\",markerfacecolor=\"none\",label=\"Corn (BU/ACRE)\")\n",
|
2023-01-12 20:25:12 +02:00
|
|
|
"plt.plot(wheat_year,wheat_bu_per_acre,\"x\",label=\"Wheat (BU/ACRE)\")\n",
|
|
|
|
"plt.plot(potatoes_year,potatoes_cwt_per_acre,\"+\",label=\"Potatoes (CWT / ACRE)\")\n",
|
|
|
|
"plt.xlabel(\"time (calendar year)\")\n",
|
|
|
|
"plt.ylabel(\"Average per acre production\")\n",
|
|
|
|
"plt.title(\"US Agriculture yields, NASS (USDA)\")\n",
|
|
|
|
"plt.legend()\n",
|
|
|
|
"plt.yscale(\"log\")\n",
|
|
|
|
"#plt.show()\n",
|
|
|
|
"#plt.savefig(\"bear-quadratic.pdf\")"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"id": "0201b588",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"## Soybeans"
|
|
|
|
]
|
2023-01-12 16:13:39 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-01-12 21:45:54 +02:00
|
|
|
"execution_count": 12,
|
2023-01-12 20:25:12 +02:00
|
|
|
"id": "ce223c5b",
|
2023-01-12 16:13:39 +02:00
|
|
|
"metadata": {},
|
2023-01-12 21:45:54 +02:00
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
|
|
|
"array([[ nan, 2022. , nan, nan, nan, nan, nan, nan,\n",
|
|
|
|
" nan, nan, nan, nan, nan, 0. , nan, nan,\n",
|
|
|
|
" nan, nan, 50.2, nan],\n",
|
|
|
|
" [ nan, 2021. , nan, nan, nan, nan, nan, nan,\n",
|
|
|
|
" nan, nan, nan, nan, nan, 0. , nan, nan,\n",
|
|
|
|
" nan, nan, 51.7, nan],\n",
|
|
|
|
" [ nan, 2020. , nan, nan, nan, nan, nan, nan,\n",
|
|
|
|
" nan, nan, nan, nan, nan, 0. , nan, nan,\n",
|
|
|
|
" nan, nan, 51. , nan]])"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"execution_count": 12,
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
}
|
|
|
|
],
|
2023-01-12 16:13:39 +02:00
|
|
|
"source": [
|
2023-01-12 20:25:12 +02:00
|
|
|
"csv=np.genfromtxt ('./data/soybeans.csv',\n",
|
|
|
|
" skip_header=1,\n",
|
|
|
|
" delimiter=\",\")\n",
|
|
|
|
"csv[0:3]\n",
|
|
|
|
"#csv[0:3].astype(float)"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-01-12 21:45:54 +02:00
|
|
|
"execution_count": 13,
|
2023-01-12 20:25:12 +02:00
|
|
|
"id": "12fe395c",
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"soybeans_year=csv[:,1]\n",
|
2023-01-12 21:45:54 +02:00
|
|
|
"soybeans_bu_per_acre=csv[:,-2]\n",
|
|
|
|
"\n",
|
|
|
|
"soybeans_lbs_per_bu=60\n",
|
|
|
|
"#grams_per_lbs\n",
|
|
|
|
"soybeans_kcal_per_gram=446.0/100.0\n",
|
|
|
|
"soybeans_kcal_per_acre=soybeans_bu_per_acre*soybeans_lbs_per_bu*grams_per_lbs*soybeans_kcal_per_gram"
|
2023-01-12 20:25:12 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-01-12 21:45:54 +02:00
|
|
|
"execution_count": 14,
|
2023-01-12 20:25:12 +02:00
|
|
|
"id": "ae3f6ad4",
|
|
|
|
"metadata": {},
|
2023-01-12 21:45:54 +02:00
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
2023-01-13 20:54:15 +02:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjoAAAHFCAYAAAD7ZFORAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8qNh9FAAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOydeVh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U0yaNOmBrIa66Nu3L/379+fzzz8nOztb77zyfkZVc65fv85PP/3EW2+9hZubG+vWrcPf31/DpWNubs6WLVuIiYlh0aJFPPfcc6SmpjJ79my8vLy0LFsluXnzJgqFAicnp4pevsygQYO4du0aW7Zs4d1336Vt27Zs3bqVYcOG8eabbxq0llTCCiNJkuyu6tevH6B04fbq1YtffvlF599T5QrXFbAsqD0IRUdQIzExMQHQcmOoKCwsxNTUVGvc3d2diRMnEhoaysWLFwkLCyMvL0+OTdFHdnY2mzZtokuXLjg7O5OZmUlmZibPPPMMCoVCI0YmLS0NExMTHBwcNNZo0KCB3vXLkyGUmpoKQJMmTcqcWxMoeU23bt0C4LHHHsPU1FRjCwsL01sqQJ233nqL3bt3c+HCBQoKClixYgUjR47E1dVV7zGq844cOVLrvPPmzUOSJL2ZQ6q4EF3rlxwLCgriq6++4vDhwzz11FM4OjrSt29fjh07VuZ1lYd58+Zx+/ZtvenYhnxGVdjZ2TFmzBi
|
2023-01-12 21:45:54 +02:00
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 640x480 with 1 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
2023-01-12 20:25:12 +02:00
|
|
|
"source": [
|
2023-01-13 20:54:15 +02:00
|
|
|
"plt.plot(corn_year,corn_bu_per_acre,\"o\",markerfacecolor=\"none\",label=\"Corn (BU/ACRE)\")\n",
|
2023-01-12 20:25:12 +02:00
|
|
|
"plt.plot(wheat_year,wheat_bu_per_acre,\"x\",label=\"Wheat (BU/ACRE)\")\n",
|
|
|
|
"plt.plot(potatoes_year,potatoes_cwt_per_acre,\"+\",label=\"Potatoes (CWT / ACRE)\")\n",
|
2023-01-13 20:54:15 +02:00
|
|
|
"plt.plot(soybeans_year,soybeans_bu_per_acre,\"*\",markerfacecolor=\"none\",label=\"Soybeans (BU/ACRE)\")\n",
|
2023-01-12 16:13:39 +02:00
|
|
|
"plt.xlabel(\"time (calendar year)\")\n",
|
2023-01-12 20:25:12 +02:00
|
|
|
"plt.ylabel(\"Average per acre production\")\n",
|
2023-01-12 16:13:39 +02:00
|
|
|
"plt.title(\"US Agriculture yields, NASS (USDA)\")\n",
|
|
|
|
"plt.legend()\n",
|
2023-01-12 20:25:12 +02:00
|
|
|
"plt.yscale(\"log\")\n",
|
|
|
|
"#plt.show()\n",
|
|
|
|
"#plt.savefig(\"bear-quadratic.pdf\")"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"id": "c68984fa",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"## Sugarbeets"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-01-12 21:45:54 +02:00
|
|
|
"execution_count": 15,
|
2023-01-12 20:25:12 +02:00
|
|
|
"id": "6e74b0b8",
|
|
|
|
"metadata": {},
|
2023-01-12 21:45:54 +02:00
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
|
|
|
"array([[ nan, 2022. , nan, nan, nan, nan, nan, nan,\n",
|
|
|
|
" nan, nan, nan, nan, nan, 0. , nan, nan,\n",
|
|
|
|
" nan, nan, 29.1, nan],\n",
|
|
|
|
" [ nan, 2021. , nan, nan, nan, nan, nan, nan,\n",
|
|
|
|
" nan, nan, nan, nan, nan, 0. , nan, nan,\n",
|
|
|
|
" nan, nan, 33.2, nan],\n",
|
|
|
|
" [ nan, 2020. , nan, nan, nan, nan, nan, nan,\n",
|
|
|
|
" nan, nan, nan, nan, nan, 0. , nan, nan,\n",
|
|
|
|
" nan, nan, 29.4, nan]])"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"execution_count": 15,
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
}
|
|
|
|
],
|
2023-01-12 20:25:12 +02:00
|
|
|
"source": [
|
|
|
|
"csv=np.genfromtxt ('./data/sugarbeets.csv',\n",
|
|
|
|
" skip_header=1,\n",
|
|
|
|
" delimiter=\",\")\n",
|
|
|
|
"csv[0:3]\n",
|
|
|
|
"#csv[0:3].astype(float)"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-01-12 21:45:54 +02:00
|
|
|
"execution_count": 16,
|
2023-01-12 20:25:12 +02:00
|
|
|
"id": "ab73b355",
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"sugarbeets_year=csv[:,1]\n",
|
|
|
|
"sugarbeets_tons_per_acre=csv[:,-2]"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-01-12 21:45:54 +02:00
|
|
|
"execution_count": 17,
|
2023-01-12 20:25:12 +02:00
|
|
|
"id": "cbaa454a",
|
|
|
|
"metadata": {},
|
2023-01-12 21:45:54 +02:00
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
2023-01-13 20:54:15 +02:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjoAAAHFCAYAAAD7ZFORAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8qNh9FAAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOydd1RURxuHf0vvHQQEAUWaCIjY0AgoirF3JNiSKIk1dkUTRT9L1KhJLBgMYuzETkyCCoKigIAIRkFAREAF6UWawM73x2ZvdtldYJUmznPOPezOzJ07s4X77ltZhBACCoVCoVAolE6IRHsvgEKhUCgUCqW1oIIOhUKhUCiUTgsVdCgUCoVCoXRaqKBDoVAoFAql00IFHQqFQqFQKJ0WKuhQKBQKhULptFBBh0KhUCgUSqeFCjoUCoVCoVA6LVTQoVAoFAqF0mmhgg6lQ+Lj4wMWi4WCggKh/dbW1nB2duZ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w9tbW2UlJSgpKQEkyZNAovF4vORKSwshJSUFDQ0NPjm6NKli8j5mxMhlJ+fDwAwMDBocmxHoOGeXr9+DQDo168fpKWl+Y7AwECRqQJ4Wbp0KUJDQ5GSkoLa2locOXIEU6dOha6urshzuNedOnWqwHV37twJQojIyCGuX4iw+Ru2eXt744cffkB0dDQ+/fRTaGpqYvjw4YiLi2tyX81h586dKCgoEBmOLc5nlIuqqio8PDzw008/4d69e3j48CG6dOmCDRs2CJjcLC0
|
2023-01-12 21:45:54 +02:00
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 640x480 with 1 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
2023-01-12 20:25:12 +02:00
|
|
|
"source": [
|
2023-01-13 20:54:15 +02:00
|
|
|
"plt.plot(corn_year,corn_bu_per_acre,\"o\",markerfacecolor=\"none\",label=\"Corn (BU/ACRE)\")\n",
|
2023-01-12 20:25:12 +02:00
|
|
|
"plt.plot(wheat_year,wheat_bu_per_acre,\"x\",label=\"Wheat (BU/ACRE)\")\n",
|
|
|
|
"plt.plot(potatoes_year,potatoes_cwt_per_acre,\"+\",label=\"Potatoes (CWT / ACRE)\")\n",
|
2023-01-13 20:54:15 +02:00
|
|
|
"plt.plot(soybeans_year,soybeans_bu_per_acre,\"*\",markerfacecolor=\"none\",label=\"Soybeans (BU/ACRE)\")\n",
|
2023-01-12 20:25:12 +02:00
|
|
|
"plt.plot(sugarbeets_year,sugarbeets_tons_per_acre,\".\",label=\"Sugarbeets (TONS/ACRE)\")\n",
|
|
|
|
"plt.xlabel(\"time (calendar year)\")\n",
|
|
|
|
"plt.ylabel(\"Average per acre production\")\n",
|
|
|
|
"plt.title(\"US Agriculture yields, NASS (USDA)\")\n",
|
|
|
|
"plt.legend()\n",
|
|
|
|
"plt.yscale(\"log\")\n",
|
|
|
|
"#plt.show()\n",
|
|
|
|
"#plt.savefig(\"bear-quadratic.pdf\")"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"id": "884a7b05",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"## Sunflowers"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-01-12 21:45:54 +02:00
|
|
|
"execution_count": 18,
|
2023-01-12 20:25:12 +02:00
|
|
|
"id": "846722a4",
|
|
|
|
"metadata": {},
|
2023-01-12 21:45:54 +02:00
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
|
|
|
"array([[ nan, 2022., nan, nan, nan, nan, nan, nan, nan,\n",
|
|
|
|
" nan, nan, nan, nan, 0., nan, nan, nan, nan,\n",
|
|
|
|
" 1782., nan],\n",
|
|
|
|
" [ nan, 2021., nan, nan, nan, nan, nan, nan, nan,\n",
|
|
|
|
" nan, nan, nan, nan, 0., nan, nan, nan, nan,\n",
|
|
|
|
" 1529., nan],\n",
|
|
|
|
" [ nan, 2020., nan, nan, nan, nan, nan, nan, nan,\n",
|
|
|
|
" nan, nan, nan, nan, 0., nan, nan, nan, nan,\n",
|
|
|
|
" 1790., nan]])"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"execution_count": 18,
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
}
|
|
|
|
],
|
2023-01-12 20:25:12 +02:00
|
|
|
"source": [
|
|
|
|
"csv=np.genfromtxt ('./data/sunflowers.csv',\n",
|
|
|
|
" skip_header=1,\n",
|
|
|
|
" delimiter=\",\")\n",
|
|
|
|
"csv[0:3]\n",
|
|
|
|
"#csv[0:3].astype(float)"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-01-12 21:45:54 +02:00
|
|
|
"execution_count": 19,
|
2023-01-12 20:25:12 +02:00
|
|
|
"id": "c79d0d11",
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"sunflowers_year=csv[:,1]\n",
|
2023-01-12 21:45:54 +02:00
|
|
|
"sunflowers_lbs_per_acre=csv[:,-2]\n",
|
|
|
|
"\n",
|
|
|
|
"#grams_per_lbs\n",
|
|
|
|
"sunflowers_kcal_per_gram=584.0/100.0\n",
|
|
|
|
"sunflowers_kcal_per_acre=sunflowers_lbs_per_acre*grams_per_lbs*sunflowers_kcal_per_gram"
|
2023-01-12 20:25:12 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-01-13 20:54:15 +02:00
|
|
|
"execution_count": 34,
|
2023-01-12 20:25:12 +02:00
|
|
|
"id": "569111b9",
|
|
|
|
"metadata": {},
|
2023-01-12 21:45:54 +02:00
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
2023-01-13 20:54:15 +02:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjsAAAHFCAYAAAAUpjivAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8qNh9FAAAACXBIWXMAAA9hAAAPYQGoP6dpAADMGklEQVR4nOzdd3hUxdfA8e+mJ6SQXiBC6CShB5CioRdBQFAUUAFRFBAEFARBRaQIqKCo+FMpiiC+KiAq0qv0jpDQQ08IhDRISNv7/nHdzW6yS7KQnvN5nn12M/fuvTObhBxmzsxoFEVREEIIIYQoo6yKuwJCCCGEEIVJgh0hhBBClGkS7AghhBCiTJNgRwghhBBlmgQ7QgghhCjTJNgRQgghRJkmwY4QQgghyjQJdoQQQghRpkmwI4QQQogyTYIdUaJNmTIFjUbDrVu3TB4PDQ2lTZs2RmVXrlxh+PDh1KpVC0dHRzw8PKhXrx6vvPIKV65cyfe916xZg0ajwdPTk7S0tIdpxn3p2lhYLl68iEajYcmSJfqy3bt3M2XKFBISEgr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X19fs9fPz8yhmzdvAlC5cuU8zy0Jcrbpxo0bADRt2hRbW1ujx88//2x2GQFDo0aNYvPmzZw+fZqMjAy+/fZbnn76afz8/My+R3ffp59+Otd9Z82ahaIoZmcU6fJETF0/Z9nEiRP5+OOP2bt3L127dsXT05P27dtz8ODBPNuVH7NmzeLWrVtmp2pb8jOq4+bmRr9
|
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 640x480 with 1 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"plt.plot(corn_year,corn_bu_per_acre,\"o\",markerfacecolor=\"none\",label=\"Corn (BU/ACRE)\")\n",
|
|
|
|
"#plt.plot(wheat_year,wheat_bu_per_acre,\"x\",label=\"Wheat (BU/ACRE)\")\n",
|
|
|
|
"plt.plot(potatoes_year,potatoes_cwt_per_acre,\"+\",label=\"Potatoes (CWT/ACRE)\")\n",
|
|
|
|
"#plt.plot(soybeans_year,soybeans_bu_per_acre,\"*\",markerfacecolor=\"none\",label=\"Soybeans (BU/ACRE)\")\n",
|
|
|
|
"#plt.plot(sunflowers_year,sunflowers_lbs_per_acre,\"d\",markerfacecolor=\"none\",label=\"Sunflowers (LB/ACRE)\")\n",
|
|
|
|
"#plt.plot(sugarbeets_year,sugarbeets_tons_per_acre,\".\",label=\"Sugarbeets (TONS/ACRE)\")\n",
|
|
|
|
"plt.xlabel(\"time (calendar year)\")\n",
|
|
|
|
"plt.ylabel(\"Average per acre production\")\n",
|
|
|
|
"plt.title(\"US Agriculture yields, NASS (USDA)\")\n",
|
|
|
|
"plt.legend()\n",
|
|
|
|
"#plt.yscale(\"log\")\n",
|
|
|
|
"plt.grid()\n",
|
|
|
|
"#plt.show()\n",
|
|
|
|
"plt.savefig(\"corn_potatoes_raw_production_per_acre.pdf\")"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 31,
|
|
|
|
"id": "536bea26",
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjoAAAHFCAYAAAD7ZFORAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8qNh9FAAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOydd1hT1//H3zfMMAIYQECRIQICIkvcAlXBra0Td63ar6PO1lGtWuuoWrXLUSvugXWW2rplKSg4QAWUraggyJZNcn5/5JfbXJIgWBDF83qe+5ice+4ZN4n3w2cyhBACCoVCoVAolGYIr6kXQKFQKBQKhdJYUEGHQqFQKBRKs4UKOhQKhUKhUJotVNChUCgUCoXSbKGCDoVCoVAolGYLFXQoFAqFQqE0W6igQ6FQKBQKpdlCBR0KhUKhUCjNFiroUCgUCoVCabZQQYfyTrJq1SowDIOXL18qPO/k5ARvb29OW0ZGBmbOnAlbW1vw+Xy0aNECHTp0wLRp05CRkVHnuYOCgsAwDIRCISoqKv7LNmpFusfGIj09HQzDYN++fWxbREQEVq1ahYKCgkabt7HZt28fGIZBenp6o17r7e0t9x1rSLy9vcEwDPr16yd3TvrZ/fDDDwqvrct3tKSkBBs2bEDHjh0hEAigq6uLtm3bYtSoUQgNDeX0TUhIwIQJE2BtbQ1NTU0YGhrCzc0Ns2fPRlFRUZ32s3r1ajg4OEAsFtdpDz/88IPcZ1FVVYXffvsNnTp1QosWLaClpQULCwsMHToUp0+flrs/0kNNTQ1CoRCdOnXC/PnzERcXV+taFyxYAIZhMGjQIIXnExMToa6ujjt37tRp75R3GyroUJoFT58+hZubGy5duoQFCxbgn3/+wZ49e+Dv74/o6GikpqbWeayAgAAAQF5eHs6cOdNIKwamTp2KyMjIRhtfEREREfj222/fa0Fn4MCBiIyMhKmpaVMvpUG4cOECrl69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aACAvXrxg21avXk0AkPPnzxNCJL85hmHIhAkTFI7x+++/EwAkISGh1ntAebehGh1Ks4BhGOzcuROpqanYvn07Pv30U1RVVWHr1q1wdHSUizJRhNQ8NGXKFHbMyZMn4/HjxxytgHSsUaNGca739/dXOvbw4cNfO/+lS5cgEokwa9as1/Z9F6i5pwsXLqC6uhoTJ05EdXU1e2hqasLLy4s1kSnD29sbHTt2xLZt29i2nTt3gmEYTJ8+Xel1ERERyMvLw6RJkzjzisVi9OvXD9HR0SgpKVF4bWRkJMrLyzFu3DhOe7du3WBhYcFp8/T0RGxsLGbOnPmftIaK6N27N3x9fbF69WoUFxcr7VfX76i0z9OnT3HkyBHMmTMH5ubmOHToELy8vDgmHQ0NDZw+fRrx8fHYunUrxowZg5ycHKxduxbt27eX02zV5Pnz52AYBoaGhm+6fZYBAwbgyZMnOH36NL788ks4OjrizJkzGDJkCGbPnl2vsUgNLQwhhDVX9e3bF4DEhOvt7Y2TJ08q/DylpnBFDsuU9wcq6FDeSVRVVQFAzowhpbq6GmpqanLtFhYWmDFjBgICApCUlIRjx46hvLyc9U1RRnFxMY4fPw5PT08YGRmhoKAABQUF+Pjjj8EwDMdHJjc3F6qqqmjRogVnjJYtWyodvy4RQjk5OQCA1q1bv7bvu0DNPb148QIA0KlTJ6ipqXGOY8eOKU0VIMucOXNw5coVPHr0CFVVVfj9998xYsQImJiYKL1GOu+IESPk5t2wYQMIIUojh6R+IYrGr9m2dOlS/PDDD7hx4wb69+8PoVCI3r1749atW6/dV13YsGEDXr58qTQcuz7fUSl6enrw9/fHTz/9hJs3b+LevXto2bIlli1bJmdya9+
|
2023-01-12 21:45:54 +02:00
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 640x480 with 1 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
2023-01-12 20:25:12 +02:00
|
|
|
"source": [
|
2023-01-13 20:54:15 +02:00
|
|
|
"plt.plot(corn_year,corn_bu_per_acre,\"o\",markerfacecolor=\"none\",label=\"Corn (BU/ACRE)\")\n",
|
2023-01-12 20:25:12 +02:00
|
|
|
"plt.plot(wheat_year,wheat_bu_per_acre,\"x\",label=\"Wheat (BU/ACRE)\")\n",
|
2023-01-13 20:54:15 +02:00
|
|
|
"plt.plot(potatoes_year,potatoes_cwt_per_acre,\"+\",label=\"Potatoes (CWT/ACRE)\")\n",
|
|
|
|
"plt.plot(soybeans_year,soybeans_bu_per_acre,\"*\",markerfacecolor=\"none\",label=\"Soybeans (BU/ACRE)\")\n",
|
|
|
|
"plt.plot(sunflowers_year,sunflowers_lbs_per_acre,\"d\",markerfacecolor=\"none\",label=\"Sunflowers (LB/ACRE)\")\n",
|
2023-01-12 20:25:12 +02:00
|
|
|
"plt.plot(sugarbeets_year,sugarbeets_tons_per_acre,\".\",label=\"Sugarbeets (TONS/ACRE)\")\n",
|
|
|
|
"plt.xlabel(\"time (calendar year)\")\n",
|
|
|
|
"plt.ylabel(\"Average per acre production\")\n",
|
|
|
|
"plt.title(\"US Agriculture yields, NASS (USDA)\")\n",
|
|
|
|
"plt.legend()\n",
|
|
|
|
"plt.yscale(\"log\")\n",
|
2023-01-13 20:54:15 +02:00
|
|
|
"plt.grid()\n",
|
2023-01-12 16:13:39 +02:00
|
|
|
"#plt.show()\n",
|
2023-01-13 20:54:15 +02:00
|
|
|
"plt.savefig(\"raw_production_per_acre.pdf\")"
|
2023-01-12 16:13:39 +02:00
|
|
|
]
|
2023-01-12 20:25:12 +02:00
|
|
|
},
|
2023-01-12 21:45:54 +02:00
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"id": "5828e06b",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"### All together, kcal/acre"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": null,
|
|
|
|
"id": "9d58d630",
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 21,
|
|
|
|
"id": "7903705c",
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
2023-01-13 20:54:15 +02:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjoAAAHFCAYAAAD7ZFORAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8qNh9FAAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOzdd1zV1f/A8ddl770VEBFQxIXmTHFrucqZmWlDSy1Lzcys1NIcDcu+SmmOfmZqmqmluQHNhTgTcONmb9nj/P643o9clqAgjvN8PHwIn3nu5XJ533Pe57xVQgiBJEmSJEnSE0inphsgSZIkSZJUXWSgI0mSJEnSE0sGOpIkSZIkPbFkoCNJkiRJ0hNLBjqSJEmSJD2xZKAjSZIkSdITSwY6kiRJkiQ9sWSgI0mSJEnSE0sGOpIkSZIkPbFkoPOIWLhwISqVCj8/v5puyiOnTp069O7du9R9YWFhqFQqVq5cqbV9x44ddO/eHRcXFwwNDXFxcaFjx47MnTu3Uvfu378/KpWKd955536bXyF16tRh5MiR1Xb9GTNmoFKptLYtXry4xPP2uOnYsSMdO3as1nOvXLlS6mvsfowcORIzM7MHvs6Trk6dOqhUKt5+++0S+4KDg1GpVGzYsKHUcyvyXpqYmMjUqVPx9fXF1NQUS0tL6tevz/Dhwzl9+rTWsUeOHOHFF1/Ezc0NQ0NDHB0dadOmDZMmTarw43n99dfp2bNnhR/DO++8U+L3NSMjg3nz5tGkSRMsLCwwNzfH09OTwYMHExISUuLamn8GBgbY29vTrl07pk2bxtWrV8tt673e8/bs2YOZmRk3b96s6MOvcTLQeUQsX74cgPDwcI4cOVLDrXm8/fjjj/Ts2RMLCwv+97//sWP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+Ih69eqJVatWiZCQEPHHH3+ISZMmlfhZFDdixAhhYGAg3NzcxOzZs8XOnTvFjBkzhJ6enujdu7dy3ObNmwUgdu3apXX+1q1bBSC2bt1a5j1OnTolALF06VKt7eHh4QIQixYtUraNGjVK6Ovri0mTJont27eL3377TdSvX184OjqKmJgY5bjAwEAxZ84csWXLFhESEiJ++eUX0aRJE+Hj4yNyc3OV4zSvM3d3dzFlyhSxa9cusWnTpnKfk9JofuczMzNFrVq1RPv27ZV9ZfVYVOS9VAgh/v33XwGIZ555Rvz5558iISGhzHa8+eabAhDvvvuuOHz4sNZjrYj/+7//E4CIiIjQ2l7ZHp2oqCihr68vvL29xa+//ipu3bpV5j3vdW0hhHB2dhaenp5a2yr6nqfx3HPPCX9//zLv8SiRgU4N0/wi/Pjjj0IIIdLT04WZmZnWL/bp06cFIJYsWaJ1bsuWLUXz5s2V7+fMmSN0dHTE0aNHtY7bsGGDAMS2bduUbYCwtLQUSUlJ5bavoKBA5OXlic8//1zY2toqf6A0b5pTpkzROn7NmjUC0Pqj/dZbbwkzMzNx9epVrWO//vprAYjw8PBy21DZQOfixYvCz89PAAIQxsbGokuXLuJ///tfhd+oXn/9dQGIyMhIIcTdN49PP/1U67hBgwYJU1NTER8fr2wrKCgQvr6+pQY6urq64ty5c6U+xqLP2eeff17qH7qiHiTQEaLsoavKBjqA2LNnj9axlXktlmbEiBHCwcFB5OTkKNvmzZsndHR0tNpVPFjRvP7++OMPretpXieLFy8u89zAwEABiM2bN2udO2rUKK3nMyEhQQDiu+++K/cxlPW4APH9999rbZ89e7YAxL///iuEUL+G6tatK/r166d13HPPPSc8PT3LDRQ1j61p06Za28aMGSMsLCxEenq6EEKIQ4c
|
2023-01-12 21:45:54 +02:00
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 640x480 with 1 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
2023-01-13 20:54:15 +02:00
|
|
|
"plt.plot(corn_year,corn_kcal_per_acre,\"o\",markerfacecolor=\"none\",label=\"Corn\")\n",
|
2023-01-12 21:45:54 +02:00
|
|
|
"plt.plot(wheat_year,wheat_kcal_per_acre,\"x\",label=\"Wheat\")\n",
|
|
|
|
"plt.plot(potatoes_year,potatoes_kcal_per_acre,\"+\",label=\"Potatoes\")\n",
|
2023-01-13 20:54:15 +02:00
|
|
|
"plt.plot(soybeans_year,soybeans_kcal_per_acre,\"*\",markerfacecolor=\"none\",label=\"Soybeans\")\n",
|
2023-01-12 21:45:54 +02:00
|
|
|
"#plt.plot(sugarbeets_year,sugarbeets_kcal_per_acre,\".\",label=\"Sugarbeets\")\n",
|
2023-01-13 20:54:15 +02:00
|
|
|
"plt.plot(sunflowers_year,sunflowers_kcal_per_acre,\"d\",markerfacecolor=\"none\",label=\"Sunflowers\")\n",
|
2023-01-12 21:45:54 +02:00
|
|
|
"plt.xlabel(\"time (calendar year)\")\n",
|
|
|
|
"plt.ylabel(\"kcal/acre production\")\n",
|
|
|
|
"plt.title(\"Average US Agriculture yields by year, NASS (USDA)\")\n",
|
|
|
|
"plt.legend()\n",
|
|
|
|
"plt.yscale(\"log\")\n",
|
|
|
|
"#plt.show()\n",
|
|
|
|
"#plt.savefig(\"bear-quadratic.pdf\")"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-01-13 20:54:15 +02:00
|
|
|
"execution_count": 29,
|
2023-01-12 21:45:54 +02:00
|
|
|
"id": "db78da0c",
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
2023-01-13 20:54:15 +02:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjMAAAHFCAYAAAAHcXhbAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8qNh9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dHW0vi///s/AYiwsDCN8rLemYmMjBS6urrCzc1N/Pzzz+LevXslXvNx5xZCCAcHB9GwYUONstJ+5qn0799ftGrVqsRrVCUymKkEqjf7d999J4QQIiUlRZiYmGj88p4/f14AYvXq1RrHtm3bVrRu3Vr9+NNPPxVaWlri1KlTGvtt27ZNAGLPnj3qMkCYm5uLhISER9YvLy9P5OTkiEWLFgkrKyv1l5Dqg/Hdd9/V2P+XX34RgMYX86uvvipMTEzEzZs3Nfb94osvBCAuXrz4yDqUNZiJiIgQTZs2FYAAhKGhoejZs6f45ptvSv1hNGXKFAGI8PBwIcTDD4gPPvhAY79Ro0YJY2NjERcXpy7Ly8sTXl5exQYz2tra4vLly8W2seBztmjRomK/zAp6mmBGiJK7mcoazAAiMDBQY9+yvBeLM3HiRGFrayuysrLUZUuWLBFaWloa9SockKjef7/99pvG+VTvk1WrVpV4rL+/vwDE77//rnHs//73P43n8/79+wIQy5cvf2QbSmoXIL7++muN8o8//lgA4tixY0KI/PeQq6urGDJkiMZ+/fv3Fw0bNnxkMKhqW8uWLTXKfH19hZmZmUhJSRFCCHH
|
2023-01-12 21:45:54 +02:00
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 640x480 with 1 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
2023-01-13 20:54:15 +02:00
|
|
|
"plt.plot(corn_year,corn_kcal_per_acre/1.0e6,\"o\",markerfacecolor=\"none\",label=\"Corn\")\n",
|
|
|
|
"plt.plot(wheat_year,wheat_kcal_per_acre/1.0e6,\"x\",label=\"Wheat\")\n",
|
|
|
|
"plt.plot(potatoes_year,potatoes_kcal_per_acre/1.0e6,\"+\",label=\"Potatoes\")\n",
|
|
|
|
"plt.plot(soybeans_year,soybeans_kcal_per_acre/1.0e6,\"*\",markerfacecolor=\"none\",label=\"Soybeans\")\n",
|
2023-01-12 21:45:54 +02:00
|
|
|
"#plt.plot(sugarbeets_year,sugarbeets_kcal_per_acre,\".\",label=\"Sugarbeets\")\n",
|
2023-01-13 20:54:15 +02:00
|
|
|
"plt.plot(sunflowers_year,sunflowers_kcal_per_acre/1.0e6,\"d\",markerfacecolor=\"none\",label=\"Sunflowers\")\n",
|
2023-01-12 21:45:54 +02:00
|
|
|
"plt.xlabel(\"time (calendar year)\")\n",
|
2023-01-13 20:54:15 +02:00
|
|
|
"plt.ylabel(\"average yield (million kcal / acre)\")\n",
|
2023-01-12 21:45:54 +02:00
|
|
|
"plt.title(\"Average US Agriculture yields by year, NASS (USDA)\")\n",
|
|
|
|
"plt.legend()\n",
|
|
|
|
"plt.grid()\n",
|
|
|
|
"#plt.yscale(\"log\")\n",
|
|
|
|
"#plt.show()\n",
|
2023-01-13 20:54:15 +02:00
|
|
|
"plt.savefig(\"kcal_per_acre_yields.pdf\")"
|
2023-01-12 21:45:54 +02:00
|
|
|
]
|
|
|
|
},
|
2023-01-12 20:25:12 +02:00
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": null,
|
2023-01-12 21:45:54 +02:00
|
|
|
"id": "26e9a397",
|
2023-01-12 20:25:12 +02:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": []
|
2023-01-12 16:13:39 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"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.13"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"nbformat": 4,
|
|
|
|
"nbformat_minor": 5
|
|
|
|
}
|