Looping through a dataframe using itertuples() and read the next line

后端 未结 0 812
北海茫月
北海茫月 2021-01-17 13:31

Imagine I have a dataframe as below. And I can print the output as

2
4
6

import pandas as pd

data = [[1,2,\'a\'],[3,4,\'b\'],[5,6,\'c\']]
columns = [\'a\',\         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题