I'm trying to export a dataframe in Jupyterlab. The command runs but I don't see the file on my desktop.
I'm trying this but I don't find the file. I've even tried to_excel version but that doesn't work either. Any help, pls.
df_busu.to_csv(r'C:\Users\Admin\Desktop\app_play_store.csv')
try to save without raw string format and inverting the "" to "/".
`df_busu.to_csv("C:/Users/.../file.csv"; sep=";")`
that's how a export a file to csv from pandas in Win10.
Related
I'm using heroku with streamlit to do excel automations. But I need to execute the excel formulas so I can get the values computed by them, and to do so I would need to open the excel file. As it is an RPA, I don't want to open the excel file myself, manually, I want the code to open it for me inside the system and execute the formulas, so the code opens the sheet with pandas or openpyxl and get the values provided by the formulas. As heroku runs on linux, OS is not an option. I've tried xlwings a long time ago and it did not work as well, but I'll study it and see if it works, but if you guys have some other recommendation for me, that works better than xlwings (or even something about xlwings usage), it would be really helpfull!
Thanks in advance!
I have already tried to use pandas and openpyxl data_only=True to get the values computed by formulas, but both only work once the excel file has been opened manually, executing all formulae. I want to simulate the manual opening of the excel file inside heroku, but without literally opening it, so formulas inside the file are executed.
I can't open a CSV file on Jupyter Notebook. Every time I try to open up, I get this...
Any suggestions or advice would be much appreciated!
The issue is with the forward slashes in your path. Change them to double backslashes:
C:/Users/nsap/desktop...
to
C:\\Users\\nsap\\desktop
Please see this stackoverflow link for more info Error while reading a csv file in python using pandas
I have a problem when I try to open an Ipynb file in Jupyter lab, I get this error :
Unreadable notebook [...] NotJSONError("Notebook does not appear to be JSON: ''...")
I get this error even if I create the file with Jupyter lab directly
I already tried to update Jupyter and to update Nodejs but nothing change.
Before I had this problem I didn't even know that ipynb files were made with JSON so I am a bit lost.
does anyone know how I can get the JSON code of my Ipynb file?
You can validate the .ipynb file with a JSON validator: like this one
I'm a beginner programmer and I'm trying to import a CSV file into Jupyter Notebook. I am following the instruction on this article link. However when I change the file used on the link to my file I get this error Error Image. How should I go about addressing this issue?
Carry your .csv file to the same directory with your notebook (If you use windows as OS, it probably will be in C:\Users\your username as default). Then you better call your data file by pandas.read_csv()
I'm new to Pandas and I was beginning to run a simple code to work with this CSV file I downloaded from the government portal. Here's my code -
import pandas as pd
df = pd.read_excel(r'C:\Users\ADMIN\Desktop\Abhishek')
print(df.head)
The path is correct and it didn't work without adding the r at the beginning so I used that. However, this code results in these errors and I'm not sure how to handle any of them.
I've opened the file on Excel and I don't think there's any problem with it. What am I doing wrong?
Python doesn't have permission to open the file. Run your interpreter as administrator, or adjust permissions.
Right click your python shell and select "run as administrator".