标签: python pandas dataframe
有人可以向我解释为什么我在执行eval时会得到NameError吗?
toEval = "" for i in self.dtf.columns.values: if (self.lst.count(i) > 0): toEval = toEval + "self.dtf[[" + i + "]].dropna()," toEval = toEval[:len(toEval)-1] t = eval(toEval)