I want a file with the following properties: Contains the code + markdown in a jupyter notebook Is not runnable — can be safely checked in to a VC system My use case is I want to have a notebook template for computing various stats on some sims I’m running. For each sim, I want to be able to papermill
Tag: jupyter-notebook
I keep getting the error message AttributeError: ‘pandas._libs.properties.AxisProperty’ object has no attribute ‘unique’. How should I fix this error?
I’m using a Jupyter notebook and I’m trying to open a data file and keep getting an error code AttributeError:’pandas._libs.properties.AxisProperty’ object has no attribute ‘unique’. This is my first time using Jupyter So I am not familiar with any error like this. Answer You are not using pd.DataFrame right. See below corrected code:
Python – How do you display base64 images during a for loop in Jupyter Notebook?
I’m trying to display a list of dicts where one of the keys is to a base64 string. So far, I have been unable to display the base64 strings as images during a for loop and not within a DataFrame. My code: Unfortunately, while this works on a single code cell running a single base64 string, it does not show
Code not working in Jupyter Notebook, csv file, name error
The following code was working fine yesterday and now it only runs occasionally and gives the ‘name not defined error for kameradata’. I am a novice and dont know if its jupyter or my code. I have tried restarting the kernel but it still isnt running as it did yesterday. The csv file looks like this: ` I want to
How to check if the value is present in df for multiple columns and append if not present
I have multiple df and i want to compare one with the other if the values are same. And if values are not same i want to append the value to the first data frame. For example: data frame 1 A B C Mm hh jj Kk ll gg Data frame 2 | A | B | C | |—|—|—|
In Jupyter notebooks, how to connect to MS SQL with a different Windows user
I have Select access to a MS SQL database that I would like to extract data into a Pandas dataframe running inside a Jupyter notebook. For reasons out of my control, I have access to the database from a different user. How can I query the database from Jupyter while connected to my current user account? Answer This is how
Change plot background color in jupyter notebook
How can I change the grey color in the background to white color? Answer it make it yellow my freind
time data ‘2014-01’ does not match format ‘%y-%m’
im new to this python, and i want to convert month column from object to date in jupyter notebook using python. Here is my dataframe : and the code is : df[‘month’] = pd.to_datetime(df[‘month’], format = ‘%y-%m’) can anyone explain what is wrong with my code? cause i think the format was correct with year and month Answer You should
Jupyter Lab Render button disable
There is a green button call ‘Render with panel ‘ in my ‘Jupyer lab’ and I’m trying to get rid of it, not sure where its come from. Things I’ve tried: https://discourse.jupyter.org/t/how-can-i-disable-an-extension-in-jupyterlab-3/9332/2 the jupyter labextension disable didn’t work Answer That icon comes from the Panel Extension, ‘Panel: A high-level app and dashboarding solution for Python’. It’s part of their visual
Can’t find and read .csv file
I recently brought my code from Jupyter into VSCode. I fixed up some problems with my imports, but now I can’t find a .csv file. The code and .csv file are saved in the same folder. My code is: After running the program, it says, What’s going on here? How can I fix it? It was working perfectly in Jupyter.