id
stringlengths
7
11
source
stringclasses
1 value
category
stringclasses
11 values
title
stringlengths
15
214
text
stringlengths
70
30.5k
url
stringlengths
57
160
tags
stringlengths
3
113
created_at
int64
1.22B
1.79B
se_76557111
stackoverflow
DATA_SCIENCE
sklearn OrdinalEncoder default ordering (categories='auto')
sklearn OrdinalEncoder default ordering (categories='auto') What is the default rule used by sklearn OrdinaleEcoder to determine the order of the categories when categories='auto'? Is it just sorted lexicographically? couldn't find it in the docs
https://stackoverflow.com/questions/76557111/sklearn-ordinalencoder-default-ordering-categories-auto
scikit-learn, data-science
1,687,785,731
se_59409967
stackoverflow
DATA_SCIENCE
Proper way to handle highly imbalanced data - binary classification
Proper way to handle highly imbalanced data - binary classification I have a really large dataset with 60 million rows and 11 features. It is highly imbalanced dataset, 20:1 (signal:background). As I saw, there are two ways to tackle this problem: First: Under-sampling/Oversampling. I have two problems/questions in th...
https://stackoverflow.com/questions/59409967/proper-way-to-handle-highly-imbalanced-data-binary-classification
python, pandas, machine-learning, neural-network, data-science
1,576,759,036
se_79284426
stackoverflow
DATA_SCIENCE
How to manage memory consumption in deep learning models?
How to manage memory consumption in deep learning models? When I run this code, the runtime session automatically closes. There is no space in RAM left. Hence the session closes automatically. I am using pytorch in Google Colab notebook. I tried switching from CPU to GPU but still the session closes automatically. !pi...
https://stackoverflow.com/questions/79284426/how-to-manage-memory-consumption-in-deep-learning-models
deep-learning, pytorch, data-science, large-language-model, transfer-learning
1,734,346,810
se_79373414
stackoverflow
DATA_SCIENCE
Create a graphic for a multiindexed data frame
Create a graphic for a multiindexed data frame This is my first question. I don't find the way to create a graphic from a multi indexed data frame so I can show the development goes for the answers of a test. It keeps throwing errors. First part of the code just explains how I created the data frame so you all can hav...
https://stackoverflow.com/questions/79373414/create-a-graphic-for-a-multiindexed-data-frame
python, dataframe, jupyter-notebook, seaborn, data-science
1,737,441,574
se_75350622
stackoverflow
DATA_SCIENCE
IntCastingNaNError: Cannot convert non-finite values (NA or inf) to integer
IntCastingNaNError: Cannot convert non-finite values (NA or inf) to integer While on executing this particular line of code I am getting error.Need to convert particular column havin string datatype to numerical values data['sex'] = data['sex'].map( {'male': 1, 'female': 0} ).astype("int64") Error message IntCasting...
https://stackoverflow.com/questions/75350622/intcastingnanerror-cannot-convert-non-finite-values-na-or-inf-to-integer
python, data-science
1,675,580,930
se_79361278
stackoverflow
DATA_SCIENCE
X (Twitter) webscraping using twikit. How to validate if auth_token expired?
X (Twitter) webscraping using twikit. How to validate if auth_token expired? I am trying to use twikit python lib to webscrape X (formerly known as twitter). I am unable to validate if the auth_token expired or not. Here is the code snippet for your reference: from twikit import Client, TooManyRequests import time fro...
https://stackoverflow.com/questions/79361278/x-twitter-webscraping-using-twikit-how-to-validate-if-auth-token-expired
python, web-scraping, twitter, data-science
1,737,024,716
se_59035008
stackoverflow
DATA_SCIENCE
SHAP value can explain right?
SHAP value can explain right? I face a problem with using SHAP value to interpret a Tree-based model (https://github.com/slundberg/shap). First, I have input around 30 features and I have 2 features that have high positive correlation between them. After that, I train the XGBoost model(python) and look at SHAP values ...
https://stackoverflow.com/questions/59035008/shap-value-can-explain-right
python, machine-learning, data-science, xgboost, shap
1,574,695,286
se_43163296
stackoverflow
DATA_SCIENCE
Pandas multiindex dataframe - Selecting max from one index within multiindex
Pandas multiindex dataframe - Selecting max from one index within multiindex I've got a dataframe with a multi index of Year and Month like the following | |Value Year |Month| | 1 | 3 1992 | 2 | 5 | 3 | 8 | ... | ... 1993 | 1 | 2 | ... | ... I'm trying to select the maximu...
https://stackoverflow.com/questions/43163296/pandas-multiindex-dataframe-selecting-max-from-one-index-within-multiindex
python, python-3.x, pandas, dataframe, data-science
1,491,091,637
se_79270683
stackoverflow
DATA_SCIENCE
How to encode item features with high number of categories for recommendation
How to encode item features with high number of categories for recommendation For the recommendation problem I am working on, there are around 50000 unique brands and 3 level product categories, level_1_cat (50 categories), level_2_cat (100 categories) and level_3_cat (1000 categories). All these item features are rep...
https://stackoverflow.com/questions/79270683/how-to-encode-item-features-with-high-number-of-categories-for-recommendation
machine-learning, encoding, data-science, categorical-data, recommendation-engine
1,733,899,140
se_79317603
stackoverflow
DATA_SCIENCE
Azure Video Indexer API: "USER_NOT_ALLOWED" Error When Checking Blurring Job Status After Completion of Bluring
Azure Video Indexer API: "USER_NOT_ALLOWED" Error When Checking Blurring Job Status After Completion of Bluring Current permissions I am working with the Azure Video Indexer API in Python to process videos, specifically to index and blur them. While both the indexing and blurring processes run successfully u...
https://stackoverflow.com/questions/79317603/azure-video-indexer-api-user-not-allowed-error-when-checking-blurring-job-sta
python, azure, data-science, azure-video-indexer
1,735,562,013
se_79314154
stackoverflow
DATA_SCIENCE
ERROR: raise ValueError(f"Shape of passed values is {passed}, indices imply {implied}") when using GridSearchCV
ERROR: raise ValueError(f"Shape of passed values is {passed}, indices imply {implied}") when using GridSearchCV I tried to use GridSearchCV to train pipeline model but I met this error. When I trained without GridSearchCV, there is no error, so I don't understand what is the problem. class FeatureEngineering...
https://stackoverflow.com/questions/79314154/error-raise-valueerrorfshape-of-passed-values-is-passed-indices-imply-imp
data-science, pipeline, one-hot-encoding, gridsearchcv
1,735,403,293
se_51265625
stackoverflow
DATA_SCIENCE
Invalid length argument
Invalid length argument I want to convert all the columns of my dataframe to numeric format. I use lapply - like this: data.frame(lapply(dat, numeric)) But I get an error from this code: Invalid length argument However, it is working when I tried with individual columns: lapply(dat$x.Type, numeric) But then agai...
https://stackoverflow.com/questions/51265625/invalid-length-argument
r, dataframe, data-science, sapply
1,531,226,805
se_75796047
stackoverflow
DATA_SCIENCE
How to evaluate the quality of PCA returned by torch.pca_lowrank()?
How to evaluate the quality of PCA returned by torch.pca_lowrank()? I use the following piece of code: U, S, V = torch.pca_lowrank(A, q=self.n_components) self.V = V self.projection = torch.matmul(A, V) How to compute the cumulative percent variance or any other accuracy metric (single value between 0 and 100%) based...
https://stackoverflow.com/questions/75796047/how-to-evaluate-the-quality-of-pca-returned-by-torch-pca-lowrank
pytorch, data-science, linear-algebra, pca, precision-recall
1,679,353,024
se_79204051
stackoverflow
DATA_SCIENCE
Problem with SHAP plot for multiclass problem
Problem with SHAP plot for multiclass problem I have following this code: from xgboost import XGBClassifier import shap from sklearn.preprocessing import LabelEncoder # Encode the labels for multiclass classification label_encoder = LabelEncoder() y_enc = label_encoder.fit_transform(y) # Train an XGBoost model model...
https://stackoverflow.com/questions/79204051/problem-with-shap-plot-for-multiclass-problem
python, data-science
1,732,030,316
se_59616786
stackoverflow
DATA_SCIENCE
Scikit-fuzzy getting error raise ValueError("Unexpected input: " + key)
Scikit-fuzzy getting error raise ValueError("Unexpected input: " + key) My code - on scikit-fuzzy lib - 2 inputs - one temperature in room, another desired temperature. Output - temperature sugested in boiler furnace. Everything in °C. pastebin.com/Vz3cMXUk I really can't dont know how to resolve this, ...
https://stackoverflow.com/questions/59616786/scikit-fuzzy-getting-error-raise-valueerrorunexpected-input-key
python, data-science
1,578,333,520
se_52173203
stackoverflow
DATA_SCIENCE
How do I force clustering of data in a specific evident pattern?
How do I force clustering of data in a specific evident pattern? I have a large set of 'Vehicle speed vs Engine RPM' values for a vehicle. I'm try to predict the time spent by the vehicle on each gear. I ran K-Means clustering on the dataset and got the following result: Clearly, my algorithm has failed to capture ...
https://stackoverflow.com/questions/52173203/how-do-i-force-clustering-of-data-in-a-specific-evident-pattern
python, scikit-learn, data-science
1,536,091,009
se_72030718
stackoverflow
DATA_SCIENCE
Getting straight line while creating ARIMA model
Getting straight line while creating ARIMA model I have a Fan Speed (RPM) dataset of 192.405 Values (train+test values). I am training the ARIMA model and trying to predict the rest of the future values of our dataset and comparing the results. While fitting the model in test data I am getting straight line for predic...
https://stackoverflow.com/questions/72030718/getting-straight-line-while-creating-arima-model
python, data-science, prediction, forecasting, arima
1,651,070,496
se_79261395
stackoverflow
DATA_SCIENCE
Aggregate function as an argument
Aggregate function as an argument I need to write a function: def group_and_aggregate_data(df:pd.DataFrame, group_by_column:str, agg_func) -> pd.DataFrame that groups my Excel data by city name and applies the agg_func passed as an argument. I tried this: def group_and_aggregate_data(dataframe, cond, func): df_by...
https://stackoverflow.com/questions/79261395/aggregate-function-as-an-argument
python, pandas, data-science
1,733,605,131
se_62976233
stackoverflow
DATA_SCIENCE
What is 'fit' in Machine learning?
What is 'fit' in Machine learning? What is 'fit' in machine learning? I noticed in some cases it is a synonym for training. Can someone please explain in layman's term?
https://stackoverflow.com/questions/62976233/what-is-fit-in-machine-learning
machine-learning, data-science
1,595,132,299
se_79077092
stackoverflow
DATA_SCIENCE
Need to fix time zone issue for my Python, Pyspark processing job
Need to fix time zone issue for my Python, Pyspark processing job I have database column in Postgres aurora “last_updated_timestamp” which is without timezone and has value “2024-08-01 00:00:00” I am fetching that value using pyspark df when I do df.show() It is showing same value : 2024-08-01 00:00:00. For my use cas...
https://stackoverflow.com/questions/79077092/need-to-fix-time-zone-issue-for-my-python-pyspark-processing-job
python, pyspark, data-science, parquet, data-engineering
1,728,629,835
se_78862342
stackoverflow
DATA_SCIENCE
Finding maximum of multiple arrays in respect to their index, that can vary
Finding maximum of multiple arrays in respect to their index, that can vary Problem description: I have got values that do correspond to specific conrer_ids, elements. From multiple sets of these values I need to find maximum ones and generate arrays containing conrer_ids, elements and their respective values. exampl...
https://stackoverflow.com/questions/78862342/finding-maximum-of-multiple-arrays-in-respect-to-their-index-that-can-vary
pandas, numpy, data-science, scientific-computing
1,723,474,676
se_51410033
stackoverflow
DATA_SCIENCE
What is the definition of the terms SPATIAL and TEMPORAL in terms of statistics, data science or machine learning
What is the definition of the terms SPATIAL and TEMPORAL in terms of statistics, data science or machine learning What is the exact definition of spatial and temporal? I saw in many places people use these two terms, e.g., spatial vector, temporal vector, temporal factor, spatial location. I was searching in StackOve...
https://stackoverflow.com/questions/51410033/what-is-the-definition-of-the-terms-spatial-and-temporal-in-terms-of-statistics
machine-learning, statistics, spatial, data-science, temporal
1,531,943,573
se_76436619
stackoverflow
DATA_SCIENCE
Getting RuntimeError : configs/COCO-Detection/faster_rcnn_R_50_FPN_3x.yaml not available in Model Zoo! while Running Detectron2 for Object Detection
Getting RuntimeError : configs/COCO-Detection/faster_rcnn_R_50_FPN_3x.yaml not available in Model Zoo! while Running Detectron2 for Object Detection Want to train a custom Image Dataset by Detectron2 Faster_RCNN model . I am using a wsl2 ubuntu terminal and a VScode in my windows os. In my train.py, I initiate a confi...
https://stackoverflow.com/questions/76436619/getting-runtimeerror-configs-coco-detection-faster-rcnn-r-50-fpn-3x-yaml-not-a
python, data-science, pre-trained-model, faster-rcnn, detectron
1,686,273,760
se_79215418
stackoverflow
DATA_SCIENCE
Error in odbcConnectAccess2007("BD-Embalses.mdb"). R could not find the function "odbcConnectAccess2007" after installing and loading RODBC
Error in odbcConnectAccess2007("BD-Embalses.mdb"). R could not find the function "odbcConnectAccess2007" after installing and loading RODBC I'm a student of Data Science, and I'm working in a project to visualize a database of Spanish reservoirs; but I'm getting this error: # package installations ...
https://stackoverflow.com/questions/79215418/error-in-odbcconnectaccess2007bd-embalses-mdb-r-could-not-find-the-function
r, database, ms-access, odbc, data-science
1,732,286,034
se_60696799
stackoverflow
DATA_SCIENCE
Searching for (maybe spurious) correlation in google trends
Searching for (maybe spurious) correlation in google trends This is a bit of an odd question but I was thinking about this for some time now and I would be very interested in best practice of doing this: Let's assume I have a dataset with a time series variable X. Now I want to find ALL google search terms Y that hav...
https://stackoverflow.com/questions/60696799/searching-for-maybe-spurious-correlation-in-google-trends
data-science, correlation, google-trends
1,584,300,740
se_72157515
stackoverflow
DATA_SCIENCE
Trying plot two geodataframes with two legends in the same plot in Geopandas
Trying plot two geodataframes with two legends in the same plot in Geopandas I have gotten a trouble with multi layers in the same plot with geopandas. I got plot both successfully separately, however to plot two legends (one to each) I could not. Below it is the code to read the datasets. dfGeo = pd.read_csv('drive/M...
https://stackoverflow.com/questions/72157515/trying-plot-two-geodataframes-with-two-legends-in-the-same-plot-in-geopandas
python, matplotlib, plot, data-science, geopandas
1,651,974,294
se_62746655
stackoverflow
DATA_SCIENCE
XGBoost Python error: "Size of labels must equal to number of rows"
XGBoost Python error: "Size of labels must equal to number of rows" I am using xgboost in Python. import pandas as pd import numpy as np import xgboost as xgb from sklearn.model_selection import train_test_split df=pd.read_csv('442.csv') y=df.columnone X=df.columnfive X_train,X_test,Y_train,Y_test=train_te...
https://stackoverflow.com/questions/62746655/xgboost-python-error-size-of-labels-must-equal-to-number-of-rows
python, data-science, xgboost
1,593,985,429
se_54762690
stackoverflow
DATA_SCIENCE
Evaluation of topic modeling: How to understand a coherence value / c_v of 0.4, is it good or bad?
Evaluation of topic modeling: How to understand a coherence value / c_v of 0.4, is it 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 is the average coherence score in this context?
https://stackoverflow.com/questions/54762690/evaluation-of-topic-modeling-how-to-understand-a-coherence-value-c-v-of-0-4
data-science, lda, topic-modeling
1,550,568,197
se_76836255
stackoverflow
DATA_SCIENCE
Deploy chatbot to AzureFunction
Deploy chatbot to AzureFunction Im trying to deploy Chatbot to Azure Function. Im using vs code to deploy to code and also debugging with Azure Tools and Azurite. Locally everything is working. After deploying a got this error: " import duckdb ImportError: generic_type: type "ExplainType" is already registered" So i...
https://stackoverflow.com/questions/76836255/deploy-chatbot-to-azurefunction
python, azure, azure-functions, data-science, chatbot
1,691,154,680
se_60462446
stackoverflow
DATA_SCIENCE
In R how to plot the tail area of a normal distribution using ggplot?
In R how to plot the tail area of a normal distribution using ggplot? I found a way to "hack" ggplot by combining two geom_area plots to create a normal distribution with a tail area: library(ggplot2) mean <- 0 standard_deviation <- 1 Zscore <- -1.35 observation = (Zscore*standard_deviation) + mean (tail_area <- ro...
https://stackoverflow.com/questions/60462446/in-r-how-to-plot-the-tail-area-of-a-normal-distribution-using-ggplot
r, ggplot2, data-science, normal-distribution
1,582,956,056
se_79183884
stackoverflow
DATA_SCIENCE
How to use Python to replicate Random Forest Regression prediction using decision paths?
How to use Python to replicate Random Forest Regression prediction using decision paths? I'm trying to test whether I've understood the way RandomForestRegressor produces forecast after a model's fitted. I used the California housing example to train a simple model and predict the first value in my test set. I then us...
https://stackoverflow.com/questions/79183884/how-to-use-python-to-replicate-random-forest-regression-prediction-using-decisio
machine-learning, scikit-learn, data-science, random-forest
1,731,484,553
se_76463707
stackoverflow
DATA_SCIENCE
unable to install lap==0.4.0 library in python
unable to install lap==0.4.0 library in python I was trying to install lap for object detection but i cloud not do it. I have try to installed it on python version 9 , 10 and 11 also but i cant do it I am learning object detection from Murtaza's Workshop - Robotics and AI. or is there any way to fix this problem C:\\...
https://stackoverflow.com/questions/76463707/unable-to-install-lap-0-4-0-library-in-python
python, machine-learning, data-science, object-detection, cvzone
1,686,650,126
se_42993550
stackoverflow
DATA_SCIENCE
GridSearchCV - XGBoost - Early Stopping
GridSearchCV - XGBoost - Early Stopping i am trying to do hyperparemeter search with using scikit-learn's GridSearchCV on XGBoost. During gridsearch i'd like it to early stop, since it reduce search time drastically and (expecting to) have better results on my prediction/regression task. I am using XGBoost via its Sci...
https://stackoverflow.com/questions/42993550/gridsearchcv-xgboost-early-stopping
python-3.x, scikit-learn, regression, data-science, xgboost
1,490,339,703
se_78874263
stackoverflow
DATA_SCIENCE
Error get_features_name_out in getting back the feature name
Error get_features_name_out in getting back the feature name I want to know the feature importance to my data, so I use permutation_importance. When I get the result, it seems the feature already decoded, and I want to know the name of my feauture using get_features_name_out. It turns an error 'StandardScaler' object ...
https://stackoverflow.com/questions/78874263/error-get-features-name-out-in-getting-back-the-feature-name
python, pandas, scikit-learn, data-science
1,723,710,687
se_79167418
stackoverflow
DATA_SCIENCE
Creating Team Data Science Process in ADO
Creating Team Data Science Process in ADO Our organization is currently utilizing Azure DevOps (ADO), and we're interested in integrating the "Team Data Science Process" (TDSP) into our data science and machine learning project workflows within ADO. Upon accessing ADO Board --> Process, I notice that there are four av...
https://stackoverflow.com/questions/79167418/creating-team-data-science-process-in-ado
azure-devops, process, data-science
1,730,998,958
se_79165649
stackoverflow
DATA_SCIENCE
Handling Multiple Entity Candidates in Short Texts for Entity Linking with SciSpacy
Handling Multiple Entity Candidates in Short Texts for Entity Linking with SciSpacy I am working on linking short texts to entities in a biomedical knowledge graph (UMLS CUIs) using SciSpacy for a research project. The goal is to analyze the relationship between the linked entity and a separate predefined entity. My c...
https://stackoverflow.com/questions/79165649/handling-multiple-entity-candidates-in-short-texts-for-entity-linking-with-scisp
nlp, data-science, spacy, named-entity-recognition, entity-linking
1,730,969,534
se_52631965
stackoverflow
DATA_SCIENCE
Text Classification + NLP + Data-mining + Data Science: Should I do stop word removal and stemming before applying tf-idf?
Text Classification + NLP + Data-mining + Data Science: Should I do stop word removal and stemming before applying tf-idf? I am working on a text classification problem. The problem is explained below: I have a dataset of events which contains three columns - name of the event, description of the event, category of t...
https://stackoverflow.com/questions/52631965/text-classification-nlp-data-mining-data-science-should-i-do-stop-word-re
nlp, data-mining, data-science, text-classification, tf-idf
1,538,585,194
se_79146128
stackoverflow
DATA_SCIENCE
Loading Fuzzywuzzy into conda environment on VS Code won&#39;t work
Loading Fuzzywuzzy into conda environment on VS Code won&#39;t work I currently cannot install fuzzywuzzy but fuzzy matching is quite vital to a data project I'm working on as the dataset contains thousands of points and needs to be grouped computationally. I'm fairly new to VS Code so perhaps that is why but used the...
https://stackoverflow.com/questions/79146128/loading-fuzzywuzzy-into-conda-environment-on-vs-code-wont-work
python, visual-studio-code, data-science, fuzzywuzzy
1,730,403,328
se_79141121
stackoverflow
DATA_SCIENCE
How to use Github Rest API properly
How to use Github Rest API properly I am doing my college assignment project. But am not able to find these data using github api: login: Their Github user ID name: Their full name company: The company they work at. Clean up company names. At least make sure: They're trimmed of whitespace Leading @ symbol is stripped ...
https://stackoverflow.com/questions/79141121/how-to-use-github-rest-api-properly
github, web-scraping, data-science
1,730,291,349
se_66376105
stackoverflow
DATA_SCIENCE
How to perform standardization and normalization on features from different feature engineering process?
How to perform standardization and normalization on features from different feature engineering process? I'm working with a dataset where each sample contains both numeric and text data. Therefore multiple methods are employed to build the training feature matrix from the dataset. For each sample in the dataset, I con...
https://stackoverflow.com/questions/66376105/how-to-perform-standardization-and-normalization-on-features-from-different-feat
python, machine-learning, scikit-learn, data-science
1,614,285,530
se_74398053
stackoverflow
DATA_SCIENCE
Parallel querying indices for a list of filter expressions in polars dataframe
Parallel querying indices for a list of filter expressions in polars dataframe I want to get the indices for a list of filters in polars and get a sparse matrix from it, how can I parallel the process? This is what I have right now, a pretty naive and brute force way for achieving what I need, but this is having some ...
https://stackoverflow.com/questions/74398053/parallel-querying-indices-for-a-list-of-filter-expressions-in-polars-dataframe
python, scipy, data-science, python-polars
1,668,141,279
se_54267745
stackoverflow
DATA_SCIENCE
Implementing custom loss function in scikit learn
Implementing custom loss function in scikit learn I want to implement a custom loss function in scikit learn. I use the following code snippet: def my_custom_loss_func(y_true,y_pred): diff3=max((abs(y_true-y_pred))*y_true) return diff3 score=make_scorer(my_custom_loss_func,greater_ is_better=False) clf=RandomF...
https://stackoverflow.com/questions/54267745/implementing-custom-loss-function-in-scikit-learn
python, machine-learning, scikit-learn, data-science, gridsearchcv
1,547,905,667
se_76667920
stackoverflow
DATA_SCIENCE
Fill NaN values in Polars using a custom-defined function for a specific column
Fill NaN values in Polars using a custom-defined function for a specific column I have this code in pandas: df[col] = ( df[col] .fillna(method="ffill", limit=1) .apply(lambda x: my_function(x)) ) I want to re-write this in Polars. I have tried this: df = df.with_columns( ...
https://stackoverflow.com/questions/76667920/fill-nan-values-in-polars-using-a-custom-defined-function-for-a-specific-column
python, data-science, python-polars
1,689,145,543
se_67329095
stackoverflow
DATA_SCIENCE
When should you convert Age column in float or int?
When should you convert Age column in float or int? I had this doubt, often datasets have the Age column values in either int or float datatype (Eg Titanic). So suppose the column has all float values, should you convert them all to int or let it be just like that while feeding it to ML Model, Does it have any harm or...
https://stackoverflow.com/questions/67329095/when-should-you-convert-age-column-in-float-or-int
python-3.x, pandas, dataframe, numpy, data-science
1,619,763,691
se_79067886
stackoverflow
DATA_SCIENCE
`inner_kws` having no effect on Seaborn violin plot
`inner_kws` having no effect on Seaborn violin plot I generated a bunch of violin plots, here is an example of one and the code that generates it: plt.figure(figsize=(8, 4)) ax = sns.violinplot( x=data, # `data` is a few thousand float values between 0 and 1 orient='h', color=get_color(ff), # `get_color` r...
https://stackoverflow.com/questions/79067886/inner-kws-having-no-effect-on-seaborn-violin-plot
python, matplotlib, seaborn, data-science, visualization
1,728,424,167
se_60363476
stackoverflow
DATA_SCIENCE
Impute missing values with mean of column in machine learning
Impute missing values with mean of column in machine learning I know that imputing missing values is exactly what it sounds, i'm talking about imputing it with mean of the column. I usually impute missing values before i split the data into train and test but then i saw this QnA that said CAUTION: if you want to ...
https://stackoverflow.com/questions/60363476/impute-missing-values-with-mean-of-column-in-machine-learning
python, machine-learning, data-science
1,582,469,880
se_62710093
stackoverflow
DATA_SCIENCE
How do I install sklearn module properly?
How do I install sklearn module properly? I'm trying to install sklearn module using pip command but after the installation is completed , all I can see is this folder C:\Users\Aditi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\sklearn-0.0-py...
https://stackoverflow.com/questions/62710093/how-do-i-install-sklearn-module-properly
python, scikit-learn, data-science, sklearn-pandas
1,593,759,652
se_79044783
stackoverflow
DATA_SCIENCE
Create Kedro PartitionedDataset of PartitionedDatasets
Create Kedro PartitionedDataset of PartitionedDatasets I'm working in a kedro project where I want to automatically label thousands of audio files, apply transformations to them and then store them in a folder of folders, each subfolder corresponding to one label. I want that folder of folders to be a catalog entry o...
https://stackoverflow.com/questions/79044783/create-kedro-partitioneddataset-of-partitioneddatasets
python, machine-learning, dataset, data-science, kedro
1,727,817,760
se_74241047
stackoverflow
DATA_SCIENCE
How to install pyodide package on vs code
How to install pyodide package on vs code I want to use the pyodide package on a data analysis project on vs code but i can't install this packcage , I need help please I tried to run pip install pyodide but i have this problem : Collecting pyodide Using cached pyodide-0.0.2.tar.gz (19 kB) Preparing metadata (setup.p...
https://stackoverflow.com/questions/74241047/how-to-install-pyodide-package-on-vs-code
python, visual-studio-code, data-science, data-analysis, pyodide
1,666,992,194
se_79003349
stackoverflow
DATA_SCIENCE
Selecting multiple columns (`MultiIndex` based) within a `DataFrameGroupBy`
Selecting multiple columns (`MultiIndex` based) within a `DataFrameGroupBy` I have a complex dataframe with multiple columns. All of them being MultiIndex based. At some point I wanted to be quite specific when it comes to estimating some metrics so I started experimenting with the .groupby method. I can manage to do ...
https://stackoverflow.com/questions/79003349/selecting-multiple-columns-multiindex-based-within-a-dataframegroupby
python, pandas, group-by, data-science
1,726,759,857
se_44932469
stackoverflow
DATA_SCIENCE
Optimizer Tuning in sklearn Gaussian Process Regressor
Optimizer Tuning in sklearn Gaussian Process Regressor I'm attempting to use a GaussianProcessRegressor as part of scikit-learn 0.18.1 I'm training on 200 data points and using 13 input features for my kernel – a constant multiplied by a radial basis function with twelve elements. The model runs without complaints, b...
https://stackoverflow.com/questions/44932469/optimizer-tuning-in-sklearn-gaussian-process-regressor
python, machine-learning, scikit-learn, data-science
1,499,275,386
se_71354682
stackoverflow
DATA_SCIENCE
Conditioning previous values within groups in R
Conditioning previous values within groups in R I'm trying to write a code that will allow me to create a TRUE or FALSE variable within the groups name depending on the value of the earliest record of the column poped of the following data.frame: library(tidyverse) name<-c("AAA","AAA","AAA","AAA","AAA","AAA","AA...
https://stackoverflow.com/questions/71354682/conditioning-previous-values-within-groups-in-r
r, data-science, data-wrangling
1,646,412,908
se_72101295
stackoverflow
DATA_SCIENCE
Python : GridSearchCV taking too long to finish running
Python : GridSearchCV taking too long to finish running I'm attempting to do a grid search to optimize my model but it's taking far too long to execute. My total dataset is only about 15,000 observations with about 30-40 variables. I was successfully able to run a random forest through the gridsearch which took about ...
https://stackoverflow.com/questions/72101295/python-gridsearchcv-taking-too-long-to-finish-running
python, machine-learning, scikit-learn, data-science, cross-validation
1,651,589,480
se_79003095
stackoverflow
DATA_SCIENCE
Input file specified two times
Input file specified two times I am using shell in Jupyter with Python programming Language. When I use to prepare a dataset, I fail to complete it on sorting by column and case sensitive. The line is like this: !head -n 5 $filename | sort -f -t' ' -k2 I have tried so many things to solve it, but my bad. I can not ge...
https://stackoverflow.com/questions/79003095/input-file-specified-two-times
python, shell, jupyter-notebook, data-science, data-preprocessing
1,726,756,709
se_73278939
stackoverflow
DATA_SCIENCE
How to run and edit Jupyter Notebook Code in PyCharm Community Edition
How to run and edit Jupyter Notebook Code in PyCharm Community Edition How can we run Jupiter Notebook in PyCharm Community Edition? It says" Once a notebook is opened, you can view all of its cells with both input and outputs. Editing and cell execution are not allowed.
https://stackoverflow.com/questions/73278939/how-to-run-and-edit-jupyter-notebook-code-in-pycharm-community-edition
python, jupyter-notebook, pycharm, data-science
1,659,966,464
se_74419049
stackoverflow
DATA_SCIENCE
How to split the contents of a column into multiple columns inside a polars dataframe
How to split the contents of a column into multiple columns inside a polars dataframe If I have string column namely, 'Cabin' in my dataframe, containing values as shown below: train = pl.from_repr(""" ┌───────┐ │ Cabin │ │ --- │ │ str │ ╞═══════╡ │ B/0/P │ │ F/0/S │ │ A/0/S │ │ A/0/S │ │ F/1/S │ └───────┘ """) I...
https://stackoverflow.com/questions/74419049/how-to-split-the-contents-of-a-column-into-multiple-columns-inside-a-polars-data
python, dataframe, data-science, python-polars, data-preprocessing
1,668,322,481
se_75381589
stackoverflow
DATA_SCIENCE
how to imitate Pandas&#39; index-based querying in Polars?
how to imitate Pandas&#39; index-based querying in Polars? Any idea what I can do to imitate the below pandas code using polars? Polars doesn't have indexes like pandas so I couldn't figure out what I can do . df = pd.DataFrame(data = ([21,123], [132,412], [23, 43]), columns = ['c1', 'c2']).set_index("c1") out = df.l...
https://stackoverflow.com/questions/75381589/how-to-imitate-pandas-index-based-querying-in-polars
python, data-science, python-polars, querying
1,675,833,160
se_74831491
stackoverflow
DATA_SCIENCE
Multiple polars DataFrames with same shape: update one will non-null values of the other
Multiple polars DataFrames with same shape: update one will non-null values of the other I have a 100x100 DataFrame (representing a Gaussian KDE) that represents a small sample of data so there are many holes. I have another 100x100 df that represents a larger sample of data with no holes. I would like to combine thes...
https://stackoverflow.com/questions/74831491/multiple-polars-dataframes-with-same-shape-update-one-will-non-null-values-of-t
python, dataframe, data-science, python-polars
1,671,245,715
se_78985850
stackoverflow
DATA_SCIENCE
How can I shift a column in a dataframe x times into an array, apply a function, and create a new column?
How can I shift a column in a dataframe x times into an array, apply a function, and create a new column? I am having a hard time understanding how I can better improve this code: from datetime import datetime import math import pandas as pd import numpy as np def trending(row, label, amt, prepend = False, postpend ...
https://stackoverflow.com/questions/78985850/how-can-i-shift-a-column-in-a-dataframe-x-times-into-an-array-apply-a-function
python, pandas, dataframe, performance, data-science
1,726,337,629
se_70632395
stackoverflow
DATA_SCIENCE
Note: you may need to restart the kernel to use updated packages. jupyter
Note: you may need to restart the kernel to use updated packages. jupyter I was working with Jupiter notebook but I entered a difficulty. Could you help me? I have to use from scipy.special import j. Even though I installed scipy lib, It could not run properly. After I searched, I used%pip install scipy --upgrade. Th...
https://stackoverflow.com/questions/70632395/note-you-may-need-to-restart-the-kernel-to-use-updated-packages-jupyter
python, jupyter-notebook, data-science
1,641,645,716
se_73516000
stackoverflow
DATA_SCIENCE
Is there a way to cumulatively and distinctively expand list in polars
Is there a way to cumulatively and distinctively expand list in polars For distance, I want to accomplish conversion like below. df = pl.DataFrame({ "col": [["a"], ["a", "b"], ["c"]] }) ┌────────────┐ │ col │ │ --- │ │ list[str] │ ╞════════════╡ │ ["a"] │ │ ["a", "b"] │ │ ["c"] │ └─────...
https://stackoverflow.com/questions/73516000/is-there-a-way-to-cumulatively-and-distinctively-expand-list-in-polars
python, dataframe, data-science, python-polars
1,661,660,874
se_78931722
stackoverflow
DATA_SCIENCE
Count and groupby a specfic value
Count and groupby a specfic value I have a dataframe where i want to count a specific value that occurs in a row. This code below gives the right answer and now i want to add a new coluumn to my dataframe occur = df.groupby(['Code_5elaag','Essentieel_Optioneel']).size() occur **Code_5elaag Essentieel_Optioneel** 110...
https://stackoverflow.com/questions/78931722/count-and-groupby-a-specfic-value
python, pandas, dataframe, group-by, data-science
1,725,016,758
se_78919810
stackoverflow
DATA_SCIENCE
Confusion Matrix in SQL
Confusion Matrix in SQL I have some rules which gets fired if a criteria for a process gets fulfilled. I am calculating the performance of those rules in a confusion matrix form. If the rule was fired, it means the process was predicted positive. So if the process was actually positive that'll be a True Positive scena...
https://stackoverflow.com/questions/78919810/confusion-matrix-in-sql
sql, postgresql, data-science, confusion-matrix
1,724,774,486
se_78914899
stackoverflow
DATA_SCIENCE
the data augmentation doesn&#39;t work properly
the data augmentation doesn&#39;t work properly according to me, the given code should create 5700 images, which is 10 times the number of original images, instead, when I check the shape of it, it only gives 1140, which is twice the number of images. What am I missing in this code? # Custom augmentation functions def...
https://stackoverflow.com/questions/78914899/the-data-augmentation-doesnt-work-properly
python, deep-learning, data-science, data-augmentation, image-augmentation
1,724,681,658
se_78872379
stackoverflow
DATA_SCIENCE
How to deal with multiple dictionary entries that have identical keys but different values (json returned from API)
How to deal with multiple dictionary entries that have identical keys but different values (json returned from API) So the problem is the following I made a station on the Banco do Brasil website using the hidden Api that returned me values from 414 cities However It happened crazy that for each who made the applicati...
https://stackoverflow.com/questions/78872379/how-to-deal-with-multiple-dictionary-entries-that-have-identical-keys-but-differ
python, json, data-science
1,723,658,641
se_78879312
stackoverflow
DATA_SCIENCE
Nifty50 data science project in python Error occuring KeyError: &#39;Date&#39;
Nifty50 data science project in python Error occuring KeyError: &#39;Date&#39; I am working on Nifty50 dataset as my Data science project but this error occurs when I'm trying to implement datetime. Please help me? This is my code to change Date which is an object into datetime: nfty50_data['Date'] = pd.to_datetime(ni...
https://stackoverflow.com/questions/78879312/nifty50-data-science-project-in-python-error-occuring-keyerror-date
python, database, deep-learning, data-science, project
1,723,814,133
se_78882452
stackoverflow
DATA_SCIENCE
Assertion Error: 4 columns passed, passed data had 3 columns. Python/ipynb
Assertion Error: 4 columns passed, passed data had 3 columns. Python/ipynb I am trying to convert a pro-football-reference stats table into a csv file that shows defensive stats vs rushing. In my program I was able to get 10 columns of data for my runningback stats, however when I implement the same code to defense st...
https://stackoverflow.com/questions/78882452/assertion-error-4-columns-passed-passed-data-had-3-columns-python-ipynb
python, error-handling, html-table, data-science
1,723,904,515
se_76844229
stackoverflow
DATA_SCIENCE
I&#39;m getting an import error with ydata-profiling-4.4.0: `BaseSettings` has been moved to the `pydantic-settings` package
I&#39;m getting an import error with ydata-profiling-4.4.0: `BaseSettings` has been moved to the `pydantic-settings` package I know that Pydantic V2 introduced new things which make it incompatible with V1, so I switched from pandas_profiling to ydata_profiling. Because of that, I had to switch versions of the depende...
https://stackoverflow.com/questions/76844229/im-getting-an-import-error-with-ydata-profiling-4-4-0-basesettings-has-been
python, pandas, machine-learning, data-science
1,691,289,156
se_70757202
stackoverflow
DATA_SCIENCE
Shape Mismatch XGBoost Regressor
Shape Mismatch XGBoost Regressor I have trained an XGBoost Regressor model on data that has a different shape to the test data I intend to predict on. Is there a way to go around this or a model that can tolerate feature mismatches? The input training data and test data got mismatched during One Hot Encoding of catego...
https://stackoverflow.com/questions/70757202/shape-mismatch-xgboost-regressor
python, data-science, xgboost
1,642,515,997
se_78897674
stackoverflow
DATA_SCIENCE
Adapting this formula to Python Polars, stuck on Euluers Number and Exponent
Adapting this formula to Python Polars, stuck on Euluers Number and Exponent I have the following formula Citation: https://www.chess-journal.com/evaluatingSharpness1.html In terms of my data frame: w = "win" d = "draw" l = "loss" and e is our buddy Euler's number. What would be a tidy way of representing that final...
https://stackoverflow.com/questions/78897674/adapting-this-formula-to-python-polars-stuck-on-euluers-number-and-exponent
python, data-science, python-polars
1,724,252,446
se_78893764
stackoverflow
DATA_SCIENCE
Wierd chart layout with pandas/matplotlib line chart
Wierd chart layout with pandas/matplotlib line chart I am new to Data Science and Python/NumPy/Pandas world in general. I have a dataset which is an order/order line item/product dataset. I am trying to plot a basic line chart with pandas: import pandas as pd import numpy as np import matplotlib.pyplot as plt pd.se...
https://stackoverflow.com/questions/78893764/wierd-chart-layout-with-pandas-matplotlib-line-chart
python, pandas, matplotlib, data-science
1,724,175,453
se_64629702
stackoverflow
DATA_SCIENCE
Pytorch transform.ToTensor() changes image
Pytorch transform.ToTensor() changes image I want to convert images to tensor using torchvision.transforms.ToTensor(). After processing, I printed the image but the image was not right. Here is my code: trans = transforms.Compose([ transforms.ToTensor()]) demo = Image.open(img) demo_img = trans(demo) demo_array ...
https://stackoverflow.com/questions/64629702/pytorch-transform-totensor-changes-image
python, pytorch, python-imaging-library, data-science
1,604,216,759
se_78750613
stackoverflow
DATA_SCIENCE
TaskRun failed to finish due to an error for Coretex BioInformatics workflow
TaskRun failed to finish due to an error for Coretex BioInformatics workflow After starting bioinformatics workflow in Coretex, I am getting the following message even though data seems to be in order: "Failed to determine which column contains sampleIDs/names..." and then the list of available names, but I am using o...
https://stackoverflow.com/questions/78750613/taskrun-failed-to-finish-due-to-an-error-for-coretex-bioinformatics-workflow
r, data-science, bioinformatics, mlops
1,721,056,229
se_78858321
stackoverflow
DATA_SCIENCE
Getting ValueError: All arrays must be of the same length
Getting ValueError: All arrays must be of the same length I have been trying to convert a dictionary into a dataframe but everytime i keep getting ValueError: All arrays must be of the same length. i Have checkde the length of each array and confirmed them to be the same but i am still getting the same error def metri...
https://stackoverflow.com/questions/78858321/getting-valueerror-all-arrays-must-be-of-the-same-length
python, python-3.x, machine-learning, regression, data-science
1,723,379,260
se_78882225
stackoverflow
DATA_SCIENCE
Plotting a 4D graph where X,Y,Z are independent and the fourth dimension is a heatmap that interpolates between points
Plotting a 4D graph where X,Y,Z are independent and the fourth dimension is a heatmap that interpolates between points I have been trying to plot a 4d heat map, where my X,Y,Z components are coordinates and thus independent of one another. I then want to map a fourth component onto each coordinate, and represent its r...
https://stackoverflow.com/questions/78882225/plotting-a-4d-graph-where-x-y-z-are-independent-and-the-fourth-dimension-is-a-he
python, matplotlib, data-science, interpolation, heatmap
1,723,897,937
se_78869326
stackoverflow
DATA_SCIENCE
Why is it that calling standard sum on a numpy array produces a different result than numpy.sum?
Why is it that calling standard sum on a numpy array produces a different result than numpy.sum? Observe in the following code, creating an numpy array and calling the builtin python sum function produces different results than numpy.sum How is numpy's sum function implemented? And why is the result different? test = ...
https://stackoverflow.com/questions/78869326/why-is-it-that-calling-standard-sum-on-a-numpy-array-produces-a-different-result
python, numpy, data-science
1,723,614,928
se_78868809
stackoverflow
DATA_SCIENCE
R: monte carlo binomial gambling simulation
R: monte carlo binomial gambling simulation I am trying to figure out how to simulate a biased gambling problem using monte carlo simulations. The problem is: Simulate two players tossing a coin; A and B. Player A has a 0.55 chance to win. Player B has a 0.45 chance. Each player starts with $3. If one player wins they...
https://stackoverflow.com/questions/78868809/r-monte-carlo-binomial-gambling-simulation
r, statistics, data-science, montecarlo
1,723,599,174
se_74824266
stackoverflow
DATA_SCIENCE
summary function from torchsummary printing its output twice
summary function from torchsummary printing its output twice So I have been trying to implement a CNN-based solution for classification as proposed in this paper (https://arxiv.org/pdf/1810.08923.pdf). Here is my code for reproduction. It's a fairly simple implementation but I don't understand why would the torchsumma...
https://stackoverflow.com/questions/74824266/summary-function-from-torchsummary-printing-its-output-twice
python, pytorch, data-science
1,671,192,541
se_78854478
stackoverflow
DATA_SCIENCE
How can I replace null values in polars with a prefix with ascending numbers?
How can I replace null values in polars with a prefix with ascending numbers? I am trying to replace null values in my dataframe column by a prefix and ascending numbers(to make each unique).ie df = pl.from_repr(""" ┌──────────────┬──────────────┐ │ name ┆ asset_number │ │ --- ┆ --- │ │ str ...
https://stackoverflow.com/questions/78854478/how-can-i-replace-null-values-in-polars-with-a-prefix-with-ascending-numbers
python, dataframe, data-science, data-cleaning, python-polars
1,723,234,304
se_59153513
stackoverflow
DATA_SCIENCE
Jupyter notebook error ModuleNotFoundError: No module named &#39;datascience&#39;
Jupyter notebook error ModuleNotFoundError: No module named &#39;datascience&#39; Good evening, I am trying to import datascience module at my Jupyter notebook, but the notebook keeps showing error called --------------------------------------------------------------------------- ModuleNotFoundError ...
https://stackoverflow.com/questions/59153513/jupyter-notebook-error-modulenotfounderror-no-module-named-datascience
python, module, jupyter-notebook, data-science
1,575,363,992
se_63851489
stackoverflow
DATA_SCIENCE
How to access a part of an element from a list?
How to access a part of an element from a list? import cv2 import os import glob import pandas as pd from pylibdmtx import pylibdmtx import xlsxwriter # co de for scanning img_dir = "C:\\images" # Enter Directory of all images data_path = os.path.join(img_dir,'*g') files = glob.glob(data_path) data = [] result=[] ...
https://stackoverflow.com/questions/63851489/how-to-access-a-part-of-an-element-from-a-list
python, excel, list, data-science
1,599,844,186
se_73737340
stackoverflow
DATA_SCIENCE
I am performing web scraping on influenster.com but I am not able to scrape the star rating
I am performing web scraping on influenster.com but I am not able to scrape the star rating The link I am using is https://www.influenster.com/reviews/loreal-paris-elvive-extraordinary-oil-deep-nourishing-shampoo-and-conditioner-set-126-fl-oz. Please guide me on how I can get the stars as there is no aria label or num...
https://stackoverflow.com/questions/73737340/i-am-performing-web-scraping-on-influenster-com-but-i-am-not-able-to-scrape-the
python, selenium-webdriver, web-scraping, data-science
1,663,275,335
se_61752284
stackoverflow
DATA_SCIENCE
Understanding sklearn&#39;s KNNImputer
Understanding sklearn&#39;s KNNImputer I was going through its documentation and it says Each sample’s missing values are imputed using the mean value from n_neighbors nearest neighbors found in the training set. Two samples are close if the features that neither are missing are close. Now, playing around with a toy...
https://stackoverflow.com/questions/61752284/understanding-sklearns-knnimputer
python, machine-learning, scikit-learn, data-science, imputation
1,589,288,089
se_71955753
stackoverflow
DATA_SCIENCE
Sklearn Pipelines + GridsearchCV + XGBoost + Learning Curve
Sklearn Pipelines + GridsearchCV + XGBoost + Learning Curve I am new to sklearn & XGBoost. I would like to use GridSearchCV to tune a XGBoost classifier. One of the checks that I would like to do is the graphical analysis of the loss from train and test. So far I have created the following code: # Create a new instanc...
https://stackoverflow.com/questions/71955753/sklearn-pipelines-gridsearchcv-xgboost-learning-curve
python, scikit-learn, data-science, xgboost, imbalanced-data
1,650,549,470
se_67121246
stackoverflow
DATA_SCIENCE
Pandas: Get Business Month-End Dates Correctly Even for Dates Already on Month-End
Pandas: Get Business Month-End Dates Correctly Even for Dates Already on Month-End let's say i have and dataframe as below date,ent_id,val 2021-03-23,101,61 2021-03-12,103,64 2021-03-15,101,32 2021-04-01,103,39 2021-04-02,101,71 2021-04-02,103,79 2021-04-30,101,51 2021-04-30,103,53 2021-05-31,101,28 2021-05-31,103,26 ...
https://stackoverflow.com/questions/67121246/pandas-get-business-month-end-dates-correctly-even-for-dates-already-on-month-e
python, pandas, numpy, data-science
1,618,559,677
se_59152894
stackoverflow
DATA_SCIENCE
Py4JJavaError: An error occurred while calling z:org.apache.spark.api.python.PythonRDD.runJob. ModuleNotFoundError: No module named &#39;numpy&#39;
Py4JJavaError: An error occurred while calling z:org.apache.spark.api.python.PythonRDD.runJob. ModuleNotFoundError: No module named &#39;numpy&#39; Can somebody help with this issue? It shows no module named 'numpy', but I have already installed and imported it in the notebook. Py4JJavaError: An error occurred while ...
https://stackoverflow.com/questions/59152894/py4jjavaerror-an-error-occurred-while-calling-zorg-apache-spark-api-python-pyt
python, machine-learning, pyspark, jupyter-notebook, data-science
1,575,361,731
se_67119961
stackoverflow
DATA_SCIENCE
Load External Stylesheets with JupyterDash in Google Colab
Load External Stylesheets with JupyterDash in Google Colab I am trying build a basic dash application using google colab and JupyterDash, but for some reason I can't seem to reference external stylesheets using JupyterDash. I have tried following a similar syntax to dash when calling the external stylesheet, but it re...
https://stackoverflow.com/questions/67119961/load-external-stylesheets-with-jupyterdash-in-google-colab
python, data-science, data-visualization, google-colaboratory, plotly-dash
1,618,553,556
se_73969723
stackoverflow
DATA_SCIENCE
Read data from OPC HDA server with Python?
Read data from OPC HDA server with Python? I am aware that OPC HDA is an outdated protocol and shouldn't be used if there is any more modern protocol available. Sadly, in this industrial context, it seems there is no real alternative. I tried to find Python libraries with OPC HDA support without success. So I'm asking...
https://stackoverflow.com/questions/73969723/read-data-from-opc-hda-server-with-python
python, data-science, implementation, opc
1,665,039,526
se_78774766
stackoverflow
DATA_SCIENCE
How to use SDMX to get M2 money data from ECB?
How to use SDMX to get M2 money data from ECB? I need to fetch data from following 2 links for my analysis : https://data.ecb.europa.eu/data/datasets/BSI/BSI.M.U2.Y.V.M20.X.1.U2.2300.Z01.E https://data.ecb.europa.eu/data/datasets/RTD/RTD.M.JP.Y.M_M2.J I have never worked with SDMX library before and I am having trou...
https://stackoverflow.com/questions/78774766/how-to-use-sdmx-to-get-m2-money-data-from-ecb
dataframe, data-science, sdmx
1,721,552,555
se_78774659
stackoverflow
DATA_SCIENCE
In jupyter notebok title of graph not showing.Why no title is there in the graph?
In jupyter notebok title of graph not showing.Why no title is there in the graph? this is set of codes i ran here is the graph,see everything is fine this is the 2nd set of codes i ran, in the imaage u can see there is no title i was trying to plot a count graph,i wrote the code for title that is plt.title('top 15 cit...
https://stackoverflow.com/questions/78774659/in-jupyter-notebok-title-of-graph-not-showing-why-no-title-is-there-in-the-graph
python, jupyter-notebook, seaborn, data-science, countplot
1,721,548,998
se_78757629
stackoverflow
DATA_SCIENCE
Trying to scavanage data using Selenium but save button isn&#39;t working
Trying to scavanage data using Selenium but save button isn&#39;t working I am trying to save the booth addresses using Selenium for machine learning algorithms, but the save button is not getting clicked: I tried all types of selectors, different methods, JavaScript, and everything else, but it still doesn't work. H...
https://stackoverflow.com/questions/78757629/trying-to-scavanage-data-using-selenium-but-save-button-isnt-working
selenium-webdriver, data-science, selenium-ide, data-science-experience
1,721,190,348
se_68862621
stackoverflow
DATA_SCIENCE
Getting Error 524 while running jupyter lab in google cloud platform
Getting Error 524 while running jupyter lab in google cloud platform I am not able to access jupyter lab created on google cloud I created one notebook using Google AI platform. I was able to start it and work but suddenly it stopped and I am not able to start it now. I tried building and restarting the jupyterlab, b...
https://stackoverflow.com/questions/68862621/getting-error-524-while-running-jupyter-lab-in-google-cloud-platform
machine-learning, google-cloud-platform, jupyter-notebook, data-science, jupyter-lab
1,629,464,277
se_78763624
stackoverflow
DATA_SCIENCE
Stuck in handling incorrect input data on web app for model training
Stuck in handling incorrect input data on web app for model training I am trying to add an exception feature in an ML project I am working on, I create a web app which accepts student performance data as a CSV file and then performs different machine learning algorithms and selects and saves the model with the best R2...
https://stackoverflow.com/questions/78763624/stuck-in-handling-incorrect-input-data-on-web-app-for-model-training
python, machine-learning, flask, exception, data-science
1,721,296,096
se_52590331
stackoverflow
DATA_SCIENCE
Import data tables in Python
Import data tables in Python I am new to Python, coming from MATLAB. In MATLAB, I used to create a variable table (copy from excel to MATLAB) in MATLAB and save it as a .mat file and whenever I needed the data from the MATLAB, I used to import it using: A = importdata('Filename.mat'); [Filename is 38x5 table, see ...
https://stackoverflow.com/questions/52590331/import-data-tables-in-python
python, matlab, data-science
1,538,394,106
se_60462577
stackoverflow
DATA_SCIENCE
What uml diagrams can be used for a data science project
What uml diagrams can be used for a data science project I am working on a data science project for my 3-2 mini project. My project analyzes the performance of a country in the Olympics based on some attributes. But I am confused about the UML diagrams I should be using in my project.
https://stackoverflow.com/questions/60462577/what-uml-diagrams-can-be-used-for-a-data-science-project
uml, data-science
1,582,957,642
se_71209468
stackoverflow
DATA_SCIENCE
solve Ax=b for outrigger A matrix python
solve Ax=b for outrigger A matrix python I implement Crank-Nicolson 2D finite-difference method. I get a matrix A which is banded with 1 band above and below the main diagonal, but also contains 2 additional bands , further apart from the main diagonal, so it is NOT penta-diagonal. A picture showing the structure is b...
https://stackoverflow.com/questions/71209468/solve-ax-b-for-outrigger-a-matrix-python
python, arrays, data-structures, data-science, linear-algebra
1,645,459,502
se_73067795
stackoverflow
DATA_SCIENCE
Power BI: a visualization to dynamically show a network interaction
Power BI: a visualization to dynamically show a network interaction Network visual with dynamic selection Is anyone aware of a network association visual with dynamic selection formatting? Essentially, something like network navigator (or zoom charts drill down graph pro) but with the ability to select nodes and have ...
https://stackoverflow.com/questions/73067795/power-bi-a-visualization-to-dynamically-show-a-network-interaction
graph, powerbi, data-science, data-visualization
1,658,412,852
se_78719884
stackoverflow
DATA_SCIENCE
Issue with H3: Uber’s Hexagonal Hierarchical Spatial Index
Issue with H3: Uber’s Hexagonal Hierarchical Spatial Index Currently, I am using the Uber H3 index library for my geospatial analysis. The version of the library is h3-3.7.7. If the version changes tomorrow, the corresponding H3 index for the given latitude and longitude might also change, affecting my entire dataset....
https://stackoverflow.com/questions/78719884/issue-with-h3-uber-s-hexagonal-hierarchical-spatial-index
database, data-science, geospatial, uber-api, h3
1,720,428,286
se_78731369
stackoverflow
DATA_SCIENCE
How to optimise hyperparameterss for RandomForestClassifier in Python for large datasets?
How to optimise hyperparameterss for RandomForestClassifier in Python for large datasets? I'm just working on this problem where I thought RandomForestClassifier from scikit-learn would be better solution for a large dataset. Only after trying with it for this, I found it to be not accurate. The model is either overfi...
https://stackoverflow.com/questions/78731369/how-to-optimise-hyperparameterss-for-randomforestclassifier-in-python-for-large
scikit-learn, dataset, data-science, random-forest
1,720,624,011
se_41256626
stackoverflow
DATA_SCIENCE
Pandas : TypeError: float() argument must be a string or a number
Pandas : TypeError: float() argument must be a string or a number I have a dataframe that contains user_id date browser conversion test sex age country 1 2015-12-03 IE 1 0 M 32.0 US Here is my code: from sklearn import tree data['date'] = pd.to_datetime(data.date) colum...
https://stackoverflow.com/questions/41256626/pandas-typeerror-float-argument-must-be-a-string-or-a-number
python, pandas, datetime, type-conversion, data-science
1,482,302,477