I have an Excel file that contains the following information
and I need to extract that data into a dataframe with unique values from column ID and value 1; so that I will end up with something like this:
I have done the following:
df=pd.read_excel(file)
dfUnique=pd.unique(df[["column ID","value1"]]).values.ravel('K')
but I get the following error:
could not broadcast input array from shape (5,2) into shape (5)