India has become the world's sixth-biggest economy, pushing France into seventh place, according to updated World Bank figures for 2017. India's gross domestic product (GDP) amounted to $2.597 trillion at the end of last year, against $2.582 trillion for France.