Python Mysql Mudah Dengan Pandas

  Umum
import pymysql
import  pandas

con = pymysql.connect("localhost","mfahri","","")
query = "SELECT * FROM `tabel_faktur`"

df = pandas.read_sql(query,con)

dataframe = pandas.DataFrame(df)
print(dataframe)

LEAVE A COMMENT