How do I file a DC tax return to exclude my wife's non-resident income?

In 2017, I lived / worked in DC the entire year. My wife worked while she completed her education in NY, where she lived and worked the entire year. We visited each other at times and were not / are not legally separated. 

I am having trouble handling the NY income on our state tax returns. Wife owes NY tax for NY earnings. I cannot find a way to remove the NY earnings from the DC return (or possibly on my DC return to claim a credit for the NY tax paid).