The grandmother of U.S. Democratic presidential candidate Barack Obama has died from cancer .