Questions tagged [jupyter]

Jupyter is a collection of environments and protocols for interactive computing. It supports many languages and kernels, and works with frontends including the web application Jupyter Notebook. Jupyter was split from IPython in 2015, and Jupyter Notebook is based on IPython Notebook.

Filter by
Sorted by
Tagged with
4
votes
3answers
516 views

Best platform to work with when having millions of rows in dataframe

I have table with around 20 features and millions of observations (rows). I need to create model base on this table, however, as it is huge, training models like random forest or XGB takes forever. I'...
2
votes
0answers
29 views

Does Anaconda does not yet support Python 3.9.x? [closed]

I have downloaded and installed Python 3.9.7 (the latest version to date) on my Windows. It is installed and working fine using command prompt or VS code. But Anaconda (I use Jupyter NB) still shows ...
1
vote
2answers
76 views

ML : Found input variable with inconsistent numbers [closed]

I am trying an Retail ML project, but am stuck on the Error "Found input variables with inconsistent numbers of samples: [982644, 911]". I tired many thing & I know why this error occurs,...
0
votes
0answers
6 views

Can kaggle notebook run without websocket? It is stuck at session starting on laptop

I am running a laptop in which internet works only by connecting a VPN. However, seems like that VPN does not like below websocket which is required to run Kaggle Notebooks. I dont have other option ...
0
votes
1answer
38 views

Speculation regarding rising trend in softwares with a potential in diminishing the role of a data scientist [closed]

I have recently came across a demo of for a software that's built on natural language processing and its job is to convert a text the user types on a Python interpreter such as Jupyter and the ...
0
votes
1answer
22 views

Deployment in AzureML for NLP with fastText

I am new to Azure ML. I am working on sentimental analysis on a small tweet dataset with the help of fastText embedding (fastText file 'wiki-news-300d-1M.vec' is around 2.3 GB which I downloaded in my ...
0
votes
1answer
34 views
0
votes
1answer
437 views

Bar plot not showing up in Jupyter Notebook

I am trying to create a bar plot for a Pandas Series and the bar plot is not showing up in Jupyter notebook. When I run the cell, I only get the following and I do not see the bar plot. ...
1
vote
2answers
36 views

Error when trying to obtain accuracy score for classifiers

I am trying to get an accuracy score for the classifiers but I keep getting this error TypeError: predict() missing 1 required positional argument: 'X' Can anyone help? ...
0
votes
0answers
14 views

JupyterNotebook exporting graphs as SVG unintentionally cropped

Within JupyterNotebook the graphs are perfectly rendered and look great, however I cannot figure out why it's (unintentially) cropping my graphs during the exporting, such that the axis descriptions ...
1
vote
2answers
23 views

How does checkpoint works to find the very best model during training? [closed]

When filepath="weights-improvement-{epoch:02d}-{val_acc:.2f}.hdf5" I get key error val_acc (I use tensorflow 1.14.0). When ...
0
votes
2answers
434 views

Jupyter, Python: the kernel appears to have died while training a model on a big amount of data

I am training my model on almost 200 000 images, i'm using Jupyter and now after 3 days of training ( i used 800 epochs and batch-size = 600) I have this " the kernel appears to have died. It ...
1
vote
1answer
119 views

Changing duplicate a line hotkey in Jupyter notebook [closed]

To duplicate a line in Jupyter-notebook on a Mac, the hotkey is cmd + shift + D. The problem is I use Google Chrome, and this is the same hotkey to bookmark a ...
0
votes
1answer
1k views

Reading a json-file from an API, getting "AttributeError: 'Response' object has no attribute 'data' "error

Title says it all. Im trying to read a json file im accessing via an API. But when I try, I get the error: 'AttributeError: 'Response' object has no attribute 'data'...
1
vote
0answers
26 views

How to resolve IndexError while doing Monte Carlo for 1000 runs? [closed]

Below code runs without any problem, however when I run the same code using Monte Carlo Analysis for 1000 runs, it gives IndexError. Can someone explain why this happens. Thanks ...
2
votes
1answer
39 views

Notebook for data science

I'm searching for an online Jupiter notebook environment that allows collaborating in real-time. I've found that I've choice from two services Deepnote.com and DataLore by JetBrains. I have little ...
0
votes
1answer
169 views

How to retrieve tweets from all cities using Twint package in python?

Using Twint, I'm able to get tweets from each city in the list, but while creating a dataframe I only get tweet from the last city in the list, is it possible to append the tweets based on cities? <...
0
votes
1answer
26 views

keras mnist dataset

I am learning Neural Network. I was running following source code ...
0
votes
1answer
101 views

unable to predict by LinearRegression

Should I add csv as text in SO question? There's lot more data. ...
3
votes
0answers
11 views

Running DenseNet from cmd line and jupyter but vastly Different loss and accuracy [closed]

I’m running a DenseNet121 from Pytorch with the same exact code, same exact hyper parameters and same exact image sizes, once from a jupyter notebook and once using the command line via a python ...
1
vote
1answer
1k views

How can i increase the memory of Jupyter?

What I have: I have a data set (35989 rows × 16109 columns) and is unfortunately confidential. But i receive this error massage: ...
0
votes
1answer
376 views

How to show two pictures in one cell in Jupyter Notebook? (matplotlib) (python) [closed]

As a beginner, can someone please help me with this? Is there any way to show both pictures in a single cell's output? My output could only display one picture. Thank you for your time and attention! ...
0
votes
1answer
35 views

Access keys of pandas dataframe when using groupby

I have the following database: And I would like to know how many times a combination of BirthDate and Zipcode is repeated throughout the data table: Now, my question is: How can I access the keys of ...
0
votes
0answers
45 views

Why Spyder Python throwing error in I/O operation despite it?

Why Spyder Python stated that my code has error valued I/O operation & [SpyderKernelApp] ERROR | Error in message handler while when I run in PyCharm or copy it in Jupyter the code seems fine? ...
0
votes
0answers
974 views

Jupyter notebook kernel dies when reading CSV file on M1 Mac

Odd Jupyter notebook problem on M1 mac here. Using these steps I was able to get Jupyter Notebooks to run in the first place. It worked fine executing the following simple code: ...
0
votes
2answers
4k views

ValueError: y should be a 1d array, got an array of shape (1045, 5) instead [closed]

I have just started Python and working on training models. The task that I have been assigned is to train a dataset named "austin_Weather" Original Dataset y attribute After having done some ...
0
votes
1answer
43 views

Ordering a material science dataset (properties names, properties scalars, formulas)

I'm dealing with a materials science dataset and I'm in the following situation, I have data organized like this: ...
0
votes
0answers
83 views

outliers in time series

I have a data set like the following where the rows are dates and the columns are values recorded by different sensors on those dates. Before working with the data for the purpose of predicting it, I ...
1
vote
0answers
31 views

Issue with miscount on test train split in Python

Problem Hey everyone. I think I am missing something incredibly easy, but because I am wokring in resampling for the first time it is giving me all sorts of inadequacy. I performed an ADASYN up sample ...
0
votes
1answer
178 views

How to choose between Tensorflow and Pytorch?

Recently I've been working on a pretty vanilla ANN model in Python with sklearn (and its preprocessing pipeline), mostly in jupyterhub notebooks if that matters. I am considering changing the ...
0
votes
1answer
553 views

Calculate all days for each years between two dates in a pandas dataframe

I'm new in python and coding. I'm doing a university project exercise. Last question is : " For each year, compute the total amount of loans. Each loan that has planned expiration time and ...
1
vote
2answers
65 views

What does a blue empty cell mean [ ] in Anaconda if the cell above is still [*]?

I've been running a machine learning algorithm for two days now, I have a large dataset and a slow machine. I noticed today that the cell below the "fit model" cell turned from green to blue,...
0
votes
1answer
24 views

What common/simple problem would work well as a web app? [closed]

Context I'm currently writing a simple tutorial to demonstrate a tool to data scientists and analysts that turns Jupyter Notebooks into web apps. Basically, it discusses setting up the web app as a ...
4
votes
1answer
381 views

Has anyone succeeded in finding a good Scala/Spark kernel for Jupyter?

The ones I've tried so far Almond: Works very well for just Scala, but you have to import dependencies, and it gets tedious after a while. And unfortunately can't run when using Spark with YARN ...
0
votes
1answer
49 views

Classification or regression problem?

I have a table with this features: ...
3
votes
2answers
559 views

Running Jupyter notebook on remote server with local files

I would like to train my model faster and that's why would like to create a standalone remote machine with GPU support. The solution I am looking for is to have the data locally on my machine and to ...
9
votes
3answers
6k views

Generate pdf from jupyter notebook without code

I have a Jupyter notebook that contains markdown, code, and outputs (graphs). I would like to generate PDF from this notebook. I tried to hide code using HTML code which I get from here then I tried ...
2
votes
1answer
51 views

Multiple models in the same notebook

Having working on data sets, sometimes we want to keep track of mtiple models with different architectures which work on the same data set on which we have made some transformations and preprecessing ...
2
votes
0answers
300 views

How to remove outliers from each group within a boxplot?

I am wanting to remove all the outliers for each individual ID in a boxplot. I have tried the following code: ''' ...
4
votes
2answers
10k views

How to setup and run Conda on Google Colab

I am interested in using Google Colab for data modeling. How do I install conda, create an environment and run python in a notebook? I did some searching and found some helpful hints, but had several ...
0
votes
1answer
23 views

Split a string and create a news columns with parents

let's say I have this dataframe, and I would like to split it into several after (.) and have it like that, with levels
1
vote
1answer
765 views

Scalling and unscalling of data for SVR prediction

I'm trying to use SVR to predict a certain feature. I create the model with the following code: ...
1
vote
1answer
53 views

PCA - what do I do with its results?

I have a data set with more than 20 features, and I applied PCA: ...
0
votes
1answer
3k views

Creating bar plot with frequency distribution based

I have a dataframe with this kind of structure: ...
0
votes
1answer
511 views

Changing the default scale of a plot to a "custom scale"

I am trying to change the scale of the x_axis for a plot. The default is generating divisions of 20 units (0-20-40-60-80-100-120). I tried changing to log, but then I get 0-10-100, which helps ...
0
votes
1answer
214 views

AttributeError: 'DataFrame' object has no attribute 'as_matrix' is the error [closed]

AttributeError: 'DataFrame' object has no attribute 'as_matrix' is the error
1
vote
1answer
908 views

How to add column name

I have a dataset in which some columns have header but the other ones don't have. Therefore, I want to add column name only to those who doesn't have column name. I know how to add column names using ...
3
votes
1answer
5k views

No module named "" error when loading the pickle file

I created a model and I saved it in a pickle file using the Algorithm SVR(Support Vector Regression) ...
2
votes
1answer
9k views

Practical way to convert jupyter notebook to MS Word document?

What would be a practical way to convert a Jupyter Notebook to a Word document (.doc) ? I am asking this in a professional context, so I'd like to avoid manual solutions, do it in an efficient way (...