# Transferring data from python to excel

**URL:** <https://discuss.python.org/t/transferring-data-from-python-to-excel/12342>\
**Category:** Python Help\
**Tags:** help\
**Created:** [December 5, 2021, 4:43am UTC](https://discuss.python.org/t/transferring-data-from-python-to-excel/12342 "2021-12-05T04:43:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![cameron](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/cameron/32/2658_2.png) [@cameron](https://discuss.python.org/u/cameron)\
**Post date:** [December 5, 2021, 5:06am UTC](https://discuss.python.org/t/transferring-data-from-python-to-excel/12342/2 "2021-12-05T05:06:29Z")

</div>

> import os  
> os.getcwd()  
> os.chdir(“C:\Users\Admin”)  
> os.getcwd()  
> df = pd.read\_csv(‘Muhammad123’)  
> FileNotFoundError Traceback (most recent call last)

Please always include the complete traceback. It will normally at least  
indicate which line of code had the error.

> I want to transfer data from python to excel but after writing the code  
> the error is appearing that file not found. Can you suggest what is the  
> error?

Well it seems likely that either the path “C:\Users\Admin” does not  
exist, or that your CSV file is not called ‘Muhammad123’. Maybe  
‘Muhammad123.csv’ ?

But a traceback will be more informative.

Cheers,  
Cameron Simpson [cs@cskk.id.au](mailto:cs@cskk.id.au)

---

_[View the full topic](https://discuss.python.org/t/transferring-data-from-python-to-excel/12342)._
