---
description: >-
This document will show how to import Python libraries and read data files
with Visual Python.
---
# Data Preparation
{% embed url="https://www.youtube.com/watch?v=JrtkV_MpS0E" %}
### To import packages/libraries
Before starting, we need to import essential Python libraries.
1. Click on the **Import** app from the menu
2. Select libraries you need
3. Click **Run** button to generate code.
Numpy, Pandas, Matplotlib are the most primarily used libraries for data analysis. You can also add other libraries with **+ Module** / **+ Function** buttons.
### To read data from a file
Now, we need a dataset to analyze.
1. Click on the **File** app, to read data files.
2. Identify the data type: CSV, Excel, JSON, Pickle are supported
3. Click on the folder icon to open the file explorer.
4. Use additional options if necessary.
5. Click **Run** !