Skip to content

Tag: append

Items not being appended properly

I was working on the following code which will take input the scrap which has a few phrases as: Now I want the phrases in scrap which have used the words in prog_list to be appended to TRUE_PROG : I wrote a simple code having loops in it, but it produces an output that I didn’t expect: PROGRAM CODE: If

Appending Dataframe in for loop is not working

I’m getting crazy with that. I don’t know why is not working well. My loop is the following: In the first print I obtain: But when I show the following dataframe value: I obtain: So it seems that is only concatenating the last value. PD: See charge column in order to see differences between datafr…