# Import Datasets into Pandas

## Exporting UDT Dataset as CSV

You can export any UDT dataset into a CSV file using the download button at the top of the page.

![Download CSV from the Universal Data Tool](https://708390366-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFuZsfsLW71orr4EXRY%2F-MI1-I35x0iE2R-GuGoG%2F-MI13nBG3-BxFomTGUBy%2Fimage.png?alt=media\&token=1af4a9ea-24a1-47b7-91b9-ef345d2e8ab8)

## Import CSV Into Pandas Dataframe

We can begin by importing the pandas, and our udt.csv file.&#x20;

```python
import pandas as pd

url_or_filepath_to_csv = "https://raw.githubusercontent.com/UniversalDataTool/udt-dataset-cats-and-dogs/master/coco_dogs_and_cats.udt.csv"
udt_csv = pd.read_csv(url_or_filepath_to_csv)
```

{% hint style="info" %}
You can use the udt.json format too, tables are just a nice way to visualize the data!
{% endhint %}

If you view the udt\_csv object, you should now see a breakdown of your CSV, ready to be imported!

![coco\_dogs\_and\_cats.udt.csv](https://708390366-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFuZsfsLW71orr4EXRY%2F-MHs6YKTxOwsPQCP3cAO%2F-MHs7p0X2wwpnrnN5DOG%2Fimage.png?alt=media\&token=62cc8537-e8fb-496a-8760-b568624a0078)

## Downloading Images

UDT Datasets just have links to images, so we'll need to download the actual images. Check out the [fast.ai Image classification tutorial](https://docs.universaldatatool.com/machine-learning/fastai/import-datasets-for-fast.ai-image-classification), where we show how to easily download images using the fast.ai download\_images function.
