How to divide my 1099 when if I moved from NY to PA in Sept?

I moved from NY to PA last year. I am not sure how to divide my 1099 in 2 states. Any insights will be helpful. 

 

Thanks!