What could cause p1000 code rough idle on 2001 Ford Ranger 4.0L Truck runs fine above idle but stalls at idle?

Remove, clean or replace the IAC (Idle Air Control) valve.

P1000 on any ford means you have cleared the PCM codes and it hasn't run it's self-diagnostic tests yet. This will go away. It is not related to your rough idle.