The accused, who had allegedly molested the woman on Friday night and tore her clothes apart, was arrested yesterday, police said.
The Danish woman today left the country "in a state of shock", a police official said.
"The accused, Vicky Kumar, is a resident of city's Islamabad locality," ASI Deepak Kumar said.
The woman had reached the city on Friday night for a research project. When she came out of the railway station she was attacked by the driver, the police said.
She raised an alarm and hit the man after which he fled from the scene. A case was registered on Saturday morning.
"She appeared to be in a state of shock and will probably need to be counselled," the ASI said.
The accused has a past history of harassing women visitors in the city, Mr Kumar said.
Get Breaking news, live coverage, and Latest News from India and around the world on NDTV.com. Catch all the Live TV action on NDTV 24x7 and NDTV India. Like us on Facebook or follow us on Twitter and Instagram for latest news and live news updates.