以我习惯的postgresql为例。
import pandas as pd
from sqlalchemy import create_engine
sql_query="select * from stock where id_stock='SZ300364' "
df=pd.read_sql(sql_query,engine)
然后所有的表头都一一对应。
以我习惯的postgresql为例。
import pandas as pd
from sqlalchemy import create_engine
sql_query="select * from stock where id_stock='SZ300364' "
df=pd.read_sql(sql_query,engine)
然后所有的表头都一一对应。