"[链接] def hang_to_lie_2(old_df): ''' old_df:需要转置的df对象 return: 转置后的二维数组 ''' matrix = old_df.values trans = list(map(list, ...."
前景回顾
def hang_to_lie_2(old_df): ''' old_df:需要转置的df对象 return: 转置后的二维数组 ''' matrix = old_df.values trans = list(map(list, zip(*matrix))) print(trans) return trans
这个这么短,666
这个这么短,666