行
def searcher():
print("Please enter the term you would like the definition for")
find = input()
with open("glossaryterms.txt", "r") as f:
words = list(map(str.strip, f.readlines()))
try:
print(words[words.index(find) + 1])
except:
print("Sorry the word is not found.")
add one row in a pandas.DataFrame 【跟着stackoverflow学Pandas】add one row in a pandas.DataFrame -DataFrame添加行 这里 Series 必须是 dict-like 类型
列
pandas 选择某几列
col_n = [‘名称’,’收盘价’,’日期’]
a = pd.DataFrame(df,columns = col_n)
本文由 xigrug 创作,采用 知识共享署名4.0 国际许可协议进行许可
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
最后编辑时间为:2018-06-22 10:13:56