Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
349 changes: 349 additions & 0 deletions StreamLit_Trial.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,349 @@
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"name": "StreamLit Trial",
"provenance": [],
"mount_file_id": "1LdJ_fIjF3ezuvGqPvRmwTbEL0rhKsA8N",
"authorship_tag": "ABX9TyMBGouLOP7a/YsFt2cgW+V+",
"include_colab_link": true
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
},
"accelerator": "GPU"
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/github/LilyElizabethJohn/GithubWorkshop/blob/master/StreamLit_Trial.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"cell_type": "code",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "j1k0Hk-7Didt",
"outputId": "b8483edf-da29-4c00-c4c3-bfa6db6d644d"
},
"source": [
"print(\"Hello StreamLit\")"
],
"execution_count": 1,
"outputs": [
{
"output_type": "stream",
"text": [
"Hello StreamLit\n"
],
"name": "stdout"
}
]
},
{
"cell_type": "code",
"metadata": {
"id": "fH1IsekxD0gY"
},
"source": [
""
],
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"metadata": {
"id": "mmSN05GND5Ll"
},
"source": [
""
],
"execution_count": null,
"outputs": []
},
{
"cell_type": "markdown",
"metadata": {
"id": "v6ASSY2CD6ZH"
},
"source": [
"Trying out Google Colab"
]
},
{
"cell_type": "code",
"metadata": {
"id": "_GSP4VqyD9Hn"
},
"source": [
""
],
"execution_count": null,
"outputs": []
},
{
"cell_type": "markdown",
"metadata": {
"id": "Y_D8jmEEEE8z"
},
"source": [
"*Trying* **Bold**"
]
},
{
"cell_type": "code",
"metadata": {
"id": "ul-MR5azENsI"
},
"source": [
"import pandas as pd"
],
"execution_count": 2,
"outputs": []
},
{
"cell_type": "code",
"metadata": {
"id": "vJaxYEVnE-cY"
},
"source": [
"df=pd.read_csv('/content/share-global-forest.csv')"
],
"execution_count": 6,
"outputs": []
},
{
"cell_type": "code",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 204
},
"id": "dag2BVk5FDA2",
"outputId": "38e829b2-d17d-4b83-c815-7de650131b90"
},
"source": [
"df.head()"
],
"execution_count": 7,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>Entity</th>\n",
" <th>Code</th>\n",
" <th>Year</th>\n",
" <th>Share of global forest area</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>Afghanistan</td>\n",
" <td>AFG</td>\n",
" <td>1990</td>\n",
" <td>0.028525</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>Afghanistan</td>\n",
" <td>AFG</td>\n",
" <td>1991</td>\n",
" <td>0.028578</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>Afghanistan</td>\n",
" <td>AFG</td>\n",
" <td>1992</td>\n",
" <td>0.028631</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>Afghanistan</td>\n",
" <td>AFG</td>\n",
" <td>1993</td>\n",
" <td>0.028684</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>Afghanistan</td>\n",
" <td>AFG</td>\n",
" <td>1994</td>\n",
" <td>0.028738</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" Entity Code Year Share of global forest area\n",
"0 Afghanistan AFG 1990 0.028525\n",
"1 Afghanistan AFG 1991 0.028578\n",
"2 Afghanistan AFG 1992 0.028631\n",
"3 Afghanistan AFG 1993 0.028684\n",
"4 Afghanistan AFG 1994 0.028738"
]
},
"metadata": {
"tags": []
},
"execution_count": 7
}
]
},
{
"cell_type": "code",
"metadata": {
"id": "f9ERV2EiFSyf"
},
"source": [
"df2=pd.read_csv('/content/drive/MyDrive/share-global-forest.csv')"
],
"execution_count": 8,
"outputs": []
},
{
"cell_type": "code",
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 204
},
"id": "FG-_rIheF1Bp",
"outputId": "556486c1-3614-44d6-cead-9077d097ef04"
},
"source": [
"df2.head()"
],
"execution_count": 9,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>Entity</th>\n",
" <th>Code</th>\n",
" <th>Year</th>\n",
" <th>Share of global forest area</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>Afghanistan</td>\n",
" <td>AFG</td>\n",
" <td>1990</td>\n",
" <td>0.028525</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>Afghanistan</td>\n",
" <td>AFG</td>\n",
" <td>1991</td>\n",
" <td>0.028578</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>Afghanistan</td>\n",
" <td>AFG</td>\n",
" <td>1992</td>\n",
" <td>0.028631</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>Afghanistan</td>\n",
" <td>AFG</td>\n",
" <td>1993</td>\n",
" <td>0.028684</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>Afghanistan</td>\n",
" <td>AFG</td>\n",
" <td>1994</td>\n",
" <td>0.028738</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" Entity Code Year Share of global forest area\n",
"0 Afghanistan AFG 1990 0.028525\n",
"1 Afghanistan AFG 1991 0.028578\n",
"2 Afghanistan AFG 1992 0.028631\n",
"3 Afghanistan AFG 1993 0.028684\n",
"4 Afghanistan AFG 1994 0.028738"
]
},
"metadata": {
"tags": []
},
"execution_count": 9
}
]
},
{
"cell_type": "code",
"metadata": {
"id": "BL53GI_tF2iu"
},
"source": [
""
],
"execution_count": null,
"outputs": []
}
]
}
4 changes: 0 additions & 4 deletions delete_me.txt

This file was deleted.

6 changes: 6 additions & 0 deletions lily.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Your name:Lily
Why you came to the workshop?git confuses me :)
Is this your first event? No
Favorite ice cream flavor? Mango
What is the name of the person sitting to the right and left of you? No Idea
Do you want to contribute to open source in the future? Interesting thought - Maybe