This data was obtained by Police Reform Organizing Project (PROP) from the New York State Division of Criminal Justice Services. It is available here.
The 2017 Estimated Census data is available here on the US Census Bureau's website.
"While virtually all the numbers demonstrate that NYPD arrest practices are marked by waste and racial bias, the statistics that stand out involve arrests for marijuana possession," said PROP director Robert Gangi in a statement. "Arrests for marijuana remain in the thousands every year & are now the 3rd most common NYPD arrest. The racial bias grows more stark: 93% of these arrests this year have involved NYers of color, this despite research and experience demonstrating that white people use and sell marijuana in proportions and numbers equal to or greater than African-Americans & Latinos."