Moving

We are a married couple that files jointly.  We’ve moved from MN to AZ.  We worked in MN from May through October.  Should we file state taxes for MN or for AZ?