Posts by standardmarcelo • 1 point
2 posts
-
0
votes1
answer31
viewsQ: Difficulty Merging Sequential Columns in a Dataframe with Pandas
I have two dates frames, the two have exactly the same index, the difference is that one has the columns 'week 9' until 'week 30', and the other has the columns 'week 31' until 'week 53'. Until now…
-
0
votes1
answer53
viewsQ: How to replace a column conditionally in Pandas?
I have a dataframe in Pandas and need to replace the value in the column semana conditionally. Where the value is 53, I want to replace with 1. cod; semana; A; 53; A; 1; A; 1; A; 2; B; 53; B; 1; B;…