Most voted "ipython-notebook" questions
The Ipython Notebook consists of two components: (1) A JSON based on a Notebook format document for writing and distributing rich text Python code. (2) A web interface for writing and running Notebook documents.
Learn more…39 questions
Sort by count of
-
10
votes2
answers1509
viewsMatplotlib + Latex: Writing Text on the Axes in English
Let’s start from the beginning, the versions I have are: Ipython: 1.1.0 Matplotlib: 1.3.1 Latex: pdftex 3.1415926-2.4-1.40.13 (Tex Live 2012/Debian) OS: Ubuntu 12.04 I want to plot what is below, in…
-
5
votes1
answer4590
viewsHow to resize graphics in Ipython Notebook without loss of quality?
In Ipython Notebook I produce graphics with (for example): x = [1,2,3,4] y = [5,6,7,8] plot(x, y) When I place the cursor over the generated graph, the tool appears at the bottom right corner to…
-
5
votes2
answers260
viewsIn Python, how do you remove specific characters from all the records of just one particular column?
I’m at Jupyter Notebook working with Python. The dataframe has some columns, but in a specific column I want to delete all records that end with ". txt", meaning the last 4 characters. Image of the…
-
3
votes1
answer129
viewsConcatenate large python csv files
I am trying to concatenate files that reach a sum of 650MB, and is returning memory error: > MemoryError: Unable to allocate 70.3 MiB for an array with shape (3, 6143249) and data type object…
-
2
votes1
answer771
viewsAdd shortcut to command in notebook jupyter
Hello, there is a way to add a hot key to the command: -Restart kernel & clean output No need to run the code every time you open the notebook jupyter.
ipython-notebookasked 5 years, 12 months ago Sevila 129 -
2
votes1
answer540
viewsSeparating a dataframe by some python pandas criterio
I have a database that has 789 reviews of people on a particular product, it has the columns reviews and stars. I normalized the data to positive (star >= 3) 1 and negative 0. outputs =…
-
2
votes1
answer37
viewsIs there a way to assign values to symbolic variables after deriving them using sympy?
Hello, I need to write a code that derives a user-informed function and then assign values to variables to perform the calculation. The problem is that it is necessary for the variables to be…
python numpy calculus ipython-notebook sympyasked 3 years, 10 months ago Leonardo Barbosa Brandão 23 -
2
votes1
answer455
viewsHow to install Jupyter Notebook autocomplete?
How do I install the extension that suggests the following code for Jupyter Notebook? For VS Code there is this Code Runner that is very good, but my work is done in Jupyter. Does anyone know?…
-
1
votes1
answer2354
viewsCommenting Code Blocks, Ipython Notebook
It is very annoying to have to comment line by line, and I want to join a powerful editor (like Vim) to IP-Notebook. But there must be a way to comment on code blocks in a simple way. My versions:…
ipython-notebookasked 11 years ago LuizAngioletti 1,649 -
1
votes1
answer353
viewsRun Fortran code that prompts reading data in jupyter-notebook with python Restart kernel
Jupyter notebook Restart when running a Fortran code requesting data entry, as follows: note that the variable a must be provided immediately after the call from f1 .However, an error occurs and the…
-
1
votes2
answers1709
viewsModulenotfounderror: No module named 'wordcloud'
I’m using the Microsoft Azure with Jupyter notebook and I need to use the word cloud. However when executing the code: from wordcloud import WordCloud it presents the error No module named…
-
1
votes1
answer190
viewsAttributeerror: module 'plotly.validators.layout.template.data' has no attribute 'Isosurfacesvalidator'
I have an interactive graph in python. The code below works in Azure Notebook, but I had to migrate my code to Jupyterlab and it shows the following error: Attributeerror: module…
-
1
votes1
answer29
viewscolumn insertion via python series
I have a series collected from a column of dataframe. I need to create columns with each of this series. For example: serie = [] for s in serie: df.insert(loc=0,column=serie,value='int') columns: A…
-
1
votes1
answer46
viewsProblem with Extractall not extracting exact occurrence
I have the following Dataframe: df = pd.DataFrame({'Texto' : ['é importante o sucesso', 'o dia está lindo']}) I have two names . txt palavras_positives.txt and palavras_neagtivas.txt. These two…
-
1
votes2
answers189
viewsfilter dataframe by python line
Hello, I own this Dataframe with hundreds of thousands of lines, I want to filter so that selection is only the desired lines, in case more current lines, follow an example of what I want: the…
-
1
votes1
answer33
viewsIn Python E Jupyter Notebook, how to present a full screen record?
I’m at Jupyter Notebook working with Python. My columns are strings and very long, I need to see these complete on screen, how to do this? The image of the dataframe with the "incomplete strings":…
-
1
votes2
answers33
viewsHow can I create update function in colab without restarting its kernel?
I have my functions done outside of colab, in py files, however I would like to change the function and not need to restart the colab kernel. For this function to work in the notebook I am currently…
-
0
votes1
answer118
viewsI’m trying to get my chart started from position 0 using hist()
Using USAGE_PLOT became easy to do but I want to do and learn how to use Hist. the same way it is in the image below where it was used usage_plot(trip_data, 'duration', ['duration < 60'],…
-
0
votes0
answers306
viewsImport in notebook jupyter despite installing the library called
I tried to import a library but it doesn’t seem to be added to jupyter notebook import sys print("sys.executable:\n",sys.executable) print("sys.path:\n",sys.path) from textblob import TextBlob And…
-
0
votes1
answer469
viewsHow to use the results and variables of one notebook Jupyter in another?
Suppose there is a Jupyter notebook called notebook1.ipynb where several variables are calculated with interesting results. Suppose, then, as part of another analysis in another notebook called…
ipython-notebookasked 6 years, 3 months ago Anderson Chaves 141 -
0
votes1
answer231
viewsCompare string PANDAS Data Science
I’m starting in this world of data science and my doubt how I can compare two string in the same column. I have a column [Investigation Type] that has 'Accident' and 'Incident' I wanted to compare…
-
0
votes0
answers65
viewsHow to process data without the kernel dying?
I want to process the data into one unsupervised.py notebook. However, every time I start, my computer almost freezes and it looks like the kernel dies. It seems to be generated because of a memory…
-
0
votes1
answer31
viewsProblems using iloc pandas
I want to create a new DataFrame with the following condition: marvel.loc[ marvel['Orientation'] != 'NaN' ] I mean, I want every line that has the column 'Orientation'== 'NaN' are deleted, but there…
-
0
votes0
answers35
viewsBug images from jupyter notebooks to Github
Hello, could someone help me, please? I am starting to work with the jupyter notebook and I need to push my repository but the notebook with images shows nothing when sending to github. I tried…
python-3.x github ipython-notebook github-pagesasked 4 years, 3 months ago Lineker Aguiar Alcântara 1 -
0
votes1
answer328
viewsChange the maximum values on a bar chart in Seaborn(barplot)
When I go to "plot" a bar chart it modifies my values on the Y-axis proportionally , but I want them to stay with the real values they have in the dataset, as I change this configuration? dataset:…
-
0
votes1
answer278
viewsRelate two Dataframes in pandas and return value in python
I have two Dataframes, both in csv that import in pandas, one with the history of protocol records and one with a list of people authorized to make changes in the records of procotolos. How can I…
-
0
votes0
answers20
viewsHow to upload a notebook jupyter service to be used by several users?
I need to upload the service of notebook jupyter that will be consumed by several users. The requirements I need to meet are: It is necessary to ensure that a user does not have access to other…
-
0
votes1
answer714
viewsWriting a csv file on Google Drive using Colab
I’m writing a code in Python to scrape information off Facebook. I would like to save this information in a file on Google Drive, since I am working with other people and we use Colaboratory.…
-
0
votes0
answers25
viewsHow to automate the execution of Python scripts in Google Colab? Sheduler
I developed a python script to automate data requests and integration with Bigquery. I wonder if there’s any way to run this script automatically in a routine from Monday to Friday, always at…
python python-3.x python-requests ipython-notebook schedulerasked 3 years, 5 months ago Fhelyp Guimarães 1 -
0
votes1
answer98
viewsWeb Scraping with Webdriver and python Selenium
This program aims to download excel files to optimize time. But there are the filters to be filled before downloading the file, in these filters have the start date and end date, it must be the same…
-
0
votes0
answers29
viewsHow to paste with correct indentation?
It’s always a lot of work to fix indentation after copy and paste, but is there a way to paste with correct indentation? For example: x = int(input("0 ou 1? ")) if x == 1: print("ON") if x == 0:…
python python-3.x visual-studio-code ipython-notebook indentationasked 3 years, 4 months ago CrashXY 109 -
0
votes0
answers13
viewsKernel stuck in "Busy" after cell execution
I’m trying to run the following cell of a Jupyter Notebook: for cada_carteira in range(numero_carteiras): peso = np.random.random(numero_acoes) peso /= np.sum(peso) retorno = np.dot(peso,…
-
-1
votes1
answer18
viewsHow do I keep the word iris-setosa as text in python: df=pd.read_sql('SELECT class = 'iris-setosa' FROM tbl_iris',cnxn)
Olha o conexão já foi feita com sucesso no SQL Sever, já testei comandos como: df=pd.read_sql('SELECT class FROM tbl_iris',cnxn) ou até mesmo df = pd.read_sql('SELECT…
-
-1
votes2
answers1401
viewsInstallation libraries jupyter notebook
I’m trying to import the pandas in the notebook jupyter plus it gives me the following mistake: import pandas as pd ---------------------------------------------------------------------------…
-
-1
votes1
answer258
viewsHow to convert multiple columns from Object to Numeric in pandas?
good afternoon. I have a problem in an Aceleradev activity in Data Science, I would like a help. When I call the function . info(), it displays the values below: countries.info() <class…
-
-1
votes1
answer47
viewsIn Python, check if the contents of one column are present in another column?
I’m at Jupyter Notebook working with Python. My current dataframe is in the following format - data.Columns['name', 'filename', 'text']. All columns are string type, wish, take the 'name' column and…
-
-1
votes2
answers32
viewsHow to increase the title font of a Seaborn.displot chart?
Hello! I have the following code: f = sns.displot(df,x="yearOfRegistration", kde=True, binwidth=5) f.set(title = "Distribuição de Veículos com base no Ano de Registro") f.set_axis_labels("Ano de…
-
-2
votes1
answer89
viewsOnly she needs to calculate the result of this formula for various values of x
(x**2 - 4*x + 5). Only it needs to calculate the result of this formula for several values of x. Input format: Two integers, one in each row: The first number (a) represents the first value of x to…
-
-2
votes2
answers392
viewsconcatenate python csv files
3 lists that form the directory and the file name, I want to concatenate the files "lists_tipos_anos.csv" (around 44 files) in "lists_tipos_all.csv" (generate 4 files), where the "all" is all the…