小编Rya*_*hen的帖子

类型错误:“方法”类型的对象没有 len()

def DS():
import os
import pandas as pd

directory=input('What folder would you like to work in? ( Example: /Users/hem/Desktop/pythontest/ ')
filename=input('Please enter the name (including .csv) of the file you would like to analyze  ' ) 
idkey=input('What is the subject ID you are analyzing?    '   )
sessionkey=input('What session of testing are you analyzing?   ')      
print('---------- Calculating Drug Stroop endpoints ----------')
os.chdir(directory)
dataframe = pd.read_csv(filename, error_bad_lines=False)
output={}

CategoryID = dataframe['CategoryID'].tolist
ReactionTime = dataframe['ReactionTime'].tolist
CorrectResponse = dataframe['CorrectResponse'].tolist

#Stroop interference score
totalN = …
Run Code Online (Sandbox Code Playgroud)

python python-3.x pandas

4
推荐指数
1
解决办法
1万
查看次数

标签 统计

pandas ×1

python ×1

python-3.x ×1