Data Cleaning and Preprocessing App First of all create Virtual Environment in your Visual Studio code. To create a virtual environment in Visual Studio Code (VS Code), follow these steps:
Ensure you have Python installed. You can download it from the official Python website: python.org.
- Open VS Code.
- Click on the Extensions icon in the sidebar or press
Ctrl + Shift + X
. - Search for Python and install the extension developed by Microsoft.
-
Open a terminal in VS Code (press
Ctrl +
or go to Terminal > New Terminal). -
Navigate to your project folder using the
cd
command. Example:cd path/to/your/project
-
Run the following command to create a virtual environment:
- For Windows:
python -m venv venv
- For Mac/Linux:
python3 -m venv venv
This creates a folder named
venv
in your project directory, which contains your virtual environment. - For Windows:
- For Windows:
.\venv\Scripts\Activate
- For Mac/Linux:
source venv/bin/activate
After activation, your terminal prompt will change to indicate that you're working within the virtual environment.
- Press
Ctrl + Shift + P
to open the Command Palette. - Search for Python: Select Interpreter and click it.
- Choose the interpreter from the
venv
directory, which usually looks like./venv/bin/python
.
You can now install packages one by one into the virtual environment using pip
.
pip install streamlit
pip install matoplotlib
pip install seaborn
Then you need to paste command
streamlit run F:\NAVTTC\Data_cleaning_app\main.py
And yout App will open in Browser