awacke1 commited on
Commit
3198067
·
1 Parent(s): 4470381

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +32 -0
app.py ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import pandas as pd
3
+ import emoji
4
+
5
+ # Data
6
+ data = {
7
+ 'Animal': ['White-Tailed Deer', 'Eastern Gray Squirrel', 'Striped Skunk', 'Common Loon', 'American Beaver',
8
+ 'North American River Otter', 'American Black Bear', 'Bald Eagle', 'Red Fox', 'Eastern Cottontail'],
9
+ 'Emoji': [emoji.emojize(':deer:', use_aliases=True), emoji.emojize(':chipmunk:', use_aliases=True),
10
+ emoji.emojize(':skunk:', use_aliases=True), emoji.emojize(':duck:', use_aliases=True),
11
+ emoji.emojize(':beaver:', use_aliases=True), emoji.emojize(':otter:', use_aliases=True),
12
+ emoji.emojize(':bear:', use_aliases=True), emoji.emojize(':eagle:', use_aliases=True),
13
+ emoji.emojize(':fox_face:', use_aliases=True), emoji.emojize(':rabbit:', use_aliases=True)],
14
+ 'Description': ['A medium-sized deer native to the United States.',
15
+ 'A tree-dwelling rodent commonly found in urban areas.',
16
+ 'A nocturnal mammal known for its ability to spray a strong-smelling liquid to ward off predators.',
17
+ 'A water bird recognized as the state bird of Minnesota.',
18
+ 'A large aquatic rodent recognized for building dams, canals, and lodges.',
19
+ 'A semi-aquatic mammal known for its playfulness and dexterity.',
20
+ 'The most common bear species in North America.',
21
+ 'A bird of prey recognized as the national bird of the United States.',
22
+ 'A small, carnivorous mammal found throughout the Northern Hemisphere.',
23
+ 'A small mammal commonly found in meadows and grasslands.']
24
+ }
25
+
26
+ df = pd.DataFrame(data)
27
+
28
+ # Streamlit app
29
+ st.title("Top Ten Animals in Minnesota")
30
+
31
+ # Convert dataframe to markdown
32
+ st.markdown(df.to_markdown(index=False))