【发布时间】:2015-10-22 00:30:06
【问题描述】:
如何获取 DataFrame 的名称并将其打印为字符串?
例子:
boston(分配给 csv 文件的变量名称)
import pandas as pd
boston = pd.read_csv('boston.csv')
print('The winner is team A based on the %s table.) % boston
【问题讨论】:
标签: python pandas dataframe attributes