# Transformar dataframe em datatable

**URL:** <https://forum.uipath.com/t/transformar-dataframe-em-datatable/538633>\
**Category:** Automation Ops\
**Tags:** question, python, activities\
**Created:** [April 24, 2023, 3:15pm UTC](https://forum.uipath.com/t/transformar-dataframe-em-datatable/538633 "2023-04-24T15:15:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexsandro\_RPA](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/alexsandro_rpa/32/263149_2.png) [@Alexsandro\_RPA](https://forum.uipath.com/u/Alexsandro_RPA)\
**Post date:** [April 24, 2023, 3:15pm UTC](https://forum.uipath.com/t/transformar-dataframe-em-datatable/538633/1 "2023-04-24T15:15:27Z")

</div>

Bom dia!

Estou tentando rodar um codigo python onde eu me conecto no banco e faço a leitura de uma tabela.

Como consigo usar essa tabela no UiPath, estou me deparando com “Get Python Object: Erro ao converter o objeto Python”

Existe alguma forma de fazer esse procedimento ?

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [April 24, 2023, 3:18pm UTC](https://forum.uipath.com/t/transformar-dataframe-em-datatable/538633/2 "2023-04-24T15:18:23Z")

</div>

@Alexsandro_RPA

Easiest method would be to write the data to csv and read csv from UiPath

if not please provide more details like what is the type of object you are getting and did you select the right type in UiPath?

cheers

---

<div class="post-metadata">

**Author:** ![Alexsandro\_RPA](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/alexsandro_rpa/32/263149_2.png) [@Alexsandro\_RPA](https://forum.uipath.com/u/Alexsandro_RPA)\
**Post date:** [April 24, 2023, 5:51pm UTC](https://forum.uipath.com/t/transformar-dataframe-em-datatable/538633/3 "2023-04-24T17:51:37Z")

</div>

Estou tentando, mas quando chamo a função no invoke Method não acontece nada.  
 ![image](https://global.discourse-cdn.com/uipath/original/4X/f/2/4/f240d2b9deb4503462f34c55aa03be1ae15aa821.png)

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [April 24, 2023, 6:07pm UTC](https://forum.uipath.com/t/transformar-dataframe-em-datatable/538633/4 "2023-04-24T18:07:37Z")

</div>

@Alexsandro_RPA

Is the method name correct? Is it chama? And is presnet in the py file you loaded?

This might help

> **[How to Integrate Python with UiPath - RPA Learners](https://rpalearners.com/how-to-integrate-python-with-uipath/)**
>
> In this article we will discuss about how to integrate python with uipath and execute and display the sample python program in uipath studio

Cheers

---

<div class="post-metadata">

**Author:** ![Srini84](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/srini84/32/464032_2.png) [@Srini84](https://forum.uipath.com/u/Srini84)\
**Post date:** [April 25, 2023, 5:37am UTC](https://forum.uipath.com/t/transformar-dataframe-em-datatable/538633/5 "2023-04-25T05:37:15Z")

</div>

@Alexsandro_RPA

Check below for your reference

> <https://stackoverflow.com/questions/56085008/how-to-pass-a-python-dataframe-to-uipath>

Hope this may help you

Thanks,  
Srini
