Spaces:
Sleeping
Sleeping
import streamlit as st | |
import pandas as pd | |
import emoji | |
# Data | |
data = { | |
'Animal': ['White-Tailed Deer', 'Eastern Gray Squirrel', 'Striped Skunk', 'Common Loon', 'American Beaver', | |
'North American River Otter', 'American Black Bear', 'Bald Eagle', 'Red Fox', 'Eastern Cottontail'], | |
'Emoji': [emoji.emojize(':deer:', use_aliases=True), emoji.emojize(':chipmunk:', use_aliases=True), | |
emoji.emojize(':skunk:', use_aliases=True), emoji.emojize(':duck:', use_aliases=True), | |
emoji.emojize(':beaver:', use_aliases=True), emoji.emojize(':otter:', use_aliases=True), | |
emoji.emojize(':bear:', use_aliases=True), emoji.emojize(':eagle:', use_aliases=True), | |
emoji.emojize(':fox_face:', use_aliases=True), emoji.emojize(':rabbit:', use_aliases=True)], | |
'Description': ['A medium-sized deer native to the United States.', | |
'A tree-dwelling rodent commonly found in urban areas.', | |
'A nocturnal mammal known for its ability to spray a strong-smelling liquid to ward off predators.', | |
'A water bird recognized as the state bird of Minnesota.', | |
'A large aquatic rodent recognized for building dams, canals, and lodges.', | |
'A semi-aquatic mammal known for its playfulness and dexterity.', | |
'The most common bear species in North America.', | |
'A bird of prey recognized as the national bird of the United States.', | |
'A small, carnivorous mammal found throughout the Northern Hemisphere.', | |
'A small mammal commonly found in meadows and grasslands.'] | |
} | |
df = pd.DataFrame(data) | |
# Streamlit app | |
st.title("Top Ten Animals in Minnesota") | |
# Convert dataframe to markdown | |
st.markdown(df.to_markdown(index=False)) | |