If i changed my phone battery will the data be erased from my phone?
No,changing battery doesn't erase phone data.The data won't be erased.
Just switch it off before you remove the battery and insert a replacement battery.