Angepasst an neue DataDump

main
mmaurostoffel 2024-10-05 16:47:19 +02:00
parent a39f0e8bd1
commit fde2f7ffb7
2 changed files with 15 additions and 1 deletions

14
Data_Analysis.py Normal file
View File

@ -0,0 +1,14 @@
import MySQLdb
db = MySQLdb.connect(host="localhost",user="root",passwd="admin",db="consultancy")
cur = db.cursor()
cur.execute("SELECT JSON_EXTRACT(header, '$.Date') "
"FROM extractions ")
dateoutput = cur.fetchall()
db.close()
print(dateoutput)

View File

@ -5,7 +5,7 @@ import MySQLdb #Version 2.2.4
import pandas as pd #Version 2.2.3
import plotly.express as px #Version 5.24.1
db = MySQLdb.connect(host="localhost",user="root",passwd="admin",db="heiraterei")
db = MySQLdb.connect(host="localhost",user="root",passwd="admin",db="consultancy")
cur = db.cursor()
cur.execute("SELECT JSON_EXTRACT(header, '$.Date') "