你先把data_world变成data_world_set集合中的数据后在排序试试
data_world没定义,要用pandas先从.csv或.xslx读取数据,data_world=pd.read_csv(数据文件路径),然后才能调用,否则会报没定义错误。