Questions tagged [ipython]
IPython is a feature-rich interactive shell for Python, and provides a kernel for frontends such as IPython Notebook and Jupyter Notebook.
45
questions
3
votes
2answers
296 views
How to install Polynote on Windows?
I've been searching around the Internet for a while but I have not been able to find detailed instructions on how to install Polynote (The polyglot notebook
with first-class Scala support.) for ...
1
vote
0answers
9 views
Google Collaboratory Downloaded Libraries and Files Location [closed]
So, when using Google Collab, by default it's actually a built-in Python environment in the browser, right? Usually, user will import library from Unknown location into Collab.
I said Unknown ...
0
votes
2answers
68 views
0
votes
1answer
2k views
np.loadtxt function showing error, could not convert string to float: '“Date”'
This is my stock market csv data:
...
1
vote
1answer
33 views
0
votes
1answer
40 views
Jupyter Notebook not importing pandas module
I am running Jupyter on a server on a virtual environment. I then tunnel my connection so I can access Jupyter on my browser.
When I SSH into the server, I can use the Panda module in both Ipython ...
0
votes
0answers
957 views
Jupyterlab Inline Interactive plot
I am trying to make my inline plots in jupyterlab interactive. So far, I have tried a suggestion as pointed out here, among others:
https://stackoverflow.com/questions/50149562/jupyterlab-interactive-...
0
votes
1answer
38 views
Python Script using pandas to plot histograms between the features
I am working around with data from Kaggle : Titanic Competition dataset.
Script
...
2
votes
0answers
16 views
Z values get rescaled while plotting in 3d
x_3d = 5.171875 , 5.3125 , 5.171875 ... 6
y_3d = 0, 1, 2, 3, 4, 5, .... 1500 (1500 points)
z_3d = -10.493983 , 22.128998 , -14.582531 , 34.687847 ,
11....
1
vote
1answer
437 views
How to Use Shap Kernal Explainer with Pipeline models?
I have a pandas DataFrame X. I would like to find the prediction explanation of a a particular model.
My model is given below:
...
0
votes
1answer
19 views
Is my iPython Installation Valid?
I just want to know if my ipython is properly installed. I have both Python and Anaconda installed on my Windows. I entered the "pip3 install ipython" command on the Command Prompt and it downloaded ...
2
votes
1answer
382 views
Pandas Groupby makes kernel die in Jupyter notebook/Python
I have a groupby in jupyter-notebook that takes ages to run and after 10 minutes of running it says 'kernel died...',
The groupby looks like this:
...
0
votes
0answers
18 views
Using Matplotlib [duplicate]
I am new to data science. I use Anaconda on windows 7.
I plotted a sine curve by doing the following on iPython:
...
0
votes
0answers
19 views
How to Decide Topics For the Documents using LDA
I am trying to Classify Topics From Documents using LDA. I want to get topics classified as human classify from words,
https://medium.com/mlreview/topic-modeling-with-scikit-learn-e80d33668730
https:...
2
votes
0answers
23 views
identifying the primary and secondary keywords in sentense
want to identify the primary and secondary keywords which are having an impact to sentences or comparison between 2 keywords.
below is the example
India and China has highest population in the ...
0
votes
1answer
13 views
What is the first tool to learn start your your data science projects? [closed]
What is the first tool to learn start your your data science projects?
3
votes
2answers
159 views
Why do a lot of people use ipython notebook over python file when doing analyzing data? Is it the same in industry?
I have seen that a lot of people write code in ipython notebook when doing statistical analysis on data, apart from easy visualization after each step rather than running the whole code every time on ...
2
votes
1answer
89 views
Tools for visualisation: making a video of a sliding windows moving on the time series
I have a Neural Network (an autoencoder) that gets as the input a time-window of length M from a time series of length N, (...
0
votes
1answer
20 views
I am getting a Type Error in this Line
Diff = [i - j for i,j in zip(text_features, author_signature)]
Diff is a List ,
text_features = [1, 2, 3] ,
author_signature = [3, 2, 1]
0
votes
3answers
466 views
Python Code to find the number of hapax legomena in a Text or Words_List
In corpus linguistics, a hapax legomenon is a word that occurs only once within a context, either in the written record of an entire language, in the works of an author, or in a single text. The term ...
0
votes
5answers
7k views
remove special character in a List or String
Input_String is Text_Corpus of Jane Austen Book
output Should be :
['to', 'be', 'or', 'not', 'to', 'be', 'that', 'is', 'the', 'question']
But getting this Output :
['to', 'be,', 'or', 'not', 'to', '...
2
votes
2answers
3k views
Create a binary-classification dataset (python: sklearn.datasets.make_classification)
I would like to create a dataset, however I need a little help. The dataset is completely fictional - everything is something I just made up.
Since the dataset is for a school project, it should be ...
2
votes
0answers
67 views
detecting anomaly from cdr data
I need to find anomalies from this. The term anomaly in my case is in which square id and in which time the total activity goes higher, how can I detect anomalies with the help of machine learning ...
0
votes
1answer
2k views
Jupyter notebook running very slow
I am running a RandomForestClassifier on my data but my jupyter notebook is very slow. It took almost 2 hours to run the below code:
...
3
votes
3answers
9k views
How to download a Jupyter Notebook from GitHub? [closed]
This is a fairly basic question.
I am working on a data science project inside of a Pandas tutorial. I can access my Jupyter notebooks through my Anaconda installation. The only problem is that the ...
0
votes
1answer
2k views
how to export the tables into a csv file pandas
The following is a piece of code I wrote to create a pivot table for categorical vs continuous variable.
...
0
votes
1answer
804 views
Python: Detect if data of a time series stays constant, increases or decreases
i need to analyse and later try to improve (integrate a filter) for measurement data that i compare to accurate reference data with python.
First i want to calculate the mean offset and the standard ...
1
vote
0answers
37 views
How to resolve name 'log_reg' is not defined [closed]
I am working with the cancer data everything is working perfect but just after the window update i am getting this error
this is my python code
...
2
votes
4answers
4k views
Interactive plots in Jupyter
I'm looking for Jupyter extension to plot interactive graphs. For example I need to plot twenty time series lines with order to examine data. Only plugin which I've found is bqplot https://github.com/...
0
votes
1answer
351 views
Unable to print in Jupyter Notebook using Pandas [closed]
I am doing basic data analysis on an csv file in jupyter notebook
def answer_two():
return (df['Gold']-df['Gold.1']).argmax()
answer_two
The above code ...
1
vote
1answer
12k views
How to transpose rows into single column based on time-stamp index in python?
Sample input dataset is:
Sample output dataset what i want:
...
1
vote
1answer
723 views
Unable to immediately continue Jupyer Notebook after closing then reopening the project
When I reopen a project I am working on in the Jupyter Notebook, and trying to add code, the cell restarts at '1' and the only way I can continue to work with my previous objects present is by ...
3
votes
1answer
5k views
python print values seasonal_decomposition
I am totally beginner in Python and after using seasonal_decompose for time series decomposition result=seasonal_decompose(series, model='additive', freq=365) I got ...
-1
votes
1answer
656 views
How to group data and plot line graphs
This is the first time I am using pandas and iPython notebook and was not able to figure out the correct search terms for my problem.
I have a .xls file for ...
1
vote
1answer
1k views
Calculating mean of data frame inside a series object
I have a data frame with following structure:
...
3
votes
1answer
4k views
How to change plot size in nltk.plot()
I'm following along the NLTK book and would like to change the size of the axes in a lexical dispersion plot:
...
9
votes
1answer
1k views
Avoid reloading DataFrame between different python kernels
Is there a way of keeping a variable (large table / data frame) in memory and share it across multiple ipython notebooks?
I'd be looking for something, which is conceptually similar to MATLAB's ...
9
votes
3answers
15k views
How to export one cell of a jupyter notebook?
I'm currently working/prototyping into a Jupyter notebook. I want to run some of my code on a standalone iPython shell.
For now, I export my iPython code (file --> download as) and then execute it ...
3
votes
3answers
7k views
Open-source interactive dashboard in Python
I am trying to find a package to construct a dashboard with interactive graphs (including widgets such as sliders) in python (mainly IPython notebook). I know there is plotly but I would like a fully ...
9
votes
2answers
64k views
How to group identical values and count their frequency in Python?
Newbie to analytics with Python so please be gentle :-) I couldn't find the answer to this question - apologies if it is already answered elsewhere in a different format.
I have a dataset of ...
4
votes
2answers
2k views
How to plot large web-based heatmaps?
I want to plot large heatmaps (say a matrix $500 \times 500$). I can do it in Python/matplotlib.pyplot with pcolor, but it is not interactive (and I need an interactive heatmap). I have tried with D3....
7
votes
3answers
28k views
How do I set/get heap size for Spark (via Python notebook)
I'm using Spark (1.5.1) from an IPython notebook on a macbook pro. After installing Spark and Anaconda, I start IPython from a terminal by executing: ...
11
votes
3answers
5k views
Issue with IPython/Jupyter on Spark (Unrecognized alias)
I am working on setting up a set of VMs to experiment with Spark before I spend go out and spend money on building up a cluster with some hardware. Quick note: I am an academic with a background in ...
8
votes
4answers
8k views
How to run a pyspark application in windows 8 command prompt
I have a python script written with Spark Context and I want to run it. I tried to integrate IPython with Spark, but I could not do that. So, I tried to set the spark path [ Installation folder/bin ] ...
2
votes
1answer
3k views
How do I show plots when using Graphlab?
Sorry, if this topic is not connected directly to Data Science.
I want to understand how the Graphlab tool works. Firstly I want to execute the toy examples from the Gallery site. When I try to ...