# Problem accessing dataset

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblem-accessing-dataset%2F29258%3E%5C
**Category:** Beginners\
**Created:** [January 9, 2023, 9:51pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblem-accessing-dataset%2F29258 "2023-01-09T21:51:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lord-Goku](https://avatars.discourse-cdn.com/v4/letter/l/b38774/32.png) [@Lord-Goku](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FLord-Goku)%5C
**Post date:** [January 9, 2023, 9:51pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblem-accessing-dataset%2F29258%2F1 "2023-01-09T21:51:10Z")

</div>

Hi,  
I have just tried to make my first dataset on the Huggingface website.  
Once I upload a few datafiles (3 different xlsx and 1 csv) I see the following message:

 ![Screenshot 2023-01-09 at 4.44.40 PM](https://us1.discourse-cdn.com/hellohellohello/original/2X/1/1eba297a4d16c6b4dd05773d7b28972c54717cae.png)

but when I click on “files” tab, I see all my files.  
When I try to access the dataset using python Jupiter Notebook, I receive the following error message:

* * *

## FileNotFoundError: Couldn’t find a dataset script at /content/Lord-Goku/testing\_1/testing\_1.py or any data file in the same directory. Couldn’t find ‘Lord-Goku/testing\_1’ on the Hugging Face Hub either: FileNotFoundError: Unable to resolve any data file that matches [‘train[-.\_ 0-9/] **', '** [-.\_ 0-9/]train[-.\_ 0-9/]**', 'training[-.\_ 0-9/]**’, ‘**[-.\_ 0-9/]training[-.\_ 0-9/]**’] in dataset repository Lord-Goku/testing\_1 with any supported extension

Even though the dataset is public, I have logged into my huggingface through the Notebook to see if that makes any difference but no luck there.

here is the code I have tried:  
dataset = load\_dataset(“Lord-Goku/testing\_1”)

and:  
data\_files={“test”:“test.xlsx”}  
dataset = load\_dataset(“Lord-Goku/testing\_1”, data\_files = data\_files)

neither of them works.

---

<div class="post-metadata">

**Author:** ![stevhliu](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/stevhliu/32/18373_2.png) [@stevhliu](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fstevhliu)%5C
**Post date:** [January 9, 2023, 11:38pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblem-accessing-dataset%2F29258%2F2 "2023-01-09T23:38:39Z")

</div>

Hi!

For the `csv` files, you can do:

```plaintext
from datasets import load_dataset

ds = load_dataset("Lord-Goku/testing_1", data_files="nyse-listed.csv")

```

I don’t think we have a `BuilderConfig` for `xlsx` files, so you can do this instead:

```plaintext
from datasets import Dataset
import pandas as pd

df = pd.read_excel("https://huggingface.co/datasets/Lord-Goku/testing_1/resolve/main/test.xlsx")
df = pd.DataFrame(df)
dataset = Dataset.from_pandas(df)

```

---

<div class="post-metadata">

**Author:** ![Lord-Goku](https://avatars.discourse-cdn.com/v4/letter/l/b38774/32.png) [@Lord-Goku](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FLord-Goku)%5C
**Post date:** [January 10, 2023, 2:54am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblem-accessing-dataset%2F29258%2F3 "2023-01-10T02:54:50Z")

</div>

Thank you so much for your prompt reply.  
You are totally right, I re-read the documentation and I realized that Huggingface does not have .xlsx file support.  
I was able to retrieve my csv file using your code correctly.  
Appreciate your support. 😇

---

<div class="post-metadata">

**Author:** ![Lord-Goku](https://avatars.discourse-cdn.com/v4/letter/l/b38774/32.png) [@Lord-Goku](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FLord-Goku)%5C
**Post date:** [January 10, 2023, 2:56am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblem-accessing-dataset%2F29258%2F4 "2023-01-10T02:56:53Z")

</div>

The only issue is that I still have the following message:  
" The dataset is currently empty. [Upload or create new data files]. Then, you will be able to explore them in the Dataset Viewer."  
Any idea why this is?

---

<div class="post-metadata">

**Author:** ![stevhliu](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/stevhliu/32/18373_2.png) [@stevhliu](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fstevhliu)%5C
**Post date:** [January 10, 2023, 6:14pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblem-accessing-dataset%2F29258%2F5 "2023-01-10T18:14:04Z")

</div>

I think this might be because your repository isn’t structured properly (you’ve got a mix of `xlsx` and `csv` files). Can you try organizing your `csv` files as shown [here](https://huggingface.co/docs/datasets/main/en/repository_structure#main-usecase)?

Also, you can create a dataset with `xlsx` files, but you’ll need to [write a loading script](https://huggingface.co/docs/datasets/main/en/dataset_script) which is a bit more involved than just uploading your dataset files 🙂

---

<div class="post-metadata">

**Author:** ![Lord-Goku](https://avatars.discourse-cdn.com/v4/letter/l/b38774/32.png) [@Lord-Goku](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FLord-Goku)%5C
**Post date:** [January 11, 2023, 6:17pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblem-accessing-dataset%2F29258%2F6 "2023-01-11T18:17:38Z")

</div>

Thanks,  
You were right. It seems to be in order now.  
Appreciate your feedback. 🤓
