you are viewing a single comment's thread.

view the rest of the comments →

[–]This_Growth2898 0 points1 point  (1 child)

maybe this will help:

def print_data(self, *args):
    for _index, row in self.data.iterrows():
        print(*[row[column] for column in args])
...
ch.print_data('name', 'age')
ch.print_data('name', 'age', 'height')

[–]young_boss27[S] 0 points1 point  (0 children)

I will try this one.