@Krishnamohan Nadimpalli Thanks for reaching out. For your first issue Import could not be resolved in VS Code
for pandas it will resolve once the panda is installed on your function environment locally. Please make sure that you are adding all the dependencies in requirement.txt file for any package management.
In case if those module or dependencies cannot be installed using pip then you need to use build native dependencies or enable remote build.
You can refer to python troubleshooting document for more details.
For your second error the error is expect as Mysql-connector is deprecated as per the project description, and you should use mysql-connector-python and when we try to install the package it doesn't found any distributor with that name as is already deprecated.
Please refer to the Azure Functions Python developer guide to get started with python azure function.