12-21-2022, 04:50 AM
(This post was last modified: 12-21-2022, 05:44 AM by shreekantgosavi.)
Paste below script in meta information script section.
Provide required credentials.
import pandas as pd
from sqlalchemy import create_engine
def read_data():
engine = create_engine('mysql://root:root@localhost/db')
#dbsystem://username:password@host/db
df = pd.read_sql('SELECT * from table_name', con=engine)
return df
Provide required credentials.
import pandas as pd
from sqlalchemy import create_engine
def read_data():
engine = create_engine('mysql://root:root@localhost/db')
#dbsystem://username:password@host/db
df = pd.read_sql('SELECT * from table_name', con=engine)
return df