Reshaping 4×1 DataFrame into 2×2 DataFrame
Reshaping 4×1 DataFrame into 2×2 DataFrame Question: I have a DataFrame as below: import pandas as pd df_testcase = pd.DataFrame( [’16SCSE102014′, ’15/03/2019′, ’16SCSE101350′, ’15/03/2019′] ) 0 0 16SCSE102014 1 15/03/2019 2 16SCSE101350 3 15/03/2019 I need to convert it into 2×2 DataFrame like this: 0 1 0 16SCSE102014 15/03/2019 1 16SCSE101350 15/03/2019 Can someone please …
Total answers: 2