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_78285381
stackoverflow
DATA_SCIENCE
Unexpected result SQL subquery
Unexpected result SQL subquery I have two pieces of code that should basically do the same thing, but their results differ, and I cannot understand why. This is the first code: SELECT subquery.start_station_id, subquery.avg_duration FROM ( SELECT start_station_id, AVG(tripduration) as a...
https://stackoverflow.com/questions/78285381/unexpected-result-sql-subquery
sql, google-bigquery, subquery, data-analysis
1,712,426,052
se_78285514
stackoverflow
DATA_SCIENCE
How to Retrieve Last Balance for Filtered Months in Matrix Visual?
How to Retrieve Last Balance for Filtered Months in Matrix Visual? I have some data from the "Reconciliation" table, which includes Date ID, Account ID, and Balance: Date ID Account ID Balance 20240101 A 100 20240201 A 200 20240301 B 300 Additionally, I have a date table connected to the Date ID. I'm try...
https://stackoverflow.com/questions/78285514/how-to-retrieve-last-balance-for-filtered-months-in-matrix-visual
powerbi, dax, data-analysis, powerbi-desktop, measure
1,712,428,912
se_78282253
stackoverflow
DATA_SCIENCE
Dynamically Load Data in Power BI
Dynamically Load Data in Power BI I want to dynamically load some data into Power BI so that updates in the database are reflected on it without the need to republish it. Is there a way to run a new query every time you select an item in a dropdown menu?
https://stackoverflow.com/questions/78282253/dynamically-load-data-in-power-bi
powerbi, dax, data-analysis, powerbi-desktop
1,712,349,557
se_78273519
stackoverflow
DATA_SCIENCE
Excel, Power Query: combine tables, pick only one item
Excel, Power Query: combine tables, pick only one item In a continuation of this question: Excel, Power Query: Add multiple columns from query2 into query1 Thanks to Ron I have a code to combine table1: And table2: into this result table: However, under item in the result table. I don't want to have double data any...
https://stackoverflow.com/questions/78273519/excel-power-query-combine-tables-pick-only-one-item
excel, powerquery, data-analysis, data-cleaning, m
1,712,229,987
se_77377393
stackoverflow
DATA_SCIENCE
How can I use overlapping pairs of data to inform a larger model?
How can I use overlapping pairs of data to inform a larger model? I have data in pairs - for instance, given subjects A, B, C, D, E... I might have data for the pairs AB, AC, BD, and DE. All data is relative to the other member of the pair, there is no absolute data. Each subject is paired directly with few other subj...
https://stackoverflow.com/questions/77377393/how-can-i-use-overlapping-pairs-of-data-to-inform-a-larger-model
python, data-analysis
1,698,447,107
se_78254356
stackoverflow
DATA_SCIENCE
Why does MAXX not add the row context to filter context without CALCULATE?
Why does MAXX not add the row context to filter context without CALCULATE? MAXX(CUSTOMER, SUMX(SALES,SALES[AMT]+0)) The above doesn't add customer into the folder context when performing the SUMX Where as the following does: MAXX(CUSTOMER, CALCULATE(SUMX(SALES,SALES[AMT]+0))) Why does MAXX not add the row context to...
https://stackoverflow.com/questions/78254356/why-does-maxx-not-add-the-row-context-to-filter-context-without-calculate
powerbi, dax, data-analysis, powerbi-desktop, measure
1,711,959,553
se_78226867
stackoverflow
DATA_SCIENCE
Dynamic Filtering of Calculated Table Not Working with SELECTEDVALUE(slicer) in Power BI
Dynamic Filtering of Calculated Table Not Working with SELECTEDVALUE(slicer) in Power BI What do you guys think why does not work the following code if I give dynamic value for a slicer which used as a VAR in a calculated table measure? UPDATE: The calculation works with hard coded index (like 1.151) but doesn't if us...
https://stackoverflow.com/questions/78226867/dynamic-filtering-of-calculated-table-not-working-with-selectedvalueslicer-in
powerbi, dax, powerquery, data-analysis, powerbi-desktop
1,711,470,935
se_78249871
stackoverflow
DATA_SCIENCE
duplicates within a 30 day period in samples from location A
duplicates within a 30 day period in samples from location A I have a dataset with 3 variables: test_date, unique_ID, and location, which provides location of testing and can be either "department" or "practice". I want to exclude data from my dataset if the unique ID is present for more than one occasion within a 30 ...
https://stackoverflow.com/questions/78249871/duplicates-within-a-30-day-period-in-samples-from-location-a
r, data-analysis
1,711,842,138
se_78246575
stackoverflow
DATA_SCIENCE
Understanding numeric_only boolean parameter in Pandas
Understanding numeric_only boolean parameter in Pandas I am new to Pandas and I am trying to better understand the use of the numeric_only parameter. As you can see in the screenshot below, the goal is to pull the median number of video shares by the author's ban status. Why do I need to specify "numeric_only = True" ...
https://stackoverflow.com/questions/78246575/understanding-numeric-only-boolean-parameter-in-pandas
python, pandas, numpy, data-analysis
1,711,762,254
se_78242736
stackoverflow
DATA_SCIENCE
Unable to filter in power bi dax query
Unable to filter in power bi dax query I have 3 tables - AWS,Troux and Url-shortener. Troux to Url-shortener has 1 to many relationship. Troux to AWS has 1 to many relationship. They all have UUID as common column. UUID is a text column, value is alphanumeric. I need to select the 1st value of UUID column from Url-sho...
https://stackoverflow.com/questions/78242736/unable-to-filter-in-power-bi-dax-query
powerbi, dax, data-analysis, powerbi-desktop, data-cleaning
1,711,701,048
se_78240500
stackoverflow
DATA_SCIENCE
YTD sum by month, using only latest value for each month
YTD sum by month, using only latest value for each month Given a daily fact table, I want to create a measure for YTD sum (by month), but only summing the last available observation for each month. The layout looks like: using the Date date table to select a particular month, the Date Copy table to display each month...
https://stackoverflow.com/questions/78240500/ytd-sum-by-month-using-only-latest-value-for-each-month
powerbi, dax, data-analysis, powerbi-desktop, measure
1,711,654,597
se_78239258
stackoverflow
DATA_SCIENCE
Stopping a Power BI Table visual slicing the result of a virtual table
Stopping a Power BI Table visual slicing the result of a virtual table I'm trying to do some min max scaling in Power BI to give turn values into scaled scores between 0 and 1. To do this, i need to first calculate the minimum and maximum values. However, i'm struggling to get this to work on aggregated data in a visu...
https://stackoverflow.com/questions/78239258/stopping-a-power-bi-table-visual-slicing-the-result-of-a-virtual-table
powerbi, dax, data-analysis, powerbi-desktop, measure
1,711,639,487
se_78231101
stackoverflow
DATA_SCIENCE
Upsert using DuckDB
Upsert using DuckDB Let assume I have two parquet file aka main and updates with some data as shown below. I need to implement upsert kind of operation in duck db. parquet file main: id, name, city data: id name city 1 a p 2 b q 3 c r parquet file up...
https://stackoverflow.com/questions/78231101/upsert-using-duckdb
mysql, apache-spark, data-analysis, duckdb
1,711,536,663
se_78225621
stackoverflow
DATA_SCIENCE
How to properly use the Excel DAY function
How to properly use the Excel DAY function What am I doing wrong here? I have a data set with date values formatted mm-dd-yyyy. ex. I am creating a new column with the day extracted from each date, but when I use DAY() function I get #VALUE. I've set the Date column to Date type but to no avail. Any insight would be ...
https://stackoverflow.com/questions/78225621/how-to-properly-use-the-excel-day-function
excel, data-analysis
1,711,459,044
se_78218628
stackoverflow
DATA_SCIENCE
ifelse statement in DAX
ifelse statement in DAX I am trying to create a calculated column using the code below. Lookup function works find until I added the IF statement above it. What I need is to fix the outcome to 1 when df[col] = "B0" or df[col] = "B1" otherwise outcome should give the lookup function result. how to get around with this ...
https://stackoverflow.com/questions/78218628/ifelse-statement-in-dax
powerbi, dax, data-analysis, powerbi-desktop, measure
1,711,364,943
se_78216158
stackoverflow
DATA_SCIENCE
Can I use RELATED for a table that's connected to another table?
Can I use RELATED for a table that's connected to another table? I have three tables. Shift Activity - Night is my main data table. That's connected to Engineers via Engineer Name That Engineer table is connected to Service Desk Rota via Engineer Full Name. I need to write some dax to add a column to add either S...
https://stackoverflow.com/questions/78216158/can-i-use-related-for-a-table-thats-connected-to-another-table
powerbi, dax, data-analysis, powerbi-desktop, measure
1,711,315,288
se_78211121
stackoverflow
DATA_SCIENCE
Powerbi: remove part of the string value in column and put it to another table
Powerbi: remove part of the string value in column and put it to another table I have values in powerbi column with prefix e.g. Title: some title. I want to put this column to another table using dax, but without prefix "Title: " so it should be "some title". In source table values can contain this prefix but there co...
https://stackoverflow.com/questions/78211121/powerbi-remove-part-of-the-string-value-in-column-and-put-it-to-another-table
powerbi, dax, data-analysis, powerbi-desktop, data-cleaning
1,711,201,917
se_78164311
stackoverflow
DATA_SCIENCE
Dynamic Ranking based on date and key
Dynamic Ranking based on date and key This is my sample input data table: entry_id entry_date company_id objective_title objective_status key objective_rank 1 2024-03-01 company_1 objective_1 Completed company_1_objective_1 1 2 2024-12-30 company_1 objective_1 In Progre...
https://stackoverflow.com/questions/78164311/dynamic-ranking-based-on-date-and-key
powerbi, dax, powerquery, data-analysis, powerbi-desktop
1,710,468,109
se_78197301
stackoverflow
DATA_SCIENCE
Data Looks good in Power Query Editor but only showing cells with 0 values in Table View
Data Looks good in Power Query Editor but only showing cells with 0 values in Table View I'm currently learning Power BI and attempting to do a little project, I prepared the data by myself, after loading into the Query Editor for transformation et al. Everything looks good, but when I switch to Table view to build my...
https://stackoverflow.com/questions/78197301/data-looks-good-in-power-query-editor-but-only-showing-cells-with-0-values-in-ta
powerbi, powerquery, data-analysis, powerbi-desktop, business-intelligence
1,710,990,209
se_78205603
stackoverflow
DATA_SCIENCE
Replacing Colour Values with Related Column Values of a declared Table
Replacing Colour Values with Related Column Values of a declared Table _Hi, I have the following DAX measure and I would like to replace the XXXX section by the related colour of the "@Colour" column from the same _BarTable. I don't know how to do it ? Thanks for your help ! Link to Pbix file VAR _BarTable= ADDCOL...
https://stackoverflow.com/questions/78205603/replacing-colour-values-with-related-column-values-of-a-declared-table
powerbi, dax, data-analysis, powerbi-desktop, measure
1,711,103,810
se_78200329
stackoverflow
DATA_SCIENCE
Have removed summarisation but still adding count when brought into graph - Power BI
Have removed summarisation but still adding count when brought into graph - Power BI I'm trying to just show a flat line of 20 across a graph. I've added a column in my Shift Activity table that's just 20 for every value. I've set it to a whole number data type and I've selected "Don't Summarize" However when I brin...
https://stackoverflow.com/questions/78200329/have-removed-summarisation-but-still-adding-count-when-brought-into-graph-powe
charts, powerbi, visualization, data-analysis, powerbi-desktop
1,711,028,238
se_78140153
stackoverflow
DATA_SCIENCE
How to get the correct sum while doing group by, alongwith a where clause on columns which populate randomly for rows within the group?
How to get the correct sum while doing group by, alongwith a where clause on columns which populate randomly for rows within the group? I have, say, an 'order table' with multiple columns and thousands of rows. Each order id has multiple rows and "order value" column has mostly zeroes in all except 1-2 for each order....
https://stackoverflow.com/questions/78140153/how-to-get-the-correct-sum-while-doing-group-by-alongwith-a-where-clause-on-col
sql, snowflake-cloud-data-platform, data-analysis
1,710,155,198
se_78192643
stackoverflow
DATA_SCIENCE
Detecting patterns ("stripes","squares",...) in clustered heatmaps
Detecting patterns ("stripes","squares",...) in clustered heatmaps Currently I am facing a problem in my data analysis: I have a number of matrices where I want to "identify"/"detect" squares and/ or stripes in my matrices where the values of the cells are consistently low (I could accept both to ...
https://stackoverflow.com/questions/78192643/detecting-patterns-stripes-squares-in-clustered-heatmaps
matrix, data-analysis
1,710,931,584
se_78139161
stackoverflow
DATA_SCIENCE
metpy divergence module array indexing error
metpy divergence module array indexing error I am trying to find out moisture divergence using metpy divergence module .Now I am doing it for a dictionary with years being the keys, HMD = {} for year in [2012, 2018, 2019]: # Get the resampled dataset for the current year resampled_ds = resampled_d...
https://stackoverflow.com/questions/78139161/metpy-divergence-module-array-indexing-error
python, data-analysis, calculation, atmosphere, metpy
1,710,144,393
se_46593417
stackoverflow
DATA_SCIENCE
Hide Legend and Scale information on surface plot using pandas, plotly
Hide Legend and Scale information on surface plot using pandas, plotly I am at my wits end but so far did not find any documentation to solve my specific issue. I am using jupyter notebook. I have two data frames, df1 & df2. # libraries import pandas as pd import numpy as np import matplotlib.pyplot as plt import c...
https://stackoverflow.com/questions/46593417/hide-legend-and-scale-information-on-surface-plot-using-pandas-plotly
python-3.x, pandas, data-visualization, plotly, data-analysis
1,507,231,708
se_78181318
stackoverflow
DATA_SCIENCE
Change date to work in correlation matrix
Change date to work in correlation matrix I am trying to create a correlation matrix to see which variables are useful from my dataset since there are over 600 variables. dataset I used df.corr() and received an error message that Python cound not convert string into a float. It was the date column. It is set up as YY...
https://stackoverflow.com/questions/78181318/change-date-to-work-in-correlation-matrix
python, data-analysis, correlation
1,710,776,263
se_78179017
stackoverflow
DATA_SCIENCE
Elections polls are not conducted daily within each state. How to fill the missing days in the dataset according to the rule defined?
Elections polls are not conducted daily within each state. How to fill the missing days in the dataset according to the rule defined? This is an exercise question from the book QSS by Kosuke Imai, chapter 4. The dataset is prediction of 2008 US election outcomes based on betting markets. In order to solve the exercise...
https://stackoverflow.com/questions/78179017/elections-polls-are-not-conducted-daily-within-each-state-how-to-fill-the-missi
pandas, dataframe, loops, data-analysis
1,710,752,690
se_1500149
stackoverflow
DATA_SCIENCE
Find Lines in a cloud of points
Find Lines in a cloud of points I have an array of Points. I KNOW that these points represent many lines in my page. How can I find them? Do I need to find the spacing between clouds of points?
https://stackoverflow.com/questions/1500149/find-lines-in-a-cloud-of-points
math, data-analysis
1,254,338,603
se_78165970
stackoverflow
DATA_SCIENCE
keyerror panda+jupiter notebook with a csv file
keyerror panda+jupiter notebook with a csv file i found a csv file on kaggle so i downloaded it to learn on it ,i imported the panda module then read the file using it then i only kept the salaries and salary currencies columns then tried to get the highest and lowest salary with the currency being USD so i tried usin...
https://stackoverflow.com/questions/78165970/keyerror-pandajupiter-notebook-with-a-csv-file
python, jupyter-notebook, data-analysis
1,710,495,945
se_78154458
stackoverflow
DATA_SCIENCE
How to remove constant part of a signal in python?
How to remove constant part of a signal in python? I have a dataset where it is constant sometimes with small noise. It can be on the top, it can be in the middle. I want to remove all constant part of the signal so that it compress into a smaller length. Lets say if 200 consicutive value is same (or in a threshold li...
https://stackoverflow.com/questions/78154458/how-to-remove-constant-part-of-a-signal-in-python
python, signals, signal-processing, data-analysis, data-cleaning
1,710,339,185
se_78011651
stackoverflow
DATA_SCIENCE
To find angular frequency and wave vector for time series data using minimum variance method
To find angular frequency and wave vector for time series data using minimum variance method Suppose, I have 10 set of time series data velocity components Vx, Vy and Vz with 5 minutes interval of time, how to find the angular frequency and wave vector using minimum variance method for those data? Thanks! What else me...
https://stackoverflow.com/questions/78011651/to-find-angular-frequency-and-wave-vector-for-time-series-data-using-minimum-var
math, statistics, data-analysis, physics
1,708,163,706
se_78157860
stackoverflow
DATA_SCIENCE
KeyError when using .loc method using Pandas in Python
KeyError when using .loc method using Pandas in Python I have a simple project that I have created using the information that I collected from an excel sheet file (xlsx file). this is the information I am working with when I run df.iloc[1] the output is but when I run df.loc['Amazon'] I get a KeyError for the ke...
https://stackoverflow.com/questions/78157860/keyerror-when-using-loc-method-using-pandas-in-python
python, pandas, web-scraping, data-analysis
1,710,384,791
se_78036044
stackoverflow
DATA_SCIENCE
Compute sensitivity, specificity, and more using multiple input variables in R
Compute sensitivity, specificity, and more using multiple input variables in R Preamble: the question I am going to ask can be considered a follow up of this discussion, for which a nice answer was provided. Also, I was given extremely helpful advice here, and the idea of what I am dealing with now goes into a similar...
https://stackoverflow.com/questions/78036044/compute-sensitivity-specificity-and-more-using-multiple-input-variables-in-r
r, automation, statistics, tidyverse, data-analysis
1,708,537,133
se_78153447
stackoverflow
DATA_SCIENCE
Get selectedvalue of multiple parameter selections
Get selectedvalue of multiple parameter selections I have written a DAX code which gets the SELECTEDVALUE based on what the user has selected from a parameter slicer, however, this only works for one single selection. How would I go about getting a concatenation of the multiple slicer selections from the parameter sli...
https://stackoverflow.com/questions/78153447/get-selectedvalue-of-multiple-parameter-selections
powerbi, dax, data-analysis, powerbi-desktop, measure
1,710,329,666
se_78147094
stackoverflow
DATA_SCIENCE
What data type is appropriate for star schema keys (integer or text)?
What data type is appropriate for star schema keys (integer or text)? I have inherited a star schema based report. However the keys (links) are text fields. Not numeric ids. For example: The DimClient has values like: Client Name JLR Mercedes Audi Volvo And the FactSales has values link: id date client value 1 ...
https://stackoverflow.com/questions/78147094/what-data-type-is-appropriate-for-star-schema-keys-integer-or-text
powerbi, dax, data-analysis, powerbi-desktop, data-modeling
1,710,246,236
se_78149578
stackoverflow
DATA_SCIENCE
Need help related to Data Sets
Need help related to Data Sets I have been working on a Big Data Project that requires us to work on data sets related to Child abuse and Child Maltreatment at state level or national level, in United States. We searched all the government agencies but hardly found few data sets. As per the requirement the dataset sho...
https://stackoverflow.com/questions/78149578/need-help-related-to-data-sets
python, dataset, bigdata, visualization, data-analysis
1,710,271,234
se_78148631
stackoverflow
DATA_SCIENCE
I'm going to analyzing the data using python for get prediction
I'm going to analyzing the data using python for get prediction from sklearn.model_selection import train_test_split This gave me below error At line:1 char:1 + from sklearn.model_selection import train_test_split + ~~~~ The 'from' keyword is not supported in this version of the language. + CategoryInfo ...
https://stackoverflow.com/questions/78148631/im-going-to-analyzing-the-data-using-python-for-get-prediction
python, pandas, jupyter-notebook, data-analysis
1,710,260,355
se_78145594
stackoverflow
DATA_SCIENCE
Variables (column names) differ between power bi and power query
Variables (column names) differ between power bi and power query I have powerbi report and the power query looks like below. What would be the reason why the column names are not coming right? many thanks in advance.
https://stackoverflow.com/questions/78145594/variables-column-names-differ-between-power-bi-and-power-query
powerbi, powerquery, data-analysis, powerbi-desktop, data-cleaning
1,710,231,918
se_78145437
stackoverflow
DATA_SCIENCE
Wrong growth rate
Wrong growth rate I'm currently working on calculating the growth rate in Power BI using DAX programming, but I've hit a snag. Unfortunately, I'm having trouble with -1 divided by zero and it's giving me an incorrect calculation. I was wondering if anyone could lend a hand and help me fix this error. Thanks in advance...
https://stackoverflow.com/questions/78145437/wrong-growth-rate
powerbi, dax, data-analysis, powerbi-desktop, measure
1,710,230,399
se_78145521
stackoverflow
DATA_SCIENCE
How to SUM DISTINCT Values in a column based on a unique count in another column of a Power BI table
How to SUM DISTINCT Values in a column based on a unique count in another column of a Power BI table Employee Claim Amount James 50 James 20 James 10 Alex 30 Alex 20 I have a table above which I would like to calculate the sum of the claim amount divide by the unique count of employee which is 2 to achi...
https://stackoverflow.com/questions/78145521/how-to-sum-distinct-values-in-a-column-based-on-a-unique-count-in-another-column
powerbi, dax, data-analysis, powerbi-desktop, measure
1,710,231,264
se_78143528
stackoverflow
DATA_SCIENCE
How to colour a matplotlib histogram by values in another dataframe column
How to colour a matplotlib histogram by values in another dataframe column I create a dataframe using import pandas as pd import matplotlib.pyplot as plt df_dict = { "test_predictions": [0.1, 0.1, 0.2, 0.2, 0.3, 0.3, 0.4, 0.4, 0.4, 0.4, 0.4, 0.5, 0.5, 0.6, 0.6, 0.6, 0.7, 0.7, 0.7, 0.7, 0.7, 0.8, 0.8, 0.8, 0.9, ...
https://stackoverflow.com/questions/78143528/how-to-colour-a-matplotlib-histogram-by-values-in-another-dataframe-column
python, pandas, matplotlib, data-analysis
1,710,192,930
se_78054358
stackoverflow
DATA_SCIENCE
Why am I getting different length and travel time from OSMnx or networkx when comparing it with Google Maps?
Why am I getting different length and travel time from OSMnx or networkx when comparing it with Google Maps? I'm new working with OSM data, OSMnx and networkx libraries, so if there's a better way to accomplish on getting shortest path from A to B locations, I'll appreciate any advice. I'm trying to get shortest path ...
https://stackoverflow.com/questions/78054358/why-am-i-getting-different-length-and-travel-time-from-osmnx-or-networkx-when-co
networkx, data-analysis, openstreetmap, shortest-path, osmnx
1,708,817,729
se_75068531
stackoverflow
DATA_SCIENCE
USERELATIONSHIP together with FILTER in CALCULATE
USERELATIONSHIP together with FILTER in CALCULATE I have a dax formula which counts rows based on dates: Avsluttet = CALCULATE(COUNTROWS(TICKET),USERELATIONSHIP(Dato[Opprettet dato], TICKET[closed_at])) But the column closed_at cointans "null" data that I want to exclude. How do I implement filter in the code above, ...
https://stackoverflow.com/questions/75068531/userelationship-together-with-filter-in-calculate
powerbi, dax, data-analysis, powerbi-desktop, measure
1,673,346,059
se_78134426
stackoverflow
DATA_SCIENCE
Seeking Excel Advice: Identifying Unpaired Names with Matching Timestamps?
Seeking Excel Advice: Identifying Unpaired Names with Matching Timestamps? I am using excel and I want to do something like checking for Margin Repayment that doesn't have transaction sold pair with it in the exact same time. After it check, it can either tell me the line or highlight it for me. Like the picture I man...
https://stackoverflow.com/questions/78134426/seeking-excel-advice-identifying-unpaired-names-with-matching-timestamps
excel, excel-formula, ms-office, data-analysis, conditional-formatting
1,710,033,054
se_78117227
stackoverflow
DATA_SCIENCE
Merging results in an error (Error: cannot allocate vector)?
Merging results in an error (Error: cannot allocate vector)? I have two data frames df1 and df2 like below df1 ID 1 1 1 1 2 2 2 2 df2 ID CD 1 A 1 A 1 A 1 A 2 C 2 C 2 C 2 C I need to join these two data frames in a way that all matching 'ID' rows in df2 are brought into d...
https://stackoverflow.com/questions/78117227/merging-results-in-an-error-error-cannot-allocate-vector
r, data-analysis, data-manipulation
1,709,756,635
se_78122602
stackoverflow
DATA_SCIENCE
My data extraction is off with line analysis in python. I need some guidance on where I'm going wrong
My data extraction is off with line analysis in python. I need some guidance on where I'm going wrong Student Bill Student Invoice So! I'm working on data extraction for my company (a university) and while it works as advertised extracting data, its not getting the right data. I've run a different script for line ...
https://stackoverflow.com/questions/78122602/my-data-extraction-is-off-with-line-analysis-in-python-i-need-some-guidance-on
python-3.x, extract, data-analysis
1,709,825,885
se_78123965
stackoverflow
DATA_SCIENCE
Extract data from a CSV file based on the date
Extract data from a CSV file based on the date I am investigating the variability of Aerosol Optical Depth (AOD) with Temperature. I have a list of dates in a csv file and I need to extract the temperature, at that given date, from a csv file containing the temp followed by the date. This is the code I tried to use......
https://stackoverflow.com/questions/78123965/extract-data-from-a-csv-file-based-on-the-date
python, pandas, dataframe, data-analysis, physics
1,709,840,685
se_78118397
stackoverflow
DATA_SCIENCE
SQL : unrecognized name
SQL : unrecognized name Unrecognized name: year at [6:7] SELECT EXTRACT(YEAR FROM starttime) AS year, COUNT (*) AS number_of_rides FROM bigquery-public-data.new_york.citibike_trips WHERE year IN (2013,2014) GROUP BY year ORDER BY year DESC --wanted to return data in 2013 and 2014
https://stackoverflow.com/questions/78118397/sql-unrecognized-name
sql, google-bigquery, where-clause, data-analysis, where-in
1,709,777,758
se_78107113
stackoverflow
DATA_SCIENCE
dax coding in powerBI to show 1 as Monday and 7 as Sunday as same with others (direct query)
dax coding in powerBI to show 1 as Monday and 7 as Sunday as same with others (direct query) I want to show 1 as Monday and 7 as Sunday in DAX coding write now I am using day of the week = WEEKDAY(msg_event[Eventdate],1) this only shows number instead of names like Monday Tuesday etc Note: Iam using DirectQuery here ...
https://stackoverflow.com/questions/78107113/dax-coding-in-powerbi-to-show-1-as-monday-and-7-as-sunday-as-same-with-others-d
powerbi, dax, data-analysis, powerbi-desktop, measure
1,709,635,604
se_65742878
stackoverflow
DATA_SCIENCE
What is the difference between SUMX(ALL...) vs CALCULATE(SUMX.., ALL..)?
What is the difference between SUMX(ALL...) vs CALCULATE(SUMX.., ALL..)? Following are 2 measures: SUMX ( ALL ( SALES ) , SALES[AMT] ) CALCULATE ( SUMX ( SALES, SALES[AMT] ), ALL (SALES) ) Similarly for the following 2 measures: SUMX ( FILTER ( SALES, SALES[QTY]>1 ), SALES[QTY] * SALES[AMT] ) CALCULATE ( SUMX ( SAL...
https://stackoverflow.com/questions/65742878/what-is-the-difference-between-sumxall-vs-calculatesumx-all
powerbi, dax, data-analysis, powerbi-desktop, measure
1,610,741,136
se_78099801
stackoverflow
DATA_SCIENCE
Unable to use 3D X and 2D y for training
Unable to use 3D X and 2D y for training I am training a model to differentiate between real and fake data. I have a real dataset and a fake dataset, and since I didn't know how to train a single model on both, I am now training a model for real and a model for fake. The problem is that training any of the models seem...
https://stackoverflow.com/questions/78099801/unable-to-use-3d-x-and-2d-y-for-training
machine-learning, artificial-intelligence, classification, data-analysis
1,709,540,452
se_78102271
stackoverflow
DATA_SCIENCE
Apply conditional formating on Table Visualization - Power BI
Apply conditional formating on Table Visualization - Power BI Trying to apply conditional formatting on Table Visualization in Power BI I received a warning to check the logic of my rule. The logic I want to apply is simple, if the value is 0, set a tick else set a cross. Find below the warning received: . Update base...
https://stackoverflow.com/questions/78102271/apply-conditional-formating-on-table-visualization-power-bi
powerbi, dax, data-analysis, powerbi-desktop, conditional-formatting
1,709,565,222
se_78101978
stackoverflow
DATA_SCIENCE
Thousand separator in Power BI
Thousand separator in Power BI I have changed Value on Data labels to None in Display units, but I want the numbers to appear like this 100 000 and not this 100000 as thousand separator. How do I change the format in the visual?
https://stackoverflow.com/questions/78101978/thousand-separator-in-power-bi
powerbi, dax, data-analysis, powerbi-desktop, measure
1,709,562,600
se_78100666
stackoverflow
DATA_SCIENCE
What .[Date] function at the end of date column fetch in DAX query in Power BI
What .[Date] function at the end of date column fetch in DAX query in Power BI I have one DAX code: TOTALYTD(SUM('Table_name'[Sales_column]), 'Table_name'[date].[Date]) In the above query, Table_name is a table that has one date column which is the date type column, and is data Hierarchy. I am confused about the .[Da...
https://stackoverflow.com/questions/78100666/what-date-function-at-the-end-of-date-column-fetch-in-dax-query-in-power-bi
powerbi, dax, data-analysis, powerbi-desktop, measure
1,709,549,165
se_78094397
stackoverflow
DATA_SCIENCE
Calculate the percentage of the value in the column after grouping with 2 columns
Calculate the percentage of the value in the column after grouping with 2 columns I have the following data frame: Date Cost Corporate Vehicle type Price Insurance Date_M 0 2019-08-26 04:14:00 23719 0 automobile 25903 1 2019-08 1 2020-08-27 01:21:03 17159 0 truck 24748 1 2020-08 2 2019-08-26 18:49:04 3629 ...
https://stackoverflow.com/questions/78094397/calculate-the-percentage-of-the-value-in-the-column-after-grouping-with-2-column
python, pandas, dataframe, data-analysis
1,709,415,872
se_78090435
stackoverflow
DATA_SCIENCE
How to create page-filter based on max value of column in PowerBI?
How to create page-filter based on max value of column in PowerBI? I have a column called "Week", which always will take two values; the number of the week of the year we are currently in, and the number of the week of the year that just completed. E.g., 10 and 9. This report will be refreshed daily, thus the values o...
https://stackoverflow.com/questions/78090435/how-to-create-page-filter-based-on-max-value-of-column-in-powerbi
powerbi, dax, data-analysis, powerbi-desktop, measure
1,709,326,912
se_78091443
stackoverflow
DATA_SCIENCE
Why the Matplotlib Pyplot cannot show the chart while Seaborn can?
Why the Matplotlib Pyplot cannot show the chart while Seaborn can? Here is the code and the execution result. fig, axs = plt.subplots(19, 5, figsize=(20,80)) plt.subplots_adjust(hspace=0.5) for i in range(len(column_with_null)): row_loc = i // 5 col_loc = i % 5 axs[row_loc, col_loc].boxplot(x=dat...
https://stackoverflow.com/questions/78091443/why-the-matplotlib-pyplot-cannot-show-the-chart-while-seaborn-can
python, python-3.x, matplotlib, visualization, data-analysis
1,709,352,942
se_40436298
stackoverflow
DATA_SCIENCE
Why do I get a rank deficiency in the QDA
Why do I get a rank deficiency in the QDA I am working on the titanic titanic dataset from Kaggle (https://www.kaggle.com/c/titanic/data) and I'm trying to apply various models to that dataset. Before doing so I've done the following modifications on the dataset: df.train <- dplyr::select(df.train,-PassengerId,-Name...
https://stackoverflow.com/questions/40436298/why-do-i-get-a-rank-deficiency-in-the-qda
r, machine-learning, data-analysis
1,478,335,090
se_78090040
stackoverflow
DATA_SCIENCE
what&#39;s the result of dividing the max value by min value and then minus 1
what&#39;s the result of dividing the max value by min value and then minus 1 we have the following dataset this is just a sample 30 59.000000 63 75.873721 64 74.619113 the max value is 75.873721 and the min value is 59. the question was How much heavier the age group with the highest average weight than the age...
https://stackoverflow.com/questions/78090040/whats-the-result-of-dividing-the-max-value-by-min-value-and-then-minus-1
python, pandas, statistics, data-analysis
1,709,321,393
se_65668077
stackoverflow
DATA_SCIENCE
Is there a way to do SQL queries against MS Access but outside of the program?
Is there a way to do SQL queries against MS Access but outside of the program? I have a case where I want to make tool for people in my company to use. It's a simple tool to import log-type data into a database, that tool should sort data and do some operations on it (like calculate difference between time based on pr...
https://stackoverflow.com/questions/65668077/is-there-a-way-to-do-sql-queries-against-ms-access-but-outside-of-the-program
database, ms-access, data-analysis
1,610,372,909
se_78080370
stackoverflow
DATA_SCIENCE
How do I offset the value of a cell to another column?
How do I offset the value of a cell to another column? My goal is to drag over the value of a cell to the corresponding row in another column under a condition. I have the following table: Column1 Column2 35 null 27€ null 13 null If the cell in Column1 contains a "€", then that cell should be emptied and...
https://stackoverflow.com/questions/78080370/how-do-i-offset-the-value-of-a-cell-to-another-column
excel, powerquery, data-analysis, data-cleaning, m
1,709,200,446
se_78079000
stackoverflow
DATA_SCIENCE
Group pivot dataframe date columns to month and year
Group pivot dataframe date columns to month and year I have a pandas pivot dataframe. Below is the dataframe. This is my code: pivot = df.query('brand_name == "ishin"').pivot_table(index = "channel_name", columns = "order_date", ...
https://stackoverflow.com/questions/78079000/group-pivot-dataframe-date-columns-to-month-and-year
python, pandas, dataframe, pivot-table, data-analysis
1,709,183,748
se_75513161
stackoverflow
DATA_SCIENCE
How to remove the filtered items from Rankx function in power bi
How to remove the filtered items from Rankx function in power bi I have small table with Product Name and Amount. I am trying to create one rankx function which should ignore the filtered items from calculation. Data looks like below My Ranks measure :Rank = rankx(ALL('Table'[Product]),CALCULATE(SUM('Table'[Amount]))...
https://stackoverflow.com/questions/75513161/how-to-remove-the-filtered-items-from-rankx-function-in-power-bi
powerbi, dax, data-analysis, powerbi-desktop, measure
1,676,919,249
se_78048720
stackoverflow
DATA_SCIENCE
How to model Header/Detail in Star Schema where there are measures at both granularities, whilst preserving drill-through?
How to model Header/Detail in Star Schema where there are measures at both granularities, whilst preserving drill-through? My facts are Tickets (1m rows) and Ticket Actions (0.6m rows), with various dimensions (showing 2 here for simplicity) - some common to both, some unique, e.g. Action Type relates only to Ticket A...
https://stackoverflow.com/questions/78048720/how-to-model-header-detail-in-star-schema-where-there-are-measures-at-both-granu
powerbi, dax, data-analysis, powerbi-desktop, data-modeling
1,708,704,870
se_77150602
stackoverflow
DATA_SCIENCE
Read global parameters from with pandas from csv file
Read global parameters from with pandas from csv file I often use python pandas to analyse measurment data from a lab. For example if I have some "global" parameters "a = 5.2e-3" and "b = 3.21e-5" which are valid for the series of measurement, where the value y is measured in dependence of x, but may be different for ...
https://stackoverflow.com/questions/77150602/read-global-parameters-from-with-pandas-from-csv-file
python, pandas, data-analysis
1,695,302,031
se_462743
stackoverflow
DATA_SCIENCE
Unit testing...should it be used here?
Unit testing...should it be used here? Duplicate: https://stackoverflow.com/questions/135651/learning-unit-testing I'm trying to develop some software for my research group to analyze and plot experimental data. I would like to make it where it's pretty error free. Would this be a situation for unit testing? If ...
https://stackoverflow.com/questions/462743/unit-testing-should-it-be-used-here
unit-testing, data-analysis
1,232,479,838
se_78066151
stackoverflow
DATA_SCIENCE
Take the most recent value, which is not blank
Take the most recent value, which is not blank I have a task to create a column in a table visual in Power BI, which will always show the most recent value, regardless of what is selected in the date slicers. Consider this dataset: Site MonthYr KPI Value Alfa 12/1/2023 100 Alfa 1/1/2024 99.6 Alfa 2/1/2024 ...
https://stackoverflow.com/questions/78066151/take-the-most-recent-value-which-is-not-blank
powerbi, dax, data-analysis, powerbi-desktop, measure
1,709,023,367
se_78049797
stackoverflow
DATA_SCIENCE
Power BI Subtract 1 from column where date matches
Power BI Subtract 1 from column where date matches To give you an idea of what I am doing I have a Calander table I created, and I am breaking down the weeks in a month... not weeks by year. In these weeks in a given month that range from 1-6 weeks per month I am making any week at the beginning or end of the month th...
https://stackoverflow.com/questions/78049797/power-bi-subtract-1-from-column-where-date-matches
powerbi, dax, data-analysis, powerbi-desktop, calculated-columns
1,708,716,577
se_78057498
stackoverflow
DATA_SCIENCE
FILTER and SUMX in DAX
FILTER and SUMX in DAX I would like to add a filter option in the code below. How to get around this ? many thanks in advance. _RateMeasure = SUMX(myDF, myDF[Amount]*RELATED('Currency Conversion'[RateCol1])) what I am trying seems not filtering properly _RateMeasure = SUMX(FILTER(myDF, myDF[COL]...
https://stackoverflow.com/questions/78057498/filter-and-sumx-in-dax
powerbi, dax, data-analysis, powerbi-desktop, measure
1,708,891,334
se_78056559
stackoverflow
DATA_SCIENCE
How to analyze and connect rows in multiple csv files (python)
How to analyze and connect rows in multiple csv files (python) I have multiple csv files that are all of format: date, time, name1, name2, number1,number2,number3,number4,number5,number6,number7 What i want to do is get the max numbers1-7 by connecting rows from different files with a criteria that the date, time, nam...
https://stackoverflow.com/questions/78056559/how-to-analyze-and-connect-rows-in-multiple-csv-files-python
python, data-analysis
1,708,875,175
se_78049891
stackoverflow
DATA_SCIENCE
PowerPivot Data Model Causing Cartesian Product
PowerPivot Data Model Causing Cartesian Product Summary Using a two table PowerPivot data model, I'm not able to create a pivot table that has multiple rows filtered in the same way a single table does using the same columns. Details I have a simple two table data model: Table 1 - Employees Table 2 - Office When I ...
https://stackoverflow.com/questions/78049891/powerpivot-data-model-causing-cartesian-product
excel, pivot-table, powerquery, data-analysis, powerpivot
1,708,718,111
se_78043594
stackoverflow
DATA_SCIENCE
How to change number format in power editor?
How to change number format in power editor? A cell value is 858497.997359999 but what I see in power query is 858497. The Excel custom number format is _(* #,##0_);_(* (#,##0);_(* "-"??_);_(@_) How can i see the whole number in power query? Many thanks in advance.
https://stackoverflow.com/questions/78043594/how-to-change-number-format-in-power-editor
powerbi, powerquery, data-analysis, powerbi-desktop, m
1,708,630,324
se_78042638
stackoverflow
DATA_SCIENCE
How to account for interval-censored data in Kaplan-Meier analysis in R?
How to account for interval-censored data in Kaplan-Meier analysis in R? I have insects that got progressively colder in a cooling bath and were removed one at a time at temperatures ranging from 0 to -35. I made the column removal_temp the absolute value of removal temperature. This way it can function how time norma...
https://stackoverflow.com/questions/78042638/how-to-account-for-interval-censored-data-in-kaplan-meier-analysis-in-r
r, data-analysis, survival-analysis
1,708,619,665
se_77697942
stackoverflow
DATA_SCIENCE
How do I create rows in increments of 10 minutes between two timestamps, such that the end time of one row equals the start time of the next row?
How do I create rows in increments of 10 minutes between two timestamps, such that the end time of one row equals the start time of the next row? I have a dataset that has four columns, two of which are time stamps - "Start_time" and "End_time". The "Time_diff" column is the difference between start time and end time....
https://stackoverflow.com/questions/77697942/how-do-i-create-rows-in-increments-of-10-minutes-between-two-timestamps-such-th
python, pandas, time-series, data-analysis
1,703,161,488
se_78036543
stackoverflow
DATA_SCIENCE
Color code stores based off given criteria
Color code stores based off given criteria I have a table with the shortage numbers for 20,000 stores from 2020 – Present. I’d like to color code the top 200 stores with the highest shortage for each division(1-10) from 2020 – 2023 in red and the top for 2023 in Orange. The rest of the stores should show as normal. Wh...
https://stackoverflow.com/questions/78036543/color-code-stores-based-off-given-criteria
powerbi, data-analysis, background-color, measure
1,708,543,022
se_78029495
stackoverflow
DATA_SCIENCE
PostgreSQL / TimescaleDB percentile in partial mode
PostgreSQL / TimescaleDB percentile in partial mode Let's say I have a results table: result_id attr_id user_id value timestamp 1 1 1 100 2024-02-10 14:30:15.248087+00 2 2 1 111 2024-02-10 10:30:15.248087+00 3 1 1 122 2024-02-09 14:30:15.248087+00 4 2 1 162 2024-02-08 10:30:15.248087+00 5 1 2 119 2024-0...
https://stackoverflow.com/questions/78029495/postgresql-timescaledb-percentile-in-partial-mode
postgresql, statistics, data-analysis, timescaledb
1,708,452,312
se_78027913
stackoverflow
DATA_SCIENCE
How do I implement the &#39;FROM&#39; input in SQL to pull information from my project? Screenshot in description
How do I implement the &#39;FROM&#39; input in SQL to pull information from my project? Screenshot in description I'm taking a coursera course on Data Analytics and following along with the video but I'm not sure why Im receiving an error message or how the video is getting the 'tethers' option? I attached a screensho...
https://stackoverflow.com/questions/78027913/how-do-i-implement-the-from-input-in-sql-to-pull-information-from-my-project
sql, google-bigquery, data-analysis, data-cleaning
1,708,437,389
se_78025258
stackoverflow
DATA_SCIENCE
How to do a Sheet Swap in Quicksight?
How to do a Sheet Swap in Quicksight? I want to swap visualization of the same values from a table to a pie chart or a bar graph. While this is possible in tableau I am not sure if it is in Quicksight. I am new to Quicksight so any help on how to do it would be great ! I know it would be done using parameters and calc...
https://stackoverflow.com/questions/78025258/how-to-do-a-sheet-swap-in-quicksight
amazon-web-services, data-analysis, amazon-quicksight, tableau-desktop, quicksight-embedding
1,708,411,821
se_78023061
stackoverflow
DATA_SCIENCE
Filter not applying on dataframe
Filter not applying on dataframe My filter for weight_class wont apply, I've tried filtering specifically for weight_class==10924 and then converting dtype for 'weight_class', I've also stripped the columns but still get both Rice products with weight class not filtered # Fill missing values with zeros in the original...
https://stackoverflow.com/questions/78023061/filter-not-applying-on-dataframe
pandas, dataframe, data-analysis
1,708,370,553
se_78013128
stackoverflow
DATA_SCIENCE
Counting Unique Items in a Single Category Using SAS SQL
Counting Unique Items in a Single Category Using SAS SQL I'm working on a data analysis problem using SAS, where I have a dataset consisting of various items that belong to different categories. Each item can belong to multiple categories, but I'm interested in counting the number of items that are exclusively associa...
https://stackoverflow.com/questions/78013128/counting-unique-items-in-a-single-category-using-sas-sql
sql, sas, aggregate-functions, data-analysis
1,708,192,409
se_78014268
stackoverflow
DATA_SCIENCE
Convert the below Tableau calculated field to SQL
Convert the below Tableau calculated field to SQL I am trying to convert the below Tableau calculated field to SQL: Calculated field #1: { FIXED SM, Date, DC: MIN( IF svb = 'S' THEN IF sg = 'X8' AND p = 'N' THEN s * 2 ELSE s END END)} Calculated field #2: s is count distinct of serials How do I write t...
https://stackoverflow.com/questions/78014268/convert-the-below-tableau-calculated-field-to-sql
sql, data-analysis, tableau-desktop
1,708,219,682
se_78000822
stackoverflow
DATA_SCIENCE
How do I count unique combinations for each element in Pandas?
How do I count unique combinations for each element in Pandas? I have a dataset with two columns - student_login and reviewer_login. A person can be both a student and an reviewer. We need to find a unique number of pairs, regardless of the person's role. For example, the pairs login_1, login_2 and login_2, login_1 mu...
https://stackoverflow.com/questions/78000822/how-do-i-count-unique-combinations-for-each-element-in-pandas
python, pandas, data-analysis
1,708,000,611
se_77997986
stackoverflow
DATA_SCIENCE
Need to create RLS in Powerbi, for different managers with different permission level
Need to create RLS in Powerbi, for different managers with different permission level I am currently trying to create an RLS where regional manager can only access data by the region filter and country manager can only access data by the country filter. I have tried creating roles on PowerBI desktop but every time i s...
https://stackoverflow.com/questions/77997986/need-to-create-rls-in-powerbi-for-different-managers-with-different-permission
powerbi, data-analysis, powerbi-desktop
1,707,958,818
se_77989730
stackoverflow
DATA_SCIENCE
For each client, get in every row, a column containing first purchase date
For each client, get in every row, a column containing first purchase date I am using Power BI (I can use only DAX). Starting from this table: Client Purchase Date ClientA 01/01/2023 ClientA 01/02/2023 ClientB 01/03/2023 ClientB 01/02/2023 I would like to create a new column, called First Purchase Date...
https://stackoverflow.com/questions/77989730/for-each-client-get-in-every-row-a-column-containing-first-purchase-date
powerbi, dax, data-analysis, powerbi-desktop, calculated-columns
1,707,844,364
se_70417554
stackoverflow
DATA_SCIENCE
pyspark crosstab with percentages
pyspark crosstab with percentages I have a DataFrame after applying crosstab in the pyspark, Example Below id A B C cssdsd 0 1 0 sdsdsd 1 1 1 ssdssd 1 0 0 xxxxxx 0 0 0 Instead of 0,1's I want to get the percentages of the rows. I can be easily get that with the pandas using the crosstab function pd.c...
https://stackoverflow.com/questions/70417554/pyspark-crosstab-with-percentages
python, pandas, pyspark, data-analysis, crosstab
1,639,976,591
se_77988517
stackoverflow
DATA_SCIENCE
Python &quot;SyntaxError: EOL while scanning string literal&quot; error while using pandas DataFrame.query() method
Python &quot;SyntaxError: EOL while scanning string literal&quot; error while using pandas DataFrame.query() method I'm sorry it's probably a very silly question but I can't resolve the problem on my own. I need to write a very large condition in a df.query() method to filter my data. But for some reason I have an err...
https://stackoverflow.com/questions/77988517/python-syntaxerror-eol-while-scanning-string-literal-error-while-using-pandas
python, pandas, string, data-analysis, string-literals
1,707,832,958
se_77987968
stackoverflow
DATA_SCIENCE
Distribute COUNT for Types seperated by /
Distribute COUNT for Types seperated by / I have the following table : OP Type OP ID Client vs Client 125 Client vs N 5636 B vs N Client 54 Client vs Client/B vs N Client 51 Client vs Client 4 Client vs Client/B vs N Client 5...
https://stackoverflow.com/questions/77987968/distribute-count-for-types-seperated-by
powerbi, dax, data-analysis, powerbi-desktop, measure
1,707,827,873
se_77987688
stackoverflow
DATA_SCIENCE
How to count number of items without ignoring the doubles in Power BI?
How to count number of items without ignoring the doubles in Power BI? I have to write a measure that counts the number of bills. Each person gets a bill for every sport they do. My measure partially works. It does the count of bills, but it is a distinct value. If two (or more) people have the same sport, the doubled...
https://stackoverflow.com/questions/77987688/how-to-count-number-of-items-without-ignoring-the-doubles-in-power-bi
powerbi, dax, powerquery, data-analysis, powerbi-desktop
1,707,825,003
se_28093365
stackoverflow
DATA_SCIENCE
Is a column in pandas.DF() monotonically increasing?
Is a column in pandas.DF() monotonically increasing? I can check if the index of a pandas.DataFrame() is monotonically increasing by using is_monotonic method. However, I would like to check if one of the column value is strictly increasing in value(float/integer) ? In [13]: my_df = pd.DataFrame([1,2,3,5,7,6,9]) In ...
https://stackoverflow.com/questions/28093365/is-a-column-in-pandas-df-monotonically-increasing
python, pandas, data-analysis
1,421,942,813
se_77977454
stackoverflow
DATA_SCIENCE
Power BI: Recreating dashboard by grouping partial information into a dropdown
Power BI: Recreating dashboard by grouping partial information into a dropdown I have a dashboard in Power BI that looks like this: Name Specified Activity Level Activity Group Anna Basketball 2 Sports Anna Volleyball 3 Sports Julie Basketball 1 Sports Julie Tennis 2 Sports Julie Guitar 4 Instrument J...
https://stackoverflow.com/questions/77977454/power-bi-recreating-dashboard-by-grouping-partial-information-into-a-dropdown
powerbi, powerquery, data-analysis, powerbi-desktop
1,707,668,138
se_77975033
stackoverflow
DATA_SCIENCE
Selenium identify and click Show description button
Selenium identify and click Show description button Using selenium I am trying to export the full job description of a job listing on Google jobs but I can't find the element that expands the job description. The show description button` Link to the web page My code from selenium import webdriver from selenium.webdriv...
https://stackoverflow.com/questions/77975033/selenium-identify-and-click-show-description-button
python, google-chrome, selenium-webdriver, web-scraping, data-analysis
1,707,606,446
se_77963066
stackoverflow
DATA_SCIENCE
How do I count categorical values from a dataset and transform the summation into a new dataset?
How do I count categorical values from a dataset and transform the summation into a new dataset? I have a dataset that tracks categorical (Yes/No) responses to a questionnaire formatted like this: Client_Id Question_1 Question_2 Question_3 Question_4 1000 No No Yes Yes 1001 Yes Yes Yes No 1002 No Yes Yes Ye...
https://stackoverflow.com/questions/77963066/how-do-i-count-categorical-values-from-a-dataset-and-transform-the-summation-int
python, pandas, dataframe, data-structures, data-analysis
1,707,407,986
se_77911843
stackoverflow
DATA_SCIENCE
Not getting the expected answer from the code I wrote for probability assignment
Not getting the expected answer from the code I wrote for probability assignment Here is the problem statement => In a game involving the toss of a fair coin, players gain $5 for heads and lose $3 for tails. After 8 tosses, calculate the probability of achieving a net gain of exactly $20. I have to solve the question ...
https://stackoverflow.com/questions/77911843/not-getting-the-expected-answer-from-the-code-i-wrote-for-probability-assignment
python-3.x, data-analysis, probability
1,706,690,054
se_77947191
stackoverflow
DATA_SCIENCE
Count how many days between 2 measures is contained within filtered dates
Count how many days between 2 measures is contained within filtered dates I have created two measures minCheck and maxCheck, one to check the minimum date a campaign started and another to check the maximum date of the campaign. I also have a date slicer from the calendar table, what I want to do is count how many day...
https://stackoverflow.com/questions/77947191/count-how-many-days-between-2-measures-is-contained-within-filtered-dates
powerbi, dax, data-analysis, powerbi-desktop, measure
1,707,217,435
se_77942688
stackoverflow
DATA_SCIENCE
Create a column based on multiple columns for certain rows Power BI
Create a column based on multiple columns for certain rows Power BI I have the next table in Power BI Ubicación.Name Fecha_entrega__c Sector_entrante__c PAD FP.c-1050 5/31/2021 Perforación PAD LAnch.x-2(h) 4/30/2022 Terminación PAD LAnch.x-2(h) 2/28/2022 Perforación PAD LAnch.x-2(h) 7/13/2022 Well Testin...
https://stackoverflow.com/questions/77942688/create-a-column-based-on-multiple-columns-for-certain-rows-power-bi
powerbi, dax, data-analysis, powerbi-desktop, calculated-columns
1,707,152,437
se_77823619
stackoverflow
DATA_SCIENCE
Why is the data on my updated line chart empty and not producing any output?
Why is the data on my updated line chart empty and not producing any output? To begin with, I create a line chart with the following code: %matplotlib inline The following cell, I import the matplotlib dependency: # Import dependencies. import matplotlib.pyplot as plt The following cell will contain data involving t...
https://stackoverflow.com/questions/77823619/why-is-the-data-on-my-updated-line-chart-empty-and-not-producing-any-output
python, matplotlib, data-analysis
1,705,383,105
se_77929405
stackoverflow
DATA_SCIENCE
Conditional Incremental in sorted data in Power Query
Conditional Incremental in sorted data in Power Query My dataset The dataset is in Excel. I have a column with unique IDs, some data that is out of scope of this question, and an "if" condition which returns true or false based those data. The first true/false is Null because it evaluates the data from the previous ro...
https://stackoverflow.com/questions/77929405/conditional-incremental-in-sorted-data-in-power-query
excel, powerbi, powerquery, data-analysis, m
1,706,901,852
se_77926467
stackoverflow
DATA_SCIENCE
Vega lite grouped bar chart for time series
Vega lite grouped bar chart for time series I'm trying to create a bar grouped bar chart for time series data. There are 2 series, sampled at the same interval. The stacked bar chart looks like this: Code: Vega lite editor code Now, instead of stacking them, I like to create a grouped bar chart as described in the do...
https://stackoverflow.com/questions/77926467/vega-lite-grouped-bar-chart-for-time-series
json, visualization, data-analysis, vega-lite, vega
1,706,871,317
se_77923862
stackoverflow
DATA_SCIENCE
Vega chart count aggregation displays nothing if data values is empty array, how to fix this?
Vega chart count aggregation displays nothing if data values is empty array, how to fix this? I have this small Vega chart spec which should display the count of the FieldToCount: { "$schema": "https://vega.github.io/schema/vega-lite/v4.json", "encoding": { "text": { "aggregate": "count", "field": ...
https://stackoverflow.com/questions/77923862/vega-chart-count-aggregation-displays-nothing-if-data-values-is-empty-array-how
json, visualization, data-analysis, vega-lite, vega
1,706,828,764
se_77921382
stackoverflow
DATA_SCIENCE
How can I reduce the amount of data processed by my query on GoogleBigQuery?
How can I reduce the amount of data processed by my query on GoogleBigQuery? I am (or at least trying to) conduct a sociological quantitative research through data analysis on the impact of the war in Ukraine on the public discourse regarding refugees. In order to do so, I've decided to get the data from the GDELT pro...
https://stackoverflow.com/questions/77921382/how-can-i-reduce-the-amount-of-data-processed-by-my-query-on-googlebigquery
sql, google-bigquery, data-analysis, data-cleaning, gdelt
1,706,800,938