Get Minimum In Array Python Initialize Dataframe In R