I have a problem with autocompletion multiple column names in pandas dataframe. For example: df["column_name1"] works as expected – I typed first letters of my column name +[tab] and it autocomplete it. But, if I also want to print data from first and the second column like this: df["column_name1, "column_name2"] it doesn’t recognize second name ..
Trying to add packages to jupyter docker image jupyter/pyspark-notebook from requirements.txt. During docker build it appears packages are installed. Try to import azure blob package in notebook in jupyter and get error package cannot be found. When running conda list from cmd line in jupyter package not in list? Dockerfile FROM jupyter/pyspark-notebook:latest COPY packages packages ..
I have developed a custom frontend that uses Jupyter/IPython. The frontend is developed in Qt/PyQt. It works very well. I use %matplotlib inline and regularly generate matplotlib graphs and they get sent from the kernel as png images to the frontend as a sequence of bytes. I can then display the graphs as static png ..
I’m trying to build an interactive widget in a JupyterLab notebook where users can draw/doodle, and this data can be fed back to the Python kernel (for example as a pixel array?) No need for fancy formatting / multiple colours / etc in my use case, as I’m just looking at handwriting recognition and similar ..
I’d like to include code from another file in another Jupyter .ipynb file on the AWS Elastic MapReduce platform. But many of the methods I have seen online for including utility functions / common Python code that would seem to work outside of AWS, don’t work inside the hosting environment for EMR-based Notebooks. I’m assuming ..
Anaconda newbie here. I just downloaded Anaconda on my new PC with Windows 10 however when I open up Jupyter I can see all my personal folders and files from my computer (Desktop, Documents, and Pictures, etc). Can someone tell me if this is normal? I also notice that when I add or create a ..
I have a Jupyter document that I want to export to PDF. I have been told that the ideal is to use nbconvert. Since I want to remove the lines of code from the PDF. As a simplified document I present the following: print("El valor de x es") x=[1,2,3,4,5] print(x) I would like that when ..
Given the Item and Start Date in df1, I would like to pull the index of row from df2 where: (Item in df2 matches Item in df1) AND ((Finish Date in df2 is greater than or equal to the Start Date of the item in df1) OR (Finish Date in df2 is NaT)) AND (Expected ..
I have a bar plot of random positive and negative values. I would like to set all negative values to the color blue and all positive values to red in the bar chart. How do you make negative values to blue and positive values to red? This is what I have so far and tried ..
I’ve got a pandas hist plot like shown below. As you can see the xticks are currently set to 0-6 (Sunday – Saturday). I’d like to replace the tick label to the actual days so the days are showing instead of numbers. 0 – Sunday 1 – Monday 2 – Tuesday 3 – Wednesday . ..