# Federated CSV dataset

**URL:** <https://discuss.ai.google.dev/t/federated-csv-dataset/31984>\
**Category:** General Discussion\
**Tags:** federated, datasets, help\_request\
**Created:** [February 26, 2022, 3:14pm UTC](https://discuss.ai.google.dev/t/federated-csv-dataset/31984 "2022-02-26T15:14:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reem\_Alwani](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/reem_alwani/32/9117_2.png) [@Reem\_Alwani](https://discuss.ai.google.dev/u/Reem_Alwani)\
**Post date:** [February 26, 2022, 3:14pm UTC](https://discuss.ai.google.dev/t/federated-csv-dataset/31984/1 "2022-02-26T15:14:03Z")

</div>

I am building a federated learning model, but I want to use my own dataset, which is represented in a CSV file.  
any idea how can I use this data for simulation? and consider it distributed?  
since all of the tutorials available are working for the predefined datasets

---

<div class="post-metadata">

**Author:** ![Kareem\_Gamal](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/kareem_gamal/32/13059_2.png) [@Kareem\_Gamal](https://discuss.ai.google.dev/u/Kareem_Gamal)\
**Post date:** [August 15, 2022, 1:45pm UTC](https://discuss.ai.google.dev/t/federated-csv-dataset/31984/3 "2022-08-15T13:45:32Z")

</div>

I was searching for the same thing  
Can you tell me what you found?

---

<div class="post-metadata">

**Author:** ![Reem\_Alwani](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/reem_alwani/32/9117_2.png) [@Reem\_Alwani](https://discuss.ai.google.dev/u/Reem_Alwani)\
**Post date:** [August 17, 2022, 2:30pm UTC](https://discuss.ai.google.dev/t/federated-csv-dataset/31984/5 "2022-08-17T14:30:18Z")

</div>

Hello Kareem,

Yes I found an answer that worked for me, while suggests using the function ( `tff.simulation.datasets.FilePerUserClientData`)

You can have a look at this question in StackOverflow ([python - tff.simulation.datasets.ClientData to build federated learning model from CSV files - Stack Overflow](https://stackoverflow.com/questions/71273332/tff-simulation-datasets-clientdata-to-build-federated-learning-model-from-csv-fi))  
Wish you all the best

---

<div class="post-metadata">

**Author:** ![Kareem\_Gamal](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/kareem_gamal/32/13059_2.png) [@Kareem\_Gamal](https://discuss.ai.google.dev/u/Kareem_Gamal)\
**Post date:** [August 17, 2022, 8:13pm UTC](https://discuss.ai.google.dev/t/federated-csv-dataset/31984/7 "2022-08-17T20:13:31Z")

</div>

Thanks a lot, but if you could share a complete example with colab that would be even better. I mean how did you handle it with different clients with any model.
