Top "Data-science" questions

Implementation questions about data science.

Pandas dropna() function not working

I am trying to drop NA values from a pandas dataframe. I have used dropna() (which should drop all NA …

python pandas data-science
"ValueError: labels ['timestamp'] not contained in axis" error

I have this code ,i want to remove the column 'timestamp' from the file :u.data but can't.It shows …

python pandas machine-learning recommendation-engine data-science
Error importing auto_arima from pyramid

Trying to use pyramid's auto arima function and getting nowhere. Importing the whole class: import pyramid stepwise_fit = auto_arima(…

python data-science pyramid-analytics
Using sample_weight in Keras for sequence labelling

I am working on a sequential labeling problem with unbalanced classes and I would like to use sample_weight to …

python deep-learning keras data-science
Plot scikit-learn (sklearn) SVM decision boundary / surface

I am currently performing multi class SVM with linear kernel using python's scikit library. The sample training data and testing …

python python-2.7 scikit-learn svm data-science
How to read an ORC file stored locally in Python Pandas?

Can I think of an ORC file as similar to a CSV file with column headings and row labels containing …

python pandas pyspark data-science orc
How to get ROC curve for decision tree?

I am trying to find ROC curve and AUROC curve for decision tree. My code was something like clf.fit(…

python scikit-learn data-science auc
TypeError: __call__() missing 1 required positional argument: 'inputs'

I am trying to predict the close price (1 or 0) based on the features present in the 'input_data'. But when …

python machine-learning keras deep-learning data-science
Coherence score 0.4 is good or bad?

I need to know whether coherence score of 0.4 is good or bad? I use LDA as topic modelling algorithm. What …

data-science
Visualising 10 dimensional data with matplotlib

I have this kind of data : ID x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 1 -0.18 5 -0.40 -0.26 0.53 …

python numpy matplotlib data-science