Manish Pandey scored a maiden one-day international century as India beat Australia with a ball to spare to avoid a whitewash in the five-match series.

David Warner (122) and Mitchell Marsh (102 not out) helped Australia set a daunting total of 330-7 in Sydney.

But Pandey's 104 not out led the charge to guide the tourists to victory by six wickets with two balls to spare.

India opener Rohit Sharma had earlier scored 99 on his way to claiming man of the series.

Rohit hit 441 runs in the five matches at an average of 110, including two centuries.

Australia had looked likely to add to their 18 consecutive ODI victories on home soil with another impressive batting display.

Opener Warner smashed his 122 off 113 balls and Marsh claimed his first ODI century with 102 off just 84 balls.