Angepasst an neue DataDump
This commit is contained in:
parent
a39f0e8bd1
commit
fde2f7ffb7
14
Data_Analysis.py
Normal file
14
Data_Analysis.py
Normal 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)
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -5,7 +5,7 @@ import MySQLdb #Version 2.2.4
|
|||||||
import pandas as pd #Version 2.2.3
|
import pandas as pd #Version 2.2.3
|
||||||
import plotly.express as px #Version 5.24.1
|
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 = db.cursor()
|
||||||
|
|
||||||
cur.execute("SELECT JSON_EXTRACT(header, '$.Date') "
|
cur.execute("SELECT JSON_EXTRACT(header, '$.Date') "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user