Category : merge

I have two files input.csv 11/13/2020 07:41:09 TREE count1: id1 green001 11/13/2020 07:43:09 TREE count1: id1 black001 11/13/2020 07:45:09 TREE count1: id2 black001 11/13/2020 07:45:09 PLAN count1: id3 green002 11/13/2020 07:45:09 PLAN count1: id4 green004 lookup.csv ID,item,message id1,item1,message 1 id2,item2,message 2 id3,item3,message 3 I am trying to merge both files and expected below output Expected ..

Read more

class Team: def __init__(self, team, win=0, draw=0, loss=0, scored=0, conceeded=0): self.team = team self.win = win self.loss = loss self.draw = draw self.scored = scored self.conceeded = conceeded def get_points(self): return self.win*3 + self.draw def get_difference(self): return self.scored – self.conceeded def get_table_row(self): return (self.team + " "*(20-len(self.team)) + str(self.win) + "t" + str(self.draw) + "t" ..

Read more