Merging multiple rows in a column into single row with python
Merging multiple rows in a column into single row with python Question: I wanted to merge every four rows in a column into a single row in the next column. For the following dataframe, it will convert 16 rows to 4 rows where each row contains values. df = pd.DataFrame({ ‘A1’: [1,0,0,0,1,1,0,0,1,0,0,0,1,1,1,0]}) output should be, …