The Canadian economy rebounded sharply from the initial damage of the trade war as the country’s growth drivers shifted to housing and government spending.

Canada’s gross domestic product rose at a 2.6% annualized pace in the third quarter, Statistics Canada reported Friday from Ottawa. That’s the fastest pace of growth since the end of last year, and more than offsets a 1.8% decline in the second quarter that was driven by a major drop in goods exports.