_覓 | 覦覈襦 | 豕蠏手 | 殊螳 | 譯殊碁 |
FrontPage › DataFrameSQL襦る蠍
|
|
覦覯1 . 蠏碁磯.. 覘螳 . 覦覯2襦 .
[edit]
1 覦覯1: pysqldf 殊企襴 #from pysqldf import SQLDF import pandas as pd import io txt = io.StringIO(""" col1 col2 a 1 b 2 c 3 d 4 """) df = pd.read_csv(txt, sep="\t") df sqldf = SQLDF(globals()) sqldf.execute("select * from df limit 3;") [edit]
2 覦覯2: pandasql 殊企襴 #from pandasql import sqldf import pandas as pd import io txt = io.StringIO(""" col1 col2 a 1 b 2 c 3 d 4 """) df = pd.read_csv(txt, sep="\t") df pysqldf = lambda q: sqldf(q, globals()) df2 = pysqldf("select * from df limit 3;") df2
鏤
|
れ ろ襯 ル碁 覦朱蓋. ろ 螻 炎概 螳 . ろ襯 螻 覓朱磯螳? れ 殊伎磯螳? 螳讌 蠍語 螳 炎概 蟆一 蟆企. (覈壱語) |