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_63814704
stackoverflow
DATA_SCIENCE
Keep getting this error using numpy.piecewise to get segmented linear regression
Keep getting this error using numpy.piecewise to get segmented linear regression I have a very large datafile, where x= time and y= distance. I would like to figure out what the speed is in different segments. Ideally, I would like Python to calculate the segments and the corresponding linear regression functions. I g...
https://stackoverflow.com/questions/63814704/keep-getting-this-error-using-numpy-piecewise-to-get-segmented-linear-regression
python, numpy, scipy, data-analysis, piecewise
1,599,664,736
se_40427943
stackoverflow
DATA_SCIENCE
How do I change a single index value in pandas dataframe?
How do I change a single index value in pandas dataframe? energy.loc['Republic of Korea'] I want to change the value of index from 'Republic of Korea' to 'South Korea'. But the dataframe is too large and it is not possible to change every index value. How do I change only this single value?
https://stackoverflow.com/questions/40427943/how-do-i-change-a-single-index-value-in-pandas-dataframe
python, pandas, data-analysis
1,478,278,204
se_58306943
stackoverflow
DATA_SCIENCE
What do the data analytics data set train and test variables represent?
What do the data analytics data set train and test variables represent? Within the below code there are a few variables I'm confused about: import numpy as np import pandas as pd import matplotlib.pyplot as plt from sklearn import svm,metrics,datasets train_data=np.zeros((280,10304)) train_target=np.zeros((280)) t...
https://stackoverflow.com/questions/58306943/what-do-the-data-analytics-data-set-train-and-test-variables-represent
scikit-learn, svm, data-analysis
1,570,632,887
se_79975201
stackoverflow
DATA_SCIENCE
Which approaches should be used for monthly demand forecasting with few observations per product?
Which approaches should be used for monthly demand forecasting with few observations per product? community. How are you? I am a junior data analyst and I am working on a demand/revenue forecasting project for a factory. The goal of the project is to forecast, on a monthly basis, the number of units sold/invoiced per ...
https://stackoverflow.com/questions/79975201/which-approaches-should-be-used-for-monthly-demand-forecasting-with-few-observat
python, pandas, machine-learning, data-analysis
1,783,364,873
se_31277247
stackoverflow
DATA_SCIENCE
R Decile percentage plotting
R Decile percentage plotting I have a data frame from a home income poll that looks like this: ID Income Expense 001 2389.9 1400.5 003 5499.3 2309.2 .. .. .. *this is an example, the actual one has over 5k observations I would like to be able to: Plot the decile distribu...
https://stackoverflow.com/questions/31277247/r-decile-percentage-plotting
r, ggplot2, statistics, bigdata, data-analysis
1,436,295,928
se_79953132
stackoverflow
DATA_SCIENCE
Utilizing SQL for Data analysis
Utilizing SQL for Data analysis Looking to further my learning in SQL - I want to have a structured learning daily regimen in the field of data analysis. I am looking to gain knowledge and understanding from a more experienced Data Analyst on how to better approach work and understanding in this field of work.
https://stackoverflow.com/questions/79953132/utilizing-sql-for-data-analysis
sql, data-analysis
1,780,938,932
se_79924471
stackoverflow
DATA_SCIENCE
RTOS connection with analytics
RTOS connection with analytics My data in firebase is getting updated by nodered and is being shown in firebase realtime database.Its has temperature,pressure,humidity.I want to analyze in firebase itself using Google analytics.Can I do in firebase app
https://stackoverflow.com/questions/79924471/rtos-connection-with-analytics
google-analytics, data-analysis
1,776,021,803
se_79963548
stackoverflow
DATA_SCIENCE
Best practices for SQL Beginner
Best practices for SQL Beginner What are the best practices that saved you time when you started Data science / Data analysis for the first time? I want to learn for the first time and don't know how to start and what are the first steps? I have a small background in Excel only.
https://stackoverflow.com/questions/79963548/best-practices-for-sql-beginner
sql, data-analysis
1,781,963,749
se_79939330
stackoverflow
DATA_SCIENCE
Issue with Conversational Analytics integration in Looker Studio (Data Studio)
Issue with Conversational Analytics integration in Looker Studio (Data Studio) I am experiencing an issue with the Conversational Analytics tool. Unfortunately, no available agents are appearing in Looker Studio/Data Studio, even though I have a properly configured agent in the Google Cloud Console. The agent has been...
https://stackoverflow.com/questions/79939330/issue-with-conversational-analytics-integration-in-looker-studio-data-studio
artificial-intelligence, data-analysis
1,778,499,848
se_79925710
stackoverflow
DATA_SCIENCE
Adjusting Titles to reflect a change in numerical data
Adjusting Titles to reflect a change in numerical data Ok so there's no easy way to title this to get the information I really want to get at. But I feel like the longer winded explanation is fairly simple. So I'm in a programming for data science class (so extremely new to programming, very base level) and working w...
https://stackoverflow.com/questions/79925710/adjusting-titles-to-reflect-a-change-in-numerical-data
python, dataframe, data-science, data-analysis
1,776,214,099
se_75533763
stackoverflow
DATA_SCIENCE
How can I check is null in dax?
How can I check is null in dax? Blank and Null are equal in DAX? How can I just check ISNULL IN DAX? Not ISNULL OR ISBLANK CONDITION
https://stackoverflow.com/questions/75533763/how-can-i-check-is-null-in-dax
powerbi, dax, data-analysis, powerbi-desktop, measure
1,677,074,301
se_79914391
stackoverflow
DATA_SCIENCE
r2 from wblplot (built-in function)
r2 from wblplot (built-in function) Using the built-in function wblplot (https://uk.mathworks.com/help/stats/wblplot.html#d126e1264612) to analyse some data. How do I quantify the goodness of fit (e.g. r^2) of the plot it produces? The data the function is using for (X,Y) seemingly isn't outputted from the function, s...
https://stackoverflow.com/questions/79914391/r2-from-wblplot-built-in-function
matlab, data-analysis
1,774,454,078
se_79912833
stackoverflow
DATA_SCIENCE
How to remember all SQL codes effectively?
How to remember all SQL codes effectively? I'm currently taking the Google Data Analytics certificate, and the SQL code is a bit overwhelming. How can I remember them so whenever there is a need for help, I can do the job. Any advice or tips that can help me?Thank you very much!
https://stackoverflow.com/questions/79912833/how-to-remember-all-sql-codes-effectively
google-bigquery, data-analysis
1,774,274,007
se_17141558
stackoverflow
DATA_SCIENCE
How to sort a pandas dataFrame by two or more columns?
How to sort a pandas dataFrame by two or more columns? Suppose I have a dataframe with columns a, b and c. I want to sort the dataframe by column b in ascending order, and by column c in descending order. How do I do this?
https://stackoverflow.com/questions/17141558/how-to-sort-a-pandas-dataframe-by-two-or-more-columns
python, pandas, dataframe, sorting, data-analysis
1,371,450,527
se_79893600
stackoverflow
DATA_SCIENCE
How does one make a player diagram/visualization like the one below within Python?
How does one make a player diagram/visualization like the one below within Python? I'm quite the baseball fan, and if you are as well, you've probably seen the X profile of the user Pitcher Profiler creates these awesome post-game reports for players, and one of the visualizations he includes (attached) is something I...
https://stackoverflow.com/questions/79893600/how-does-one-make-a-player-diagram-visualization-like-the-one-below-within-pytho
python, matplotlib, charts, data-analysis
1,771,688,758
se_71255675
stackoverflow
DATA_SCIENCE
Plotting contours in python in Matplotlib
Plotting contours in python in Matplotlib I am a beginner for data analysis or analytics, My question here is, I have grid points (x and y) of a grid or a mesh and I have a corresponding temperature value for every grid point, I have to generate a 2D contour plot of temperature using that data which is present in an ...
https://stackoverflow.com/questions/71255675/plotting-contours-in-python-in-matplotlib
python, data-analysis, contour
1,645,722,382
se_79071731
stackoverflow
DATA_SCIENCE
How to identify nth row that satisfies condition
How to identify nth row that satisfies condition I have a dataframe with months and sales. If somebody does 250 sales for 3 consecutive months, they get a bonus. Once the bonus month is identified, the counter resets and starts to count the next 3 consecutive months with 250 if there is less than 250 sales, then the ...
https://stackoverflow.com/questions/79071731/how-to-identify-nth-row-that-satisfies-condition
python, pandas, dataframe, data-analysis
1,728,500,892
se_79847589
stackoverflow
DATA_SCIENCE
When should data go to Archive vs Reject in Bronze layer (Medallion Architecture)?
When should data go to Archive vs Reject in Bronze layer (Medallion Architecture)? Can anybody help with understanding the Archive and Reject folders in bronze layer at Medallion Architecture. Let say i have 4 folders in Bronze namely Raw, Stage, Archive and Reject. At what extent a data can be pushed to Reject folder...
https://stackoverflow.com/questions/79847589/when-should-data-go-to-archive-vs-reject-in-bronze-layer-medallion-architecture
databricks, azure-databricks, data-analysis, data-ingestion, data-engineering
1,765,795,456
se_22583391
stackoverflow
DATA_SCIENCE
Peak signal detection in realtime timeseries data
Peak signal detection in realtime timeseries data I am analyzing the following data: Raw data (separated with spaces): 1 1 1.1 1 0.9 1 1 1.1 1 0.9 1 1.1 1 1 0.9 1 1 1.1 1 1 1 1 1.1 0.9 1 1.1 1 1 0.9 1 1.1 1 1 1.1 1 0.8 0.9 1 1.2 0.9 1 1 1.1 1.2 1 1.5 1 3 2 5 3 2 1 1 1 0.9 1 1 3 2.6 4 3 3.2 2 1 1 0.8 4 4 2 2.5 1 1 1 ...
https://stackoverflow.com/questions/22583391/peak-signal-detection-in-realtime-timeseries-data
algorithm, language-agnostic, time-series, signal-processing, data-analysis
1,395,521,316
se_76342295
stackoverflow
DATA_SCIENCE
How would I populate prior counts for an entity based off of current counts of data that can be filtered by user selected dates in PowerBi?
How would I populate prior counts for an entity based off of current counts of data that can be filtered by user selected dates in PowerBi? I have been working in power BI for a couple weeks now but have been struggling with getting a DAX query to work the way I need it to for a matrix heatmap I am building. I am work...
https://stackoverflow.com/questions/76342295/how-would-i-populate-prior-counts-for-an-entity-based-off-of-current-counts-of-d
sql, powerbi, dax, data-analysis, reporting
1,685,115,449
se_79839128
stackoverflow
DATA_SCIENCE
How to handle heteroskedasticity when detecting anomalies using Z-scores on growth rates?
How to handle heteroskedasticity when detecting anomalies using Z-scores on growth rates? I’m trying to detect anomalies in a dataset using Z-scores based on the logged index change of a value between two time periods: VAL_t0 and VAL_t1. The issue: The variance of Z-scores decreases as VAL_t0 increases (see graph). Fo...
https://stackoverflow.com/questions/79839128/how-to-handle-heteroskedasticity-when-detecting-anomalies-using-z-scores-on-grow
r, statistics, data-analysis, outliers, anomaly-detection
1,764,953,068
se_79837011
stackoverflow
DATA_SCIENCE
Analyze a directory in a performant (cross-platform) way for what file types (file extensions) it (recursively) contains?
Analyze a directory in a performant (cross-platform) way for what file types (file extensions) it (recursively) contains? Aim My aim is to analyze a (big) (sub)directory and just find out what file extensions all files have there (recursively). Additionally, these conditions apply: I am on Windows, but I could use WS...
https://stackoverflow.com/questions/79837011/analyze-a-directory-in-a-performant-cross-platform-way-for-what-file-types-fi
python, performance, shell, filesystems, data-analysis
1,764,773,057
se_79828864
stackoverflow
DATA_SCIENCE
Multiple variable/correlation analysis using Python
Multiple variable/correlation analysis using Python I have a machine with up to 58 indipendent input variables and one response variable. If I create 2D-histogram plots of all combinations of 2 input variables and the response variable, I get plots like these (the more light the color, the stronger is the response): ...
https://stackoverflow.com/questions/79828864/multiple-variable-correlation-analysis-using-python
python, data-analysis
1,764,000,946
se_79817132
stackoverflow
DATA_SCIENCE
Unable to fetch Accurate Performance Max (PMAX) YouTube Video Metrics via Google Ads Script / BigQuery Transfer
Unable to fetch Accurate Performance Max (PMAX) YouTube Video Metrics via Google Ads Script / BigQuery Transfer I’m currently working on a task to fetch and display daily Google ADS Manager (GAM) records—such as Cost, ROAS, and other metrics—within a data analysis application. I’ve successfully retrieved data for stan...
https://stackoverflow.com/questions/79817132/unable-to-fetch-accurate-performance-max-pmax-youtube-video-metrics-via-google
google-cloud-platform, google-bigquery, data-analysis, google-ad-manager, google-ads-script
1,762,896,113
se_46549006
stackoverflow
DATA_SCIENCE
Marketing Channel Flow Map
Marketing Channel Flow Map I have data on all marketing engagements (links clicked, etc), their 'marketing channel', and their 'engagement position". Engagement position are the following: first touch [first time they ever engage with us], lead create [when they form-fill and give us enough info], opportunity create ...
https://stackoverflow.com/questions/46549006/marketing-channel-flow-map
r, data-visualization, data-analysis
1,507,046,995
se_40997717
stackoverflow
DATA_SCIENCE
Dealing with tabular data in Haskell
Dealing with tabular data in Haskell This is an excerpt of a file.csv file with some tabular data John,23,Paris Alban,28,London Klaus,27,Berlin Hans,29,Stockholm Julian,25,Paris Jonathan,26,Lyon Albert,27,London The column headers for this file would be firstName, age, city This file is loaded in ghci like this ...
https://stackoverflow.com/questions/40997717/dealing-with-tabular-data-in-haskell
haskell, data-analysis
1,481,034,532
se_79797167
stackoverflow
DATA_SCIENCE
How to find the correlation between the two most commonly sold items
How to find the correlation between the two most commonly sold items How to find the correlation between the two most commonly sold items? I have data of items sold in the supermarket. I want to summarise: what are the most commonly sold items together? what is the correlation between the most commonly sold items tog...
https://stackoverflow.com/questions/79797167/how-to-find-the-correlation-between-the-two-most-commonly-sold-items
r, data-analysis
1,761,160,760
se_79787338
stackoverflow
DATA_SCIENCE
FFT-based quasi-steady detection issue
FFT-based quasi-steady detection issue I am trying to detect the beginning of a quasi-steady regime in time series data representing drag (Fx) and lift (Fy) forces after an initial transient. Initially, I used a slope-based method, but it often returned tmin even when the signal was still in the transient phase. Follo...
https://stackoverflow.com/questions/79787338/fft-based-quasi-steady-detection-issue
python, numpy, time-series, signal-processing, data-analysis
1,760,098,810
se_79786650
stackoverflow
DATA_SCIENCE
How to prefix a specific series of lines (multiple)?
How to prefix a specific series of lines (multiple)? I have a text file, which has an inconsistent timestamp format, that I would like to standardize. This is in a transcript from an interview; ultimately for textual analysis. What command could I run 3x for each set of lines, through Linux terminal? (1st) 00:0 before...
https://stackoverflow.com/questions/79786650/how-to-prefix-a-specific-series-of-lines-multiple
linux, terminal, timestamp, text-files, data-analysis
1,760,027,430
se_73081631
stackoverflow
DATA_SCIENCE
Excel Product Categorization in Python
Excel Product Categorization in Python I'm trying to break up Product names into categories, for example if the product is "Demi Baguette", the category should be "Baguette" and sub category "Demi". I have looked at NLP articles but nothing seems to be what I need as they all focus on sentences and text. I've seen oth...
https://stackoverflow.com/questions/73081631/excel-product-categorization-in-python
python, excel, machine-learning, data-science, data-analysis
1,658,498,655
se_74226602
stackoverflow
DATA_SCIENCE
Polars equivalent of pandas expression df.groupby['col1','col2']['col3'].sum().unstack()
Polars equivalent of pandas expression df.groupby['col1','col2']['col3'].sum().unstack() In Pandas I can do pandasdf = pd.DataFrame( { "A": [1, 2, 3, 4, 5], "fruits": ["banana", "banana", "apple", "apple", "banana"], "B": [5, 4, 3, 2, 1], "cars": ["beetle", "...
https://stackoverflow.com/questions/74226602/polars-equivalent-of-pandas-expression-df-groupbycol1-col2col3-sum-u
python, dataframe, data-analysis, python-polars
1,666,894,630
se_79760652
stackoverflow
DATA_SCIENCE
Creating a Line graph & Matrix showing % Difference from Previous Year, allowing for a filter on "Country"
Creating a Line graph & Matrix showing % Difference from Previous Year, allowing for a filter on "Country" I have raw data with columns "Year", "Period", "Country", "Sales Amount". Please note there are 13 periods in a year, (and not 12). The dates also differ slightly between periods each year so I don'...
https://stackoverflow.com/questions/79760652/creating-a-line-graph-matrix-showing-difference-from-previous-year-allowing
powerbi, dax, data-analysis, percentage, difference
1,757,494,472
se_79754732
stackoverflow
DATA_SCIENCE
Why my Transformer model did not work well when dealing with single cell multi-omic data
Why my Transformer model did not work well when dealing with single cell multi-omic data The complete codes and data are available at:Google Disk I'm working on a high-dimensional regression problem and have built a Transformer-based model in PyTorch. While the model trains, I'm observing a strange behavior: the valid...
https://stackoverflow.com/questions/79754732/why-my-transformer-model-did-not-work-well-when-dealing-with-single-cell-multi-o
python, pytorch, data-analysis, bioinformatics, transformer-model
1,756,909,861
se_63224079
stackoverflow
DATA_SCIENCE
How to calculate "churned" customers in Pandas? (Customers who have stopped buying regularly)
How to calculate "churned" customers in Pandas? (Customers who have stopped buying regularly) I've cleaned and formatted some data. Among others, I have these columns: Name, Order Date, and Subscription (which has booleans). How would you acheive this in pandas? Example DataFrame: Date Name ...
https://stackoverflow.com/questions/63224079/how-to-calculate-churned-customers-in-pandas-customers-who-have-stopped-buyi
python, pandas, dataframe, data-analysis
1,596,431,729
se_79708778
stackoverflow
DATA_SCIENCE
What is the meaning of Data variables: *empty* in working with .nc file?
What is the meaning of Data variables: *empty* in working with .nc file? I had the task of analyzing a .nc file. I have not worked with it before, so I did some research online and found some codes. I was exploring the dataset. I tried: I am using Debian 12, Python3 and Jupyter notebook # import needed libraries impor...
https://stackoverflow.com/questions/79708778/what-is-the-meaning-of-data-variables-empty-in-working-with-nc-file
python, machine-learning, data-analysis, python-xarray
1,753,086,619
se_79710190
stackoverflow
DATA_SCIENCE
How can I summarize sales data by category in a new column?
How can I summarize sales data by category in a new column? I would like to create a new column where I can sum units by quarter. My table like this Another column I would summ unit by product and quarter Edit: Last two col with the expected result Unit Quarter Product Unit by Quarter Un by Q&Product 4 Q1 Apple...
https://stackoverflow.com/questions/79710190/how-can-i-summarize-sales-data-by-category-in-a-new-column
powerbi, dax, data-analysis, powerbi-desktop, calculated-columns
1,753,174,637
se_79702350
stackoverflow
DATA_SCIENCE
Card (New) Visual – Show Scaled Numeric Value (K/M/B) with Conditional Arrow Indicator
Card (New) Visual – Show Scaled Numeric Value (K/M/B) with Conditional Arrow Indicator I'm visualizing totals using the Card (New) visual in Power BI, and I’d like to add an arrow: Up arrow when the value is positive Down arrow when the value is negative I can achieve this by creating a measure like this: Sales Tren...
https://stackoverflow.com/questions/79702350/card-new-visual-show-scaled-numeric-value-k-m-b-with-conditional-arrow-ind
powerbi, dax, data-analysis, powerbi-desktop
1,752,595,945
se_79637239
stackoverflow
DATA_SCIENCE
Power Query - splitting column
Power Query - splitting column A column in my power query has the names of various airlines in one string. An example is: American AirlinesBritishAirwaysFinnairAlphaSky I need to split this column into the separate airlines, but given there are no separator or special characters between the airlines, the only way I c...
https://stackoverflow.com/questions/79637239/power-query-splitting-column
excel, powerquery, data-analysis, m
1,748,128,309
se_79681767
stackoverflow
DATA_SCIENCE
Power BI DAX Calculate not working as expected in Matrix report
Power BI DAX Calculate not working as expected in Matrix report I'm trying to create a matrix report where the row headers will be the recruitment Product of Users and Column header will be their subsequent products. The measure needs to count the distinct count of users in each category. The recruitment product is a ...
https://stackoverflow.com/questions/79681767/power-bi-dax-calculate-not-working-as-expected-in-matrix-report
powerbi, dax, data-analysis, powerbi-desktop
1,751,019,323
se_79686169
stackoverflow
DATA_SCIENCE
Error when running lilikoi.featuresSelection() in lilikoi R package: "non-numeric argument to binary operator"
Error when running lilikoi.featuresSelection() in lilikoi R package: "non-numeric argument to binary operator" I'm using the lilikoi R package to follow a built-in example from the official documentation. While most of the steps work correctly, I encounter an error when I attempt to run the lilikoi.featuresS...
https://stackoverflow.com/questions/79686169/error-when-running-lilikoi-featuresselection-in-lilikoi-r-package-non-numeri
r, data-analysis, bioinformatics
1,751,377,684
se_79674250
stackoverflow
DATA_SCIENCE
How to group/summarize and sum the amount of the lates date in DAX
How to group/summarize and sum the amount of the lates date in DAX I have a sample data as below. I would like to GroupBY Group1 and Group2 variables, SUM the amount and only keep the Max(Date) using DAX. Many thanks in advance. Group1 Group2 Date Amount A1 B1 6\20\2025 3 A1 B1 6\20\2025 5 A1 ...
https://stackoverflow.com/questions/79674250/how-to-group-summarize-and-sum-the-amount-of-the-lates-date-in-dax
powerbi, dax, data-analysis, powerbi-desktop
1,750,492,937
se_74256598
stackoverflow
DATA_SCIENCE
How to oversample the review text data in a sentiment classification dataset using SMOTE?
How to oversample the review text data in a sentiment classification dataset using SMOTE? My dataset contains 2 columns. ['reviewtext'] which contains textual data(paragraphs), and ['rating']. The ['rating'] column has 5 unique values (1, 2, 3, 4, 5). However the values are unbalanced( 5 3000 4 3000 3 2000 2 ...
https://stackoverflow.com/questions/74256598/how-to-oversample-the-review-text-data-in-a-sentiment-classification-dataset-usi
python, data-analysis, sentiment-analysis, resampling
1,667,162,462
se_72650188
stackoverflow
DATA_SCIENCE
Sentence similarity using jaccard coefficient on a excel file
Sentence similarity using jaccard coefficient on a excel file I want to apply the Jaccard coefficient on an excel file that has 5575 rows, 'id' and 'text', the thing that I want to mention is that I want the similarity of the two by two rows :
https://stackoverflow.com/questions/72650188/sentence-similarity-using-jaccard-coefficient-on-a-excel-file
python, excel, pandas, data-analysis, similarity
1,655,403,101
se_79556189
stackoverflow
DATA_SCIENCE
Cleaning NULL values in a table, by JOINing aggregated data from another query for the same table?
Cleaning NULL values in a table, by JOINing aggregated data from another query for the same table? I'm currently working on a .csv document with over 150,000 rows. This document has information on trips: place of origin and destination (plus their respective ID and coordinates as latitudes and longitudes), TIMESTAMPS ...
https://stackoverflow.com/questions/79556189/cleaning-null-values-in-a-table-by-joining-aggregated-data-from-another-query-f
sql, google-bigquery, data-analysis, data-cleaning
1,743,798,230
se_56941274
stackoverflow
DATA_SCIENCE
How to encapsulate method to print console out to Word
How to encapsulate method to print console out to Word I want to print my summary stats sometimes to console, and also other times to Word. I don't want my code to be littered with lines calling to Word, because then I'd need to find and comment out like 100 lines each time I just wanted the console output. I've th...
https://stackoverflow.com/questions/56941274/how-to-encapsulate-method-to-print-console-out-to-word
python, automation, docx, data-analysis
1,562,613,341
se_56426647
stackoverflow
DATA_SCIENCE
How can I filter and a find a subset of a dataframe in which categorical data in two columns occur more than n, m times?
How can I filter and a find a subset of a dataframe in which categorical data in two columns occur more than n, m times? I have a dataframe from a csv which contains userId, ISBN and ratings for a bunch of books. I want to find a subset of this dataframe in which both userIds occur more than 200 times and ISBNs occur ...
https://stackoverflow.com/questions/56426647/how-can-i-filter-and-a-find-a-subset-of-a-dataframe-in-which-categorical-data-in
python, dataframe, data-analysis
1,559,562,285
se_79654507
stackoverflow
DATA_SCIENCE
How to Use Filter Activity Output as a Source in Copy Activity in Azure Data Factory Pipeline
How to Use Filter Activity Output as a Source in Copy Activity in Azure Data Factory Pipeline I'm fairly new to Azure Data Factory and need help with a pipeline I'm building. My goal is to read data from a CSV file stored in an Amazon S3 bucket, filter out records where the Status column is 'active', and then copy the...
https://stackoverflow.com/questions/79654507/how-to-use-filter-activity-output-as-a-source-in-copy-activity-in-azure-data-fac
azure, azure-data-factory, etl, data-analysis, data-engineering
1,749,128,436
se_79645150
stackoverflow
DATA_SCIENCE
Convert inner join with multiple conditions to DAX code for PowerBI. Join functions in DAX seem to be done only on simple conditions
Convert inner join with multiple conditions to DAX code for PowerBI. Join functions in DAX seem to be done only on simple conditions I have a query that uses my CDI table and self joins parts/rows of this table to other rows or parts of this table. I used CTEs to achieve this action in SQL shown below: WITH ALC2_2 AS ...
https://stackoverflow.com/questions/79645150/convert-inner-join-with-multiple-conditions-to-dax-code-for-powerbi-join-functi
python, sql, powerbi, dax, data-analysis
1,748,594,555
se_79617890
stackoverflow
DATA_SCIENCE
How can you count rows meeting one or more of multiple criteria in google sheets?
How can you count rows meeting one or more of multiple criteria in google sheets? I need to total multiple criterion amongst separate columns in a spreadsheet. I attempted the following syntax... COUNTIFS(criteria_range1, criterion1, criteria_range2, criterion2, ...) as such... COUNTIFS(a2:a, "Week 3", e2:e, "Week 3"...
https://stackoverflow.com/questions/79617890/how-can-you-count-rows-meeting-one-or-more-of-multiple-criteria-in-google-sheets
google-sheets, google-sheets-formula, data-analysis, spreadsheet, countif
1,747,054,808
se_79637922
stackoverflow
DATA_SCIENCE
Sum Values Which Appear In Both Tables
Sum Values Which Appear In Both Tables I have 2 related tables and I would like to sum if id number is exsist in the both tables. table1 id sum 1 5 3 10 5 15 table2 id sum 1 10 2 20 5 30 Expected Answer sum = 5 + 10 + 15 + 30
https://stackoverflow.com/questions/79637922/sum-values-which-appear-in-both-tables
powerbi, dax, data-analysis, powerbi-desktop, measure
1,748,194,135
se_52500704
stackoverflow
DATA_SCIENCE
Detect significant trend changes
Detect significant trend changes I would like to detect the dates where a trend curve significantly changes using R. The red dots are the points in time where I see a significant changed, these should be detected. Small fluctuations should be ignored. I have tried the breakpoints functions which finds the dates ind...
https://stackoverflow.com/questions/52500704/detect-significant-trend-changes
r, time-series, data-analysis
1,537,885,940
se_79596354
stackoverflow
DATA_SCIENCE
streamplots with pyqtgraph?
streamplots with pyqtgraph? Is there any function similar to matplotlib.pyplot.streamplot in pyqtgraph? I am using a UI for data analysis and would really benefit if I could overplot it with streamlines. Unfortunately, all I find online are packages on how to "stream plots" with pyqtgraph. (as in update them in real t...
https://stackoverflow.com/questions/79596354/streamplots-with-pyqtgraph
plot, data-analysis, vector-graphics, pyqtgraph
1,745,839,082
se_79586550
stackoverflow
DATA_SCIENCE
How can I optimize a Streamlit dashboard for large CSV files to improve load time?
How can I optimize a Streamlit dashboard for large CSV files to improve load time? My Streamlit app reads and visualizes data from a large CSV file (~100MB). The app takes several seconds to load. What are the best practices for improving performance—such as using @st.cache_data, lazy loading, or preprocessing?
https://stackoverflow.com/questions/79586550/how-can-i-optimize-a-streamlit-dashboard-for-large-csv-files-to-improve-load-tim
forms, machine-learning, artificial-intelligence, data-analysis
1,745,327,175
se_79586138
stackoverflow
DATA_SCIENCE
java.io.EOFException PySpark Py4JJavaError always occuring when using user defined function
java.io.EOFException PySpark Py4JJavaError always occuring when using user defined function I'm doing data preprocessing for this csv file of 1 million rows and hoping to shrink it down to 600000 rows. However I'm having trouble always when doing an apply function on a column in the dataframe because it always raises ...
https://stackoverflow.com/questions/79586138/java-io-eofexception-pyspark-py4jjavaerror-always-occuring-when-using-user-defin
python, dataframe, apache-spark, pyspark, data-analysis
1,745,315,665
se_79575746
stackoverflow
DATA_SCIENCE
how to use for loop to build an array in python?
how to use for loop to build an array in python? I wrote a piece of code that kind of does what I want it to do: it goes through a data vector {x, y}, which is ordered in increasing x, and it bins the y-data in the user-defined x-intervals so I can do statistics on the dataset. But it takes super-long and there seems ...
https://stackoverflow.com/questions/79575746/how-to-use-for-loop-to-build-an-array-in-python
python, loops, visualization, data-analysis
1,744,738,917
se_79549747
stackoverflow
DATA_SCIENCE
How to avoid read_csv converting empty strings to NULL?
How to avoid read_csv converting empty strings to NULL? I'm using DuckDB to read a CSV file that contains empty strings in some fields. However, DuckDB converts these empty strings to NULL. CSV Sample Data: "path","comment" "","[{""comment"":""grand total"",""updatedByUser"":"",""dateTime"":""2025-03-27 09:08:38"",""t...
https://stackoverflow.com/questions/79549747/how-to-avoid-read-csv-converting-empty-strings-to-null
sql, data-analysis, duckdb
1,743,571,335
se_79479705
stackoverflow
DATA_SCIENCE
How to make a custom diagram with python for data analysis
How to make a custom diagram with python for data analysis I am looking for an idea how to change a diagram to make it fit to that picture: Maybe it would make sense to make the output in a table to klick a row and show it in the diagram. But I have no idea which bib I can use. The data I have already converted: impo...
https://stackoverflow.com/questions/79479705/how-to-make-a-custom-diagram-with-python-for-data-analysis
python, pandas, data-analysis, mathlib
1,740,947,254
se_79529449
stackoverflow
DATA_SCIENCE
How to design a Django database schema for tracking user-item interactions (with quantities) to enable analytics and reporting?"
How to design a Django database schema for tracking user-item interactions (with quantities) to enable analytics and reporting?" I'm building a Django web app to manage item stock, where authenticated users can "take" items from inventory (I'm not using djangos authentication system, is more like the user enters ...
https://stackoverflow.com/questions/79529449/how-to-design-a-django-database-schema-for-tracking-user-item-interactions-with
django, sqlite, data-analysis
1,742,754,149
se_77329740
stackoverflow
DATA_SCIENCE
How to split multiple options of an Excel form
How to split multiple options of an Excel form I'm doing a data cleaning on excel and it was all going fine until i need to count how many times an answer apear. It was a multiple choice so, in Excel, the column has the type: Answer1, Answer2, Answer4 Answer2 Answer3, Answer4 If it was just like these (and correct me ...
https://stackoverflow.com/questions/77329740/how-to-split-multiple-options-of-an-excel-form
excel, excel-formula, split, data-analysis, countif
1,697,793,632
se_77994261
stackoverflow
DATA_SCIENCE
Pivot rows into column using DAX code in DAX Studio
Pivot rows into column using DAX code in DAX Studio Can anyone help me with code to do a "transpose" function in DAX using DAX Studio (From Image 1 to Image 2) Image 1 Image 2
https://stackoverflow.com/questions/77994261/pivot-rows-into-column-using-dax-code-in-dax-studio
powerbi, dax, data-analysis, powerbi-desktop, daxstudio
1,707,913,239
se_79495508
stackoverflow
DATA_SCIENCE
How can i improve my python code of leetcode problem 345 and how i can i improve the time complexity
How can i improve my python code of leetcode problem 345 and how i can i improve the time complexity Task of the problem: Given a string s, reverse only all the vowels in the string and return it. The vowels are 'a', 'e', 'i', 'o', and 'u', and they can appear in both lower and upper cases, more than once. Example 1:...
https://stackoverflow.com/questions/79495508/how-can-i-improve-my-python-code-of-leetcode-problem-345-and-how-i-can-i-improve
python, performance, time-complexity, runtime-error, data-analysis
1,741,501,471
se_79169081
stackoverflow
DATA_SCIENCE
Invalid value of type 'builtins.str' received for the 'color' property of scatter.line Received value: 'rgba(166, 206, 227, np.float64(1.0))'
Invalid value of type 'builtins.str' received for the 'color' property of scatter.line Received value: 'rgba(166, 206, 227, np.float64(1.0))' I am using this set of imports import numpy as np import pandas as pd import matplotlib.pyplot as plt from chart_studio import plotly # import plotly.plo...
https://stackoverflow.com/questions/79169081/invalid-value-of-type-builtins-str-received-for-the-color-property-of-scatte
python, data-science, data-analysis, valueerror
1,731,049,215
se_31708216
stackoverflow
DATA_SCIENCE
How do I visualize n-dimensional features?
How do I visualize n-dimensional features? I have two matrices A and B. The size of A is 200*1000 double (here: 1000 represents 1000 different features). Matrix A belongs to group 1, where I use ones(200,1) as the label vector. The size of B is also 200*1000 double (here: 1000 also represents 1000 different features)...
https://stackoverflow.com/questions/31708216/how-do-i-visualize-n-dimensional-features
matlab, grouping, data-analysis
1,438,193,890
se_79481979
stackoverflow
DATA_SCIENCE
Remove duplicated value inside in cell in python with multiple row
Remove duplicated value inside in cell in python with multiple row Hi Im cleaning bunch of emails and need help of removing data on each cell.In my data frame it looks like this I want to remove the duplicated values on each value on each cell with multiple row duplicates too. My data left center One email1emai...
https://stackoverflow.com/questions/79481979/remove-duplicated-value-inside-in-cell-in-python-with-multiple-row
python, dataframe, data-analysis
1,741,030,633
se_79475129
stackoverflow
DATA_SCIENCE
PowerBI - DAX code - Measure for a line chart to do not show values after Today()
PowerBI - DAX code - Measure for a line chart to do not show values after Today() I have a Data Model which has 2 specific table: 'Rolling Date' and 'Hasznaltauto mappák'. Rolling date contains date records, 1 for each day until today. The other table contains purchased cars, one record for each car. It has date, type...
https://stackoverflow.com/questions/79475129/powerbi-dax-code-measure-for-a-line-chart-to-do-not-show-values-after-today
powerbi, dax, data-analysis
1,740,736,291
se_79478549
stackoverflow
DATA_SCIENCE
Add new value/column in power BI matrix
Add new value/column in power BI matrix i created matrix in power bi. and i want to add sales average at last column and the formula i stated below. its just sample formula. but when i create a measure and add the measure at value. the column is repeating beside each column. how to add the column at last column only. ...
https://stackoverflow.com/questions/79478549/add-new-value-column-in-power-bi-matrix
powerbi, dax, data-analysis, powerbi-desktop, powerbi-datasource
1,740,882,620
se_73810681
stackoverflow
DATA_SCIENCE
Deriving multiple fields in SPSS modeler (using unique fields each time)
Deriving multiple fields in SPSS modeler (using unique fields each time) I'm using SPSS modeler to calculate the accuracy of various weekly estimates. I have a data table with a couple weeks of estimates and a couple weeks of actual data points. Currently, to calculate the errors per week I have to use a derive node f...
https://stackoverflow.com/questions/73810681/deriving-multiple-fields-in-spss-modeler-using-unique-fields-each-time
data-analysis, spss, spss-modeler
1,663,830,944
se_79447135
stackoverflow
DATA_SCIENCE
Trying to create predicted curves of CO2 using observed data and using a non-linear equation but my models are not matching the observed data at all
Trying to create predicted curves of CO2 using observed data and using a non-linear equation but my models are not matching the observed data at all its fine I worked out what went wrong. There were 2 issues and I'll explain what happened. The original co2 dataframe has several time-related columns. When I was rescali...
https://stackoverflow.com/questions/79447135/trying-to-create-predicted-curves-of-co2-using-observed-data-and-using-a-non-lin
python, data-analysis, curve-fitting
1,739,853,118
se_79449119
stackoverflow
DATA_SCIENCE
How to count people inside the building using entrance/leaving logs in PostgreSQL
How to count people inside the building using entrance/leaving logs in PostgreSQL I have a table with logs of going inside and outside the building. The table looks like that: user_id datetime direction 1 17/2/2025, 18:25:02.000 in 1 17/2/2025, 20:09:10.000 out 2 17/2/2025, 09:55:57.000 in 2 17/2/2025, 20...
https://stackoverflow.com/questions/79449119/how-to-count-people-inside-the-building-using-entrance-leaving-logs-in-postgresq
sql, postgresql, data-analysis, window-functions
1,739,899,259
se_74548262
stackoverflow
DATA_SCIENCE
Why does scipy.optimize.curve_fit not fit the data if a large gap exists between two groups of evenly spaced points?
Why does scipy.optimize.curve_fit not fit the data if a large gap exists between two groups of evenly spaced points? So I have a bell shaped distribution of points onto which I would like to fit a gaussian function. Sometimes it happens that this bell shape distribution of points is missing some points at the peak of ...
https://stackoverflow.com/questions/74548262/why-does-scipy-optimize-curve-fit-not-fit-the-data-if-a-large-gap-exists-between
python, data-analysis, curve-fitting, scipy-optimize
1,669,213,101
se_79415757
stackoverflow
DATA_SCIENCE
PowerBI prevent cross-filtering or cross-hilighting of other visuals in page when I click on one visual
PowerBI prevent cross-filtering or cross-hilighting of other visuals in page when I click on one visual In my PowerBI report I have multiple reports. Refer below image When I click on the bar on any visual, it blurs all other visuals, and remove their values. In below image I click bar of the first visual. This cause...
https://stackoverflow.com/questions/79415757/powerbi-prevent-cross-filtering-or-cross-hilighting-of-other-visuals-in-page-whe
powerbi, visualization, data-analysis, powerbi-desktop
1,738,778,809
se_79398850
stackoverflow
DATA_SCIENCE
BigQuery - Public Data: new_york is missing but the query runs
BigQuery - Public Data: new_york is missing but the query runs I'm taking up Google Data Analytics and I need the new_york dataset. The instructions clearly specified that it shouldn't be new_york_citibike due to discrepancies in their data. Since I can't see the dataset, I pasted the course's query. It runs and I'll ...
https://stackoverflow.com/questions/79398850/bigquery-public-data-new-york-is-missing-but-the-query-runs
data-analysis, bigquery-public-datasets
1,738,214,277
se_78205448
stackoverflow
DATA_SCIENCE
Change pandas pivot table bins range
Change pandas pivot table bins range I have a pandas pivot table and I want to change the bin ranges to calculate from 0. Hour_Num (0, 12] (12, 15] (15, 20] (20, 24] today_qty yesterday_qty today_qty yesterday_qty today_qty yesterday_qty today_qty yesterday_qty channel_name ...
https://stackoverflow.com/questions/78205448/change-pandas-pivot-table-bins-range
python, pandas, dataframe, pivot-table, data-analysis
1,711,102,257
se_79383537
stackoverflow
DATA_SCIENCE
Seaborn.pointplot(): repeats of same x-axis values, but different y
Seaborn.pointplot(): repeats of same x-axis values, but different y I am unsure what to do here. So the seaborn.pointplot() should take the mean of y values across 4 independent experiment for each x. However, within each independent experiment, I have also been doing repeats (e.g., 2 repeats for one experiment). But ...
https://stackoverflow.com/questions/79383537/seaborn-pointplot-repeats-of-same-x-axis-values-but-different-y
python, seaborn, data-analysis
1,737,703,346
se_79367947
stackoverflow
DATA_SCIENCE
PySpark filtering
PySpark filtering Currently I'm making calculations on a database that contains information on how loans are paid by borrowers. From technical point of view, I'm using PySpark and have just faced with an issue of how to use advanced filtering operations. My dataframe looks like this: ID ContractDate LoanSum Clos...
https://stackoverflow.com/questions/79367947/pyspark-filtering
pyspark, filter, data-analysis
1,737,233,115
se_79363494
stackoverflow
DATA_SCIENCE
Segmenting Shortest Paths in Simple Virtual Reality Map Images
Segmenting Shortest Paths in Simple Virtual Reality Map Images The goal is to segment the major paths by turns in a shortest path of a virtual reality map to know how much to score a person's navigation trajectory (blue line in image) based on how far they walked on the shortest path. The problem right now is the algo...
https://stackoverflow.com/questions/79363494/segmenting-shortest-paths-in-simple-virtual-reality-map-images
matlab, geometry, data-analysis, graph-theory
1,737,081,584
se_79359774
stackoverflow
DATA_SCIENCE
Calculating Difference of the days Power BI, Dax
Calculating Difference of the days Power BI, Dax I'm trying to get the days difference in table view power bi but it doesn't show the diff for each row for dax. What I want to achieve is the row-wise difference for the days and if the one-Id has the last day calculated with the current date only for the max stage is. ...
https://stackoverflow.com/questions/79359774/calculating-difference-of-the-days-power-bi-dax
powerbi, dax, powerquery, data-analysis
1,736,977,031
se_79307462
stackoverflow
DATA_SCIENCE
Calculating Financial Delays Using R
Calculating Financial Delays Using R I am currently working on a project to calculate losses for certain contracts, and I could really use your help with some challenges I'm facing. I have successfully calculated losses for each individual contract. The Start Date indicates when the contract should have begun, and the...
https://stackoverflow.com/questions/79307462/calculating-financial-delays-using-r
r, math, report, data-analysis, finance
1,735,125,647
se_79341877
stackoverflow
DATA_SCIENCE
Removing Noise (Jumps and Drops) from Sensor Data for Fuel Consumption
Removing Noise (Jumps and Drops) from Sensor Data for Fuel Consumption I am working with fuel consumption data received from a sensor, but sometimes the data contains noise (sudden jumps or drops) that makes it inconsistent. My goal is to identify and remove these outliers to ensure the data is accurate and reliable f...
https://stackoverflow.com/questions/79341877/removing-noise-jumps-and-drops-from-sensor-data-for-fuel-consumption
c#, .net, data-analysis, data-fitting, anomaly-detection
1,736,411,074
se_58522327
stackoverflow
DATA_SCIENCE
Entropy function for 3D point array in Matlab?
Entropy function for 3D point array in Matlab? For an array in this format A = [[1,2,3]; [4,5,6]; ... [x, y, z]]; How can I calculate the entropy of the points array in Matlab?
https://stackoverflow.com/questions/58522327/entropy-function-for-3d-point-array-in-matlab
arrays, matlab, statistics, data-analysis, entropy
1,571,831,757
se_79338114
stackoverflow
DATA_SCIENCE
"RuntimeError: Numpy is not available" when using inverse_transform
&quot;RuntimeError: Numpy is not available&quot; when using inverse_transform I got this error on python 3.12.7: Traceback (most recent call last): File "/Users/hongviet/Library/Mobile Documents/com~apple~CloudDocs/Documents/DataAnlalysCoding/First Week/baitap1.py", line 186, in <module> main() File "/Users/ho...
https://stackoverflow.com/questions/79338114/runtimeerror-numpy-is-not-available-when-using-inverse-transform
numpy, deep-learning, conv-neural-network, data-analysis
1,736,316,862
se_79335173
stackoverflow
DATA_SCIENCE
good r2 score but huge parameter uncertainty
good r2 score but huge parameter uncertainty I'm using a quadratic function to fit my data. I have good R2 score but huge uncertainty in my fitting parameters Here is the graph and the results: R2 score: 0.9698143924536671 uncertainty in a, b, and y0: 116.93787913, 10647.11867972, 116.93787935 How should I intepret t...
https://stackoverflow.com/questions/79335173/good-r2-score-but-huge-parameter-uncertainty
python, scipy, data-analysis, curve-fitting
1,736,235,034
se_79281263
stackoverflow
DATA_SCIENCE
How to Fill Missing Timestamps with Interpolated Values in GridDB Time-Series Queries?
How to Fill Missing Timestamps with Interpolated Values in GridDB Time-Series Queries? I am working on a time-series data analysis project using GridDB. My dataset has irregular intervals, with missing timestamps in some cases. I need to fill these gaps with interpolated values during data retrieval. Current Setup: I ...
https://stackoverflow.com/questions/79281263/how-to-fill-missing-timestamps-with-interpolated-values-in-griddb-time-series-qu
database, time-series, interpolation, data-analysis, griddb
1,734,205,048
se_79330781
stackoverflow
DATA_SCIENCE
Approach needed for filtering aggregated data in Laravel / MySQL 8
Approach needed for filtering aggregated data in Laravel / MySQL 8 I'm hoping someone can point me in the right direction here or share some approaches to a challenging feature I need to implement in my Laravel 11 project. I have a model called StatisticAggregate which contains data columns such as total_submits (e.g:...
https://stackoverflow.com/questions/79330781/approach-needed-for-filtering-aggregated-data-in-laravel-mysql-8
php, laravel, data-analysis, aggregation
1,736,082,883
se_79023121
stackoverflow
DATA_SCIENCE
Troubles formatting a complex excel file into a pandas dataframe for data analysis
Troubles formatting a complex excel file into a pandas dataframe for data analysis I am trying to process a file with Pandas to find correlation between variables and a specific result I get, but it is formatted in a way that makes it hard for me. Quick explanation of the problem I am producing a product, and I get th...
https://stackoverflow.com/questions/79023121/troubles-formatting-a-complex-excel-file-into-a-pandas-dataframe-for-data-analys
python, pandas, dataframe, data-analysis
1,727,270,398
se_79320238
stackoverflow
DATA_SCIENCE
Seaborn Linegraph with binned values
Seaborn Linegraph with binned values I have the following code and graph: bins = [0, 5, 15, 25, 50, 75, 100, 125, 150, 175, 200, 250, 300, 400, 500, 600, 700, 850, 1000, 5000, 100000] df['articles_binned'] = pd.cut(df['ARTICLES'], bins) export_df = df.groupby(['articles_binned', 'SUB_TYPE'])['CANCELLATION_FLAG'].mean...
https://stackoverflow.com/questions/79320238/seaborn-linegraph-with-binned-values
python, pandas, seaborn, data-analysis
1,735,657,238
se_79317572
stackoverflow
DATA_SCIENCE
How to place the values on the bar plot (some vertically and some horizontally)?
How to place the values on the bar plot (some vertically and some horizontally)? WHAT I HAVE WHAT I WANT I want the values to be inserted on the bars and they should be adjusted accordingly so that they appear clear. ( Some of them should be vertical and some of them should be horizontal ) x2 = ['JAN','FEB','MAR','APR...
https://stackoverflow.com/questions/79317572/how-to-place-the-values-on-the-bar-plot-some-vertically-and-some-horizontally
python, matplotlib, bar-chart, data-analysis
1,735,561,534
se_79317307
stackoverflow
DATA_SCIENCE
How to draw the horizontal and vertical lines for every value of x and y ticks with a specific opacity? (in the background)
How to draw the horizontal and vertical lines for every value of x and y ticks with a specific opacity? (in the background) x = [value for value in df['YEAR']] y1 = [value for value in df['ANNUAL']] y2 = [df['ANNUAL'].mean()]*(len(x)) fig = plt.figure(figsize=(8,5)) plt.plot(x,y1,label='Annual rainfall',color='blue'...
https://stackoverflow.com/questions/79317307/how-to-draw-the-horizontal-and-vertical-lines-for-every-value-of-x-and-y-ticks-w
python, matplotlib, graph, data-analysis
1,735,553,957
se_75794830
stackoverflow
DATA_SCIENCE
I want to connect to an api and extract the data
I want to connect to an api and extract the data I'm doing my own python analytics project on compiling and analysing data from this open-data source: (https://data.gov.ie/dataset?q=homeless&api=true&sort=score+desc%2C+metadata_created+desc&theme=Housing) I've never worked with api's or json's before.. all the info on...
https://stackoverflow.com/questions/75794830/i-want-to-connect-to-an-api-and-extract-the-data
python, pandas, data-analysis
1,679,342,639
se_79295170
stackoverflow
DATA_SCIENCE
Grouping Rows of Data to Generate analytical
Grouping Rows of Data to Generate analytical I am working with a data set of NHS attendance data (a snippet of the columns and rows are included). The data continues all the way until the final hour of Sunday. I have successfully cleaned the data and I am now trying to first find ‘the most common reason for attendance...
https://stackoverflow.com/questions/79295170/grouping-rows-of-data-to-generate-analytical
python, pandas, dataframe, group-by, data-analysis
1,734,630,213
se_79257418
stackoverflow
DATA_SCIENCE
How can i change a column data type in pandas without creating null values in the whole column in my dataframe
How can i change a column data type in pandas without creating null values in the whole column in my dataframe I have been getting null values when trying to convert a column with the non-numeric type values to a column with numeric type values I have been using the below code line to change my column data type so th...
https://stackoverflow.com/questions/79257418/how-can-i-change-a-column-data-type-in-pandas-without-creating-null-values-in-th
python, pandas, dataframe, data-analysis
1,733,476,096
se_75085236
stackoverflow
DATA_SCIENCE
&quot;Found input variables with inconsistent numbers of samples&quot; Have I done something wrong during the train_test_split?
&quot;Found input variables with inconsistent numbers of samples&quot; Have I done something wrong during the train_test_split? I am trying to logistic Regression Model, and run some test but I keep getting this error. Not really sure what I have done differently to everyone else from sklearn import preprocessing X = ...
https://stackoverflow.com/questions/75085236/found-input-variables-with-inconsistent-numbers-of-samples-have-i-done-somethi
python, machine-learning, jupyter-notebook, data-analysis, train-test-split
1,673,450,149
se_79278754
stackoverflow
DATA_SCIENCE
How to send an email notification using Python?
How to send an email notification using Python? I have a Python script that calls an API to fetch information about the job runs we have on IDMC from Informatica. The data queried from the API contains the runID, runName, Status and dates. I want to have a framework where I can get notified via email in case of a job ...
https://stackoverflow.com/questions/79278754/how-to-send-an-email-notification-using-python
email, data-analysis, informatica
1,734,102,526
se_78081377
stackoverflow
DATA_SCIENCE
How do you deal with multiple values in a single cell separated by comma?
How do you deal with multiple values in a single cell separated by comma? Student Fruits Foo Apple,Banana Bar Orange Baz Lemon,Orange How do I quantify/analyze the column Fruits with multiple values in a single cell separated by comma? I created multiple helper columns, then split the values like so: Stu...
https://stackoverflow.com/questions/78081377/how-do-you-deal-with-multiple-values-in-a-single-cell-separated-by-comma
google-sheets, google-analytics, data-analysis, pandas-explode, first-normal-form
1,709,209,335
se_69946941
stackoverflow
DATA_SCIENCE
Python BeautifulSoup web-scraping Tripadvisor view a review
Python BeautifulSoup web-scraping Tripadvisor view a review So I am new to web scraping and trying to view list of reviews for a particular hotel. I am initially trying to view for a particular review by selecting a particular class, and I am not getting any output, even when I try to check the status code of the requ...
https://stackoverflow.com/questions/69946941/python-beautifulsoup-web-scraping-tripadvisor-view-a-review
python, web-scraping, beautifulsoup, python-requests, data-analysis
1,636,738,603
se_79261926
stackoverflow
DATA_SCIENCE
Get Average of Top 3 in a Summarized Table in Power Bi
Get Average of Top 3 in a Summarized Table in Power Bi I'm new to Power Bi and I'm facing a problem. I have Sales table in which there is column named Moony. The table is like this: RowNumber Moony Volume 1 140309 123456 2 140309 15616 3 140210 565 4 140123 51 5 140202 123 6 140011 456 7 140202 123 ...
https://stackoverflow.com/questions/79261926/get-average-of-top-3-in-a-summarized-table-in-power-bi
powerbi, dax, data-analysis, powerbi-desktop, measure
1,733,637,128
se_79257330
stackoverflow
DATA_SCIENCE
Custom Colum based on specific dates in powerquery
Custom Colum based on specific dates in powerquery I have a table as below, and I am trying to create Custom Colom with a following condition: if [Date] < #date(2024, 7, 15) then consider all the Amount for Code (A1,A2,A3, and A4) if [Date] >= #date(2024, 7, 15) then consider the Amount only C1 and D1 Code Date...
https://stackoverflow.com/questions/79257330/custom-colum-based-on-specific-dates-in-powerquery
powerbi, powerquery, data-analysis, powerbi-desktop, m
1,733,474,219
se_79208760
stackoverflow
DATA_SCIENCE
Convert a multi column / row table output into a single string
Convert a multi column / row table output into a single string I have a table called #table1, larger but similar to the one below. I want to move the results to a single string variable. ColumnA ColumnB ColumnC ColumnD date1 datavalue1 identifier1 description1 date2 datavalue2 identifier2 description2 I wa...
https://stackoverflow.com/questions/79208760/convert-a-multi-column-row-table-output-into-a-single-string
sql, sql-server, t-sql, data-analysis
1,732,132,372
se_79246724
stackoverflow
DATA_SCIENCE
Read excel file with Sheets using duckdb
Read excel file with Sheets using duckdb I have excel file which has three sheets, using duckdb how to read all sheets into one dataframe? Normally i'm using spatial extension to read excel files with one sheet and it works perfect, here my code for reading excel. import duckdb import polars as pl # Create a connect...
https://stackoverflow.com/questions/79246724/read-excel-file-with-sheets-using-duckdb
data-analysis, duckdb
1,733,212,748
se_79190384
stackoverflow
DATA_SCIENCE
Ideal method to do image similarity comparison between two binary images - Tactile Maps
Ideal method to do image similarity comparison between two binary images - Tactile Maps I have a task for image similarity comparisons between two binary images of tactile maps (maps for the visually impaired to map out an area). The goal is to have an output score of how similar the two images are. The score should b...
https://stackoverflow.com/questions/79190384/ideal-method-to-do-image-similarity-comparison-between-two-binary-images-tacti
image-processing, computer-vision, data-analysis, similarity, binary-data
1,731,617,467