Ventriculoperitoneal (VP) shunting is a type of brain surgery. It's done to drain cerebrospinal fluid (CSF) from the brain.