although gandhis movement succeeded in securing independence for india in 1947 , it could not prevent the partition of the indian subcontinent on a religious basis ; a partition between a primarily hindu india and a primarily muslim pakistan .