Nearly three dozen educators at public and private New York City colleges have landed in a national rogue’s gallery of allegedly pervy professors.

The academics accused of sexual misconduct range from instructors at Ivy League Columbia University to teachers and even a dean at taxpayer-funded City University of New York.

The national database of misbehavers has been compiled by Michigan State University researcher Julie Libarkin, a prof who began scouring the internet in 2016 to find cases after hearing about an accused Chicago professor who simply transferred from one college to another.

“As a woman, as someone in a male-dominated field, I know that sexual misconduct is quite common,” said Libarkin, an earth and environmental science professor. “I decided just to see how common sexual misconduct was.”

The database has reached nearly 1,000 cases, the oldest dating to 1917, but most are more recent.

She includes situations where there is a guilty finding by a university, a legal settlement, an admission of guilt or the accused has resigned or died in the midst of a probe.

The 32 cases in New York City include accusations first revealed in The Post against four John Jay College of Criminal Justice professors. They were accused in a June lawsuit by two former students of creating a “cesspool of sexism, misogyny, sexual harassment and illegal drug use.” John Jay is moving to fire three of the profs after an internal probe while the contract for the fourth was not renewed.

At another CUNY college, George Ranalli, the former dean of the Spitzer School of Architecture, made the list after being accused of inappropriately touching a student to whom he was giving a ride home. The student sued CUNY and Ranalli, who denied the allegations in court papers. CUNY settled the case for $80,000 over Ranalli’s objections, his lawyer said.

Eleven Columbia University professors and administrators made the cut.

William Harris, a well-known Greco-Roman scholar, was accused in a 2017 lawsuit of trying to grope and kiss a doctoral student. He retired in December “in conjunction with the settlement of a lawsuit brought against him and Columbia,” according to an email sent to students.

He did not return a request for comment.

Most of the accused were men, but there were exceptions.

Avital Ronell, a famed New York University professor of German and comparative literature, was suspended for the 2018-19 year after a school probe found she sexually harassed a male graduate student, according to published reports.

A petition sought to keep Ronell from returning to the university this fall, saying “NYU’s handling of the case suggests that its stated commitment to diversity and inclusion is nothing more than tokenism in place of actual institutional reform.”

A university spokesman said last week that Ronell’s “interactions with students will be monitored to ensure that she has absorbed the lessons of her misconduct.”

Ronell did not return a request for comment.