Spaces:
Runtime error
Runtime error
File size: 961 Bytes
d3f54c7 33fa8fe c7a760b 33fa8fe e71b7c1 33fa8fe c7a760b 33fa8fe c7a760b 33fa8fe 335c3b7 d3f54c7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
import streamlit as st
# from streamlit_option_menu import option_menu
# import os
import pandas as pd
# from pymongo.mongo_client import MongoClient
# from dotenv import load_dotenv
# from pymongo.server_api import ServerApi
# load_dotenv()
# uri = os.environ["MONGO_CONNECTION_STRING"]
# # Create a new client and connect to the server
# client = MongoClient(uri, ssl=False, server_api=ServerApi('1'), tls=False)
# db = client["myapp"]
# col = db["users"]
# newuser = {
# "username": "John",
# "password": "sdgsg"
# }
# col.insert_one(newuser)
# print("done!")
# # Send a ping to confirm a successful connection
# try:
# client.admin.command('ping')
# print("Pinged your deployment. You successfully connected to MongoDB!")
# except Exception as e:
# print(e)
# option_menu(None, ["Login", "SignUp"], orientation="horizontal")
with open("data.json")as f:
data = json.load(f)
df = pd.Dataframe(data["reminders"])
df
|