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_77916364
stackoverflow
DATA_SCIENCE
How to select multiple columns in power Bi using slicer
How to select multiple columns in power Bi using slicer enter image description hereI have a table with the following column headers: Row ID, Order Priority, Discount, Unit Price, Shipping Cost, Customer ID, Customer Name, Ship Mode, Customer Segment, Product Category, Product Sub-Category, Product Conta...
https://stackoverflow.com/questions/77916364/how-to-select-multiple-columns-in-power-bi-using-slicer
powerbi, dax, data-analysis
1,706,734,573
se_77907716
stackoverflow
DATA_SCIENCE
Getting Output as FALSE in python function
Getting Output as FALSE in python function This is my function . I am passing close data to it. I am getting all FALSE value in Support Break,Resistance Break,Bull Wick,Bear Wick def calculate_support_resistance_slope(close_data, left_bars=15, right_bars=15, volume_thresh=20): # Calculate pivots high_use_pivot...
https://stackoverflow.com/questions/77907716/getting-output-as-false-in-python-function
python, pandas, dataframe, numpy, data-analysis
1,706,630,371
se_77903631
stackoverflow
DATA_SCIENCE
Wondering what statistical test(s) to run on my particular geospatial data?
Wondering what statistical test(s) to run on my particular geospatial data? I have a coding project I'm working on for school where you get to pick your topic and data etc. The data I picked seemed simple enough at first (and I liked it because the plotting itself was a nice challenge) - I wanted to see if there was a...
https://stackoverflow.com/questions/77903631/wondering-what-statistical-tests-to-run-on-my-particular-geospatial-data
python, statistics, data-analysis, probability
1,706,582,108
se_77904831
stackoverflow
DATA_SCIENCE
Unable to Use RELATED in a measure
Unable to Use RELATED in a measure This is a peculiar issue I'm facing - Lets say I've a following Table A - UniqueID User A1 Adam A2 Dim A3 Jo A4 Bill and Table B - UniqueID RelatedID Type B1 A2 Email B2 Email B3 A3 Note B4 C5 App They have an Active Relationship- (Table A[UniqueI...
https://stackoverflow.com/questions/77904831/unable-to-use-related-in-a-measure
powerbi, dax, data-analysis, powerbi-desktop, measure
1,706,603,062
se_77899899
stackoverflow
DATA_SCIENCE
Best way to match strings from different systems
Best way to match strings from different systems Suppose that I have a list of strings like this (the real dataset is far larger and contains other data too): List<string> modelNames = [ "XC60 Momentum Standard T6", "XC60 Inscription Standard T6", "XC60 R designStandard T6", "XC60 T...
https://stackoverflow.com/questions/77899899/best-way-to-match-strings-from-different-systems
c#, string, data-analysis, fuzzy-search, fuzzy-comparison
1,706,533,173
se_74491542
stackoverflow
DATA_SCIENCE
expected token ‘end of print statement’, got ‘Size’
expected token ‘end of print statement’, got ‘Size’ I am trying to automate population of word template using python. The library I am using is docxtpl to help me do that. I am getting this expected token ‘end of print statement’ got ‘Size’ error and don’t know where to look for help. It’s some sort of jinja2 error wh...
https://stackoverflow.com/questions/74491542/expected-token-end-of-print-statement-got-size
python, pandas, jinja2, data-analysis, docxtpl
1,668,783,421
se_42137494
stackoverflow
DATA_SCIENCE
How to parse .trace(profiling android application) files into sql format
How to parse .trace(profiling android application) files into sql format I am new at android development. I wanted to profile the performance of my application. So I have generated a log file(.trace) by adding the following code - `// start tracing to "/sdcard/calc.trace" Debug.startMethodTracing("calc"); // ... // ...
https://stackoverflow.com/questions/42137494/how-to-parse-traceprofiling-android-application-files-into-sql-format
android, sql, database, trace, data-analysis
1,486,645,358
se_77896856
stackoverflow
DATA_SCIENCE
Label the exponential value of a data point on a secondary y axis in Matplotlib
Label the exponential value of a data point on a secondary y axis in Matplotlib I am trying to recreate something similar to the following graph Time-frequency graph with two y-axis There are two y-axis, the left one shows frequency to the -8/3 power, the right one labels the original frequency with uneven distributi...
https://stackoverflow.com/questions/77896856/label-the-exponential-value-of-a-data-point-on-a-secondary-y-axis-in-matplotlib
python, matplotlib, plot, data-analysis
1,706,486,372
se_77879396
stackoverflow
DATA_SCIENCE
Seaborn warning message
Seaborn warning message When I'm using the parameter hue in any plot that receives it, my notebook keeps showing a warning that poluates my visualizations. Take the code for example: category_labels = ["Category A", "Category B"] data = np.concatenate([np.random.randn(500), np.random.randn(500) + 3]) hue_labels = np.a...
https://stackoverflow.com/questions/77879396/seaborn-warning-message
python-3.x, matplotlib, seaborn, data-analysis
1,706,180,403
se_77893213
stackoverflow
DATA_SCIENCE
How to print from a dictionary?
How to print from a dictionary? I have a dictionary: courses = { "Computer Science": [ "Introduction to Programming", "Data Structures and Algorithms", "Operating Systems", ], "Mathematics": [ "Calculus I", "Linear Algebra", "Differential Equations", ], ...
https://stackoverflow.com/questions/77893213/how-to-print-from-a-dictionary
python-3.x, pandas, csv, beautifulsoup, data-analysis
1,706,399,096
se_65671626
stackoverflow
DATA_SCIENCE
Selecting first row of each index in multi indexing pandas DataFrame
Selecting first row of each index in multi indexing pandas DataFrame choose every first row of each index of multiindexing pandas dataframe. grouped = ecommerce[["category_id", "brand", "price"]].groupby(by=["category_id", "brand"]).mean() grouped_sort = grouped.sort_values(by=["category_id", "price"], ascending=False...
https://stackoverflow.com/questions/65671626/selecting-first-row-of-each-index-in-multi-indexing-pandas-dataframe
python, pandas, data-analysis
1,610,385,676
se_77887533
stackoverflow
DATA_SCIENCE
how can replace underscore with minus sign in an entire column?
how can replace underscore with minus sign in an entire column? the picture below is my list where i want to edit two cloumns for future analysis in data cleaning process: "start_lng" and "end_lng" columns' content are dtype('O') while running the code Bike_share_data["start_lng"].dtypes Now i want to replace undersc...
https://stackoverflow.com/questions/77887533/how-can-replace-underscore-with-minus-sign-in-an-entire-column
python, pandas, dataframe, list, data-analysis
1,706,285,166
se_77882491
stackoverflow
DATA_SCIENCE
Create table by combination two another table
Create table by combination two another table I have two tables TAB1 Ball Car TAB2 Jan Feb How join then to get: TAB3 Ball Jan Car Jan Ball Feb Carl Feb
https://stackoverflow.com/questions/77882491/create-table-by-combination-two-another-table
powerbi, powerquery, data-analysis, powerbi-desktop, m
1,706,211,141
se_77821060
stackoverflow
DATA_SCIENCE
Order of summation in custom fields in Looker Studio
Order of summation in custom fields in Looker Studio I work as a digital analyst for an ecommerce company. We use Google Analytics (UA) to record data. There was a tracking bug whereby for any given unique purchase, the metric Product Revenue was over-recorded. Specifically, the Product Revenue for a unique purchase w...
https://stackoverflow.com/questions/77821060/order-of-summation-in-custom-fields-in-looker-studio
google-analytics, data-analysis, looker-studio, web-analytics
1,705,335,658
se_77880322
stackoverflow
DATA_SCIENCE
Excel: a matrix table with 1 and 0
Excel: a matrix table with 1 and 0 If this is my data: Name City Visited Anna LA Leo New York Leo LA how to create a table (preferably PIVOT table) like this in Excel: New York LA Anna 0 1 Leo 1 1 So the result needs to be something like a matrix table where 1 means a person visited the ...
https://stackoverflow.com/questions/77880322/excel-a-matrix-table-with-1-and-0
excel, powerquery, data-analysis
1,706,189,214
se_77875177
stackoverflow
DATA_SCIENCE
Fill a data table by matching column values from onother table (lookup table), and interpolate on another variable
Fill a data table by matching column values from onother table (lookup table), and interpolate on another variable I have a very long table with data in R, with some key columns and a lookup table with the same key columns and some extra variables. I want to select from the lookup table, a subset based on the same key...
https://stackoverflow.com/questions/77875177/fill-a-data-table-by-matching-column-values-from-onother-table-lookup-table-a
r, dplyr, data.table, data-analysis, exploratory-data-analysis
1,706,118,144
se_77878616
stackoverflow
DATA_SCIENCE
power bi - calculate from 2 tables, with date comparison at the same time
power bi - calculate from 2 tables, with date comparison at the same time I have 2 tables (csv data below): price table : And a fact table : Here is my question, Since the price of product can fluctuate during the year, how can I find the specific price for the day in my second table? csv data here: 1 PRODUCT;PRICE;...
https://stackoverflow.com/questions/77878616/power-bi-calculate-from-2-tables-with-date-comparison-at-the-same-time
date, powerbi, dax, powerquery, data-analysis
1,706,173,054
se_77873233
stackoverflow
DATA_SCIENCE
Reordering Columns in a Power BI Matrix
Reordering Columns in a Power BI Matrix I am creating a matrix in power BI, where I want to reorder the column to show the latest week data as this gets updated every week. Currently this is the way it shows in Power BI: Cuurent Layout I want this to show as below, latest week 1st: Expected layout How can I achieve th...
https://stackoverflow.com/questions/77873233/reordering-columns-in-a-power-bi-matrix
powerbi, visualization, analytics, data-analysis, powerbi-desktop
1,706,100,990
se_77569738
stackoverflow
DATA_SCIENCE
Reading mf4 data through asammdf and getting unexpected data structure
Reading mf4 data through asammdf and getting unexpected data structure I am relatively new to python and am trying to do some data post-processing through it. I am using the asammdf library to read an mf4 file. I can perfectly open it with NI DIAdem, therefore I know that the data is in there. Unfortunately, in Python...
https://stackoverflow.com/questions/77569738/reading-mf4-data-through-asammdf-and-getting-unexpected-data-structure
python, data-analysis, mdf, post-processing, asammdf
1,701,248,087
se_77872022
stackoverflow
DATA_SCIENCE
Power BI report adding thousands separator in two of the columns
Power BI report adding thousands separator in two of the columns I am a complete newbie in PowerBI, so excuse me in advance if this is a stupid question. I have two columns which I would like to add thousands separator to their values. I would like after the transformation for it to become 29,140 This is the panel I ...
https://stackoverflow.com/questions/77872022/power-bi-report-adding-thousands-separator-in-two-of-the-columns
powerbi, data-analysis, powerbi-desktop, powerbi-datasource, power-bi-report-server
1,706,090,237
se_77698881
stackoverflow
DATA_SCIENCE
KNIME Concatenate node with List Files/Folders loop?
KNIME Concatenate node with List Files/Folders loop? Knime. I know how to use "Concatenate" node with multiple Excel readers, so that all spreadsheets are combined together, even if their structure is different. In case of having many such spreadsheet, manual definition of each Excel reader is painful and I would like...
https://stackoverflow.com/questions/77698881/knime-concatenate-node-with-list-files-folders-loop
excel, concatenation, data-analysis, data-mining, knime
1,703,171,634
se_77868334
stackoverflow
DATA_SCIENCE
Related() with 2 differents Tables
Related() with 2 differents Tables _Hi, I have two simple separate tables connected with a one-to-many relation. When I try to add a calculated column to the fact table with a related DAX formula, the result is all blank. However, when I create a reference table from the Facts one, an do the same, then it works. I can...
https://stackoverflow.com/questions/77868334/related-with-2-differents-tables
powerbi, dax, data-analysis, powerbi-desktop, data-cleaning
1,706,032,323
se_77868138
stackoverflow
DATA_SCIENCE
Filter table to show only records which apply to all conditions
Filter table to show only records which apply to all conditions I have a table and I want to return all the products which have not been classified as RANGED during that campaign period. So if I filtered on Campaign A it will only return the products that have never ever been ranged so it will only return Grapes. So i...
https://stackoverflow.com/questions/77868138/filter-table-to-show-only-records-which-apply-to-all-conditions
powerbi, dax, data-analysis, powerbi-desktop, measure
1,706,030,329
se_77864953
stackoverflow
DATA_SCIENCE
How to add a column or change data in each group after using group by in Pandas?
How to add a column or change data in each group after using group by in Pandas? I am now using Pandas to handle some data. After I used group by in pandas, the simplified DataFrame's format is [MMSI(Vessel_ID), BaseTime, Location, Speed, Course,...]. I use for MMSI, group in grouped_df: print(MMSI) print(grou...
https://stackoverflow.com/questions/77864953/how-to-add-a-column-or-change-data-in-each-group-after-using-group-by-in-pandas
python, pandas, group-by, data-analysis
1,705,999,396
se_77859954
stackoverflow
DATA_SCIENCE
Loop within predefined window in Pandas
Loop within predefined window in Pandas I have a dataset which is divided in windows: data_new_pd = ( data_pd .filter(col('x') > 1) .filter(col('x') < 21) .withColumn('row', row_number().over(Window.partitionBy('a', 'b').orderBy('timestamp'))) .filter(col('row') == 1) .toPandas() ) The partioned windo...
https://stackoverflow.com/questions/77859954/loop-within-predefined-window-in-pandas
pandas, for-loop, data-analysis
1,705,927,482
se_77862408
stackoverflow
DATA_SCIENCE
Excel: Transposing the table when having group and subgroup
Excel: Transposing the table when having group and subgroup How to transpose this table in Excel? Columns should be called with the Names (Sophia, Anna) that represent the group and Years that represent the subgroup. Rows should be called like the fruits they represent. The fact that I have a group and a subgroup make...
https://stackoverflow.com/questions/77862408/excel-transposing-the-table-when-having-group-and-subgroup
excel, powerquery, analytics, data-analysis
1,705,953,029
se_77858550
stackoverflow
DATA_SCIENCE
How to pivot a table in excel from long to wide
How to pivot a table in excel from long to wide I have the following table that I'd like to pivot from a "long" form to a wide form. Each patient can have several procedures (procedure_code). In my existing table, a patient with multiple procedures has multiple records in the table patient_no,FirstName,procedure_code ...
https://stackoverflow.com/questions/77858550/how-to-pivot-a-table-in-excel-from-long-to-wide
excel, powerquery, data-analysis, data-cleaning, m
1,705,912,693
se_77853321
stackoverflow
DATA_SCIENCE
How to make a Secondary plot based on bins in a Histogram
How to make a Secondary plot based on bins in a Histogram I have a column called val_a in my dataframe. I make a histogram plot of this variable. I also have a column called row_accuracy and I am trying to make a boxplot of the row_accuracy values as a function of the val_a bins (To be concrete, in the example below, ...
https://stackoverflow.com/questions/77853321/how-to-make-a-secondary-plot-based-on-bins-in-a-histogram
python, pandas, matplotlib, data-analysis
1,705,799,955
se_77850234
stackoverflow
DATA_SCIENCE
How to split a DataFrame into separate groups based on a Value(Difference Value of Time)
How to split a DataFrame into separate groups based on a Value(Difference Value of Time) I'm now using Pandas in Python to handle some data. Simplified DataFrame is [ID, TimeDiff] and some other not-important columns. For example: 73 1.166667 74 1.166667 75 2.183333 76 3.466667 77 2.666667 78 Na Tim...
https://stackoverflow.com/questions/77850234/how-to-split-a-dataframe-into-separate-groups-based-on-a-valuedifference-value
python, pandas, split, slice, data-analysis
1,705,737,789
se_77849577
stackoverflow
DATA_SCIENCE
trying to use a combination of countifs to determine number of transactions per customer in excel
trying to use a combination of countifs to determine number of transactions per customer in excel So I have store transaction data including one column for customer ID and one for transaction date. I am trying to figure out how to count the number of transactions for each customer ID based on transaction date. There a...
https://stackoverflow.com/questions/77849577/trying-to-use-a-combination-of-countifs-to-determine-number-of-transactions-per
excel-formula, data-analysis
1,705,715,276
se_77839151
stackoverflow
DATA_SCIENCE
power bi line graph with x and y axes crossing at zero
power bi line graph with x and y axes crossing at zero I've got this dataset: Which produces a line graph like this: I want the x and y axes to cross in the middle like this (excuse the shaky lines): I can't see an option to do this with the power bi standard line chart (power bi version 2.123.684.0). Is there eith...
https://stackoverflow.com/questions/77839151/power-bi-line-graph-with-x-and-y-axes-crossing-at-zero
powerbi, visualization, data-analysis, powerbi-desktop, linechart
1,705,578,625
se_77835737
stackoverflow
DATA_SCIENCE
How to get the last value in a table in Power BI using DAX
How to get the last value in a table in Power BI using DAX I've spent way too much time trying to figure this out, and even though I looked at several sites, I couldn't get this to work, and I know it's probably dead simple. Using Power BI Desktop (September 2023), I'm trying to get a value from the last row of a tabl...
https://stackoverflow.com/questions/77835737/how-to-get-the-last-value-in-a-table-in-power-bi-using-dax
powerbi, dax, data-analysis, powerbi-desktop, measure
1,705,528,527
se_77833543
stackoverflow
DATA_SCIENCE
Initial table formatting for multiple tables in Power BI simultaneously?
Initial table formatting for multiple tables in Power BI simultaneously? In Power BI I imported multiple same type tables (≈ 50 tables from different sources). For example 10 tables from one source, other 10 tables from another source. So on.. For each of tables (Ast10, Ast11, Ast12....and so on) I need to do same i...
https://stackoverflow.com/questions/77833543/initial-table-formatting-for-multiple-tables-in-power-bi-simultaneously
powerbi, powerquery, data-analysis, powerbi-desktop, m
1,705,504,538
se_77826151
stackoverflow
DATA_SCIENCE
Plotting 3D Surface Graph
Plotting 3D Surface Graph I'm facing an issue while trying to generate a 3D surface plot in MATLAB using the surf function. The error message I'm encountering is "Z must be a matrix, not a scalar or vector." The MATLAB script involves loading data from a MAT file. Within this MAT file is a list of 1x2000 designs, all ...
https://stackoverflow.com/questions/77826151/plotting-3d-surface-graph
matlab, matrix, 3d, visualization, data-analysis
1,705,412,334
se_77834586
stackoverflow
DATA_SCIENCE
Power BI DAX Not getting correct results when counting rows with FILTER and USERELATIONSHIP
Power BI DAX Not getting correct results when counting rows with FILTER and USERELATIONSHIP I have a simple data set with a Calendar table and an Interviews table. The interviews table has the following columns: CreatedOn, ClosedOn, Region, Division, Language and Index. The relationship between the two tables is estab...
https://stackoverflow.com/questions/77834586/power-bi-dax-not-getting-correct-results-when-counting-rows-with-filter-and-user
powerbi, dax, data-analysis, powerbi-desktop, measure
1,705,514,385
se_77832303
stackoverflow
DATA_SCIENCE
Reference a Column in a Table Variable in Function
Reference a Column in a Table Variable in Function I'm Trying to learn PowerBI by designing a Stock Portfolio Analysis App. Here's the sample data of Table - Tradebook_1 Symbol ISIN Trade Date Exchange Segment Series Trade Type Auction Quantity Price Trade ID Order ID Order Execution Time CurrentPrice IRFC ...
https://stackoverflow.com/questions/77832303/reference-a-column-in-a-table-variable-in-function
powerbi, dax, data-analysis, powerbi-desktop, measure
1,705,493,151
se_74656271
stackoverflow
DATA_SCIENCE
What does continuous and categorical type options on the x-axis format mean?
What does continuous and categorical type options on the x-axis format mean? On the x-axis format setting I can choose between continuous and categorical. What does this mean? Can I have an example.
https://stackoverflow.com/questions/74656271/what-does-continuous-and-categorical-type-options-on-the-x-axis-format-mean
powerbi, visualization, data-analysis, powerbi-desktop
1,669,986,359
se_77826498
stackoverflow
DATA_SCIENCE
Show the text value of a column based on the max of another
Show the text value of a column based on the max of another I have a dataset where each entry is a book register. One of the columns is the title and, among others, there is a column for the publishing year. I want to create a measure/card that shows the name of the newest and oldest. I've used: Oldest = VAR old = MI...
https://stackoverflow.com/questions/77826498/show-the-text-value-of-a-column-based-on-the-max-of-another
powerbi, dax, data-analysis, powerbi-desktop, measure
1,705,415,455
se_77822024
stackoverflow
DATA_SCIENCE
How I can get the result of a price in web-scraping?
How I can get the result of a price in web-scraping? I am trying to do a simple bot of web-scraping on Python to show my girlfriend when her favorite sneakers get on sale, I have seen many videos and tried a lot of things, the Title and other information about the sneaker is working, but the always results as None, I ...
https://stackoverflow.com/questions/77822024/how-i-can-get-the-result-of-a-price-in-web-scraping
python, web-scraping, beautifulsoup, python-requests, data-analysis
1,705,347,904
se_77786943
stackoverflow
DATA_SCIENCE
data analysis of java bytecode
data analysis of java bytecode I am working on a java bytecode analyse project, which writes in c The current stage is to write a stack simulator to simulate the state of class files being executed in the jvm virtual machine. After processing the basic block of each method, and creating the control flow graph, I found...
https://stackoverflow.com/questions/77786943/data-analysis-of-java-bytecode
jvm, data-analysis, bytecode
1,704,804,914
se_77804956
stackoverflow
DATA_SCIENCE
How to sum overlapping data ranges with INDEX(MATCH()) in Google Sheets?
How to sum overlapping data ranges with INDEX(MATCH()) in Google Sheets? In summary, this formula is checking multiple conditions to determine the appropriate depreciation value based on the year, ISO week number, and specified data ranges. I am getting stuck with my formula, which is almost giving me the desired outp...
https://stackoverflow.com/questions/77804956/how-to-sum-overlapping-data-ranges-with-indexmatch-in-google-sheets
google-sheets, google-sheets-formula, data-analysis
1,705,044,049
se_77808915
stackoverflow
DATA_SCIENCE
Multiple histograms for each value in column with graph object using Plotly
Multiple histograms for each value in column with graph object using Plotly I want to make a multiple histogram using the make_subplot with multiples histogram inside. So, this is what I want to do: fig = px.histogram(df, x="% INVESTIMENTO",color='Cluster') fig.show() But I want to do using make_subplot. I know that...
https://stackoverflow.com/questions/77808915/multiple-histograms-for-each-value-in-column-with-graph-object-using-plotly
python, python-3.x, data-analysis, plotly
1,705,087,949
se_77806907
stackoverflow
DATA_SCIENCE
Power Query: Web.Content request fails with dynamic property values
Power Query: Web.Content request fails with dynamic property values I am reading data from a REST API using Power Query. this is my request: let url = "https://example", token = "MyToken", options = [Headers=[Authorization="Bearer " & token]], contents = Web.Contents(url, options) in contents I ha...
https://stackoverflow.com/questions/77806907/power-query-web-content-request-fails-with-dynamic-property-values
excel, powerquery, data-analysis, data-cleaning, m
1,705,066,117
se_77799703
stackoverflow
DATA_SCIENCE
PowerBI Power automate error while adding the refresh button
PowerBI Power automate error while adding the refresh button Hi I am trying to add power automate visual in my PowerBi dashboard to create a refresh button for end user but it is showing me the error, can anyone help me with this? FYI: PowerBi Version: latest December 2023enter image description here I want to create ...
https://stackoverflow.com/questions/77799703/powerbi-power-automate-error-while-adding-the-refresh-button
database, powerbi, data-analysis, power-automate
1,704,972,627
se_77795788
stackoverflow
DATA_SCIENCE
Visualize Two Measures coming from Different tables into a single chart
Visualize Two Measures coming from Different tables into a single chart to learn PowerBI I sought to create a Stock Market App that'll help me monitor my Portfolio. PBIX File - Here With some great help from David and Sam! I'm making some progress but the thing is currently I've two tables one with Benchmark data - Ni...
https://stackoverflow.com/questions/77795788/visualize-two-measures-coming-from-different-tables-into-a-single-chart
powerbi, dax, data-analysis, powerbi-desktop, measure
1,704,912,943
se_77794444
stackoverflow
DATA_SCIENCE
Power BI: The lowest value between two columns
Power BI: The lowest value between two columns is there a possibility to find the lowest value between two columns in Power BI? This is the table: Name Maths Physics Emma 73.2 32.5 Theo 95.3 76.5 Ellen 52.7 99.7 I have to get a card that would in this case show Emma because if we compare both exams, th...
https://stackoverflow.com/questions/77794444/power-bi-the-lowest-value-between-two-columns
powerbi, dax, powerquery, data-analysis, powerbi-desktop
1,704,899,923
se_77793682
stackoverflow
DATA_SCIENCE
How to remove duplicates in a column and keep the last occurence?
How to remove duplicates in a column and keep the last occurence? My input is this table : category id YYY A XXX B XXX A XXX C ZZZ A When I select the id column and choose remove duplicates, it keeps the first occurence of ids : category id YYY A XXX ...
https://stackoverflow.com/questions/77793682/how-to-remove-duplicates-in-a-column-and-keep-the-last-occurence
excel, powerquery, data-analysis, data-cleaning, m
1,704,892,562
se_77788255
stackoverflow
DATA_SCIENCE
How to divide a value in a Cell with the Sum of an entire column in Power BI
How to divide a value in a Cell with the Sum of an entire column in Power BI I want to divide a cell with the sum of the total value of the another cell in Power BI. I wrote the formulae for the code but unfortunately this is not working. Can someone help me out. Agg Forecast Accuuracy = IFERROR(([Weightage Selection]...
https://stackoverflow.com/questions/77788255/how-to-divide-a-value-in-a-cell-with-the-sum-of-an-entire-column-in-power-bi
powerbi, data-analysis, powerbi-desktop
1,704,817,323
se_77786876
stackoverflow
DATA_SCIENCE
How to avoid redundancy when at least two queries share common steps?
How to avoid redundancy when at least two queries share common steps? I have five queries that share some steps. But for simplicity, lets consider only two queries. As you can see below the two queries Q1 and Q2 share the first three steps and the last step. My question : Is it possible to reference the two first thre...
https://stackoverflow.com/questions/77786876/how-to-avoid-redundancy-when-at-least-two-queries-share-common-steps
excel, powerbi, powerquery, data-analysis, m
1,704,804,334
se_77786950
stackoverflow
DATA_SCIENCE
Total row of my table : how to not Display my indicator?
Total row of my table : how to not Display my indicator? _Hi, I have some trouble to not display my red indicator on the total of my "Negative consumption" table when it has only one row... Can anyone help me ? Thanks in advance. Here is the link of my pbix file
https://stackoverflow.com/questions/77786950/total-row-of-my-table-how-to-not-display-my-indicator
powerbi, dax, data-analysis, powerbi-desktop, measure
1,704,805,021
se_77785844
stackoverflow
DATA_SCIENCE
How to unzip GZ files using Power Query?
How to unzip GZ files using Power Query? For zip files, I found this code and this tutorial that explain how to use the code and it works well. The problem is that I have gz files and not zip files. The gz file contains a csv. So I tried udapting some values like using Compression.GZip instead of Compression.Deflate b...
https://stackoverflow.com/questions/77785844/how-to-unzip-gz-files-using-power-query
excel, gzip, powerquery, data-analysis, m
1,704,794,330
se_77778971
stackoverflow
DATA_SCIENCE
Calculate the SUMIFS on Calculated Column in Power BI
Calculate the SUMIFS on Calculated Column in Power BI I am trying to replicate a excel formulae in a new measure in Power BI. Unfortunately, since SUMIFS are not present by default, we have to write the formulae, the issue with writing this is, all the examples shown as ways to write SUMIFS. We have to hardcode the op...
https://stackoverflow.com/questions/77778971/calculate-the-sumifs-on-calculated-column-in-power-bi
excel, powerbi, dax, data-analysis, powerbi-desktop
1,704,710,703
se_77778596
stackoverflow
DATA_SCIENCE
Using a variable range to select columns in R
Using a variable range to select columns in R I have a dataset containing several columns with similar colnames. Each variable has multiple measurements, resulting in multiple columns. These are in the form of: mt1_oranges_vol, mt2_oranges_vol, mt3_oranges_vol; mt1_pears_vol, mt2_pears_vol, mt3_pears_vol, etc. d...
https://stackoverflow.com/questions/77778596/using-a-variable-range-to-select-columns-in-r
r, data-analysis, data-manipulation
1,704,707,478
se_77775968
stackoverflow
DATA_SCIENCE
Changing Title of Legend in ggplot2 Creates a Second Legend?
Changing Title of Legend in ggplot2 Creates a Second Legend? I am pretty new to R/working with data and am trying to change the title of the legend in a visualization I made. I have tried using fill= in the labels() function I have but it adds another legend for some reason. I have looked around for a solution and fou...
https://stackoverflow.com/questions/77775968/changing-title-of-legend-in-ggplot2-creates-a-second-legend
r, ggplot2, visualization, legend, data-analysis
1,704,680,754
se_77774930
stackoverflow
DATA_SCIENCE
Appending data is inturrepted by incomplete data , error of &quot;cannot set a row with mismatched columns&quot;
Appending data is inturrepted by incomplete data , error of &quot;cannot set a row with mismatched columns&quot; While scraping data and appending to a data frame through a function using python. The append fuction is inturrepted due to the mismatch in the declared data frame and the missing data in the columns of the...
https://stackoverflow.com/questions/77774930/appending-data-is-inturrepted-by-incomplete-data-error-of-cannot-set-a-row-wi
python, html, web-scraping, beautifulsoup, data-analysis
1,704,662,302
se_65805316
stackoverflow
DATA_SCIENCE
How to change variable type when working with pandas-profiling?
How to change variable type when working with pandas-profiling? For reproducing the issue, Notebook, data, output: github link I have Contract variable/column in my dataset which looks like this, all look like numbers but they are actually categorical. When read with pandas, the info says it is read as int. Since t...
https://stackoverflow.com/questions/65805316/how-to-change-variable-type-when-working-with-pandas-profiling
python, python-3.x, pandas, data-analysis, pandas-profiling
1,611,129,669
se_77767517
stackoverflow
DATA_SCIENCE
Combine rows and columns to create a 2x2 table for Fisher&#39;s exact test
Combine rows and columns to create a 2x2 table for Fisher&#39;s exact test I need to perform a test of independence on the following crosstab ct using python: Since there are some values less than 5, I cannot perform the chi-square test of independence. Instead, I need to perform Fisher's exact test. Since Fisher's e...
https://stackoverflow.com/questions/77767517/combine-rows-and-columns-to-create-a-2x2-table-for-fishers-exact-test
python, scipy, statistics, data-analysis
1,704,494,187
se_77768744
stackoverflow
DATA_SCIENCE
Count the number of rows with values between two dates, in multiple columns
Count the number of rows with values between two dates, in multiple columns I have a DataFrame where the columns are stages in a process, and every row has dates of when that record entered into each "stage." I want to count for each column the number of rows that have a date inside a certain range. Then, the end goal...
https://stackoverflow.com/questions/77768744/count-the-number-of-rows-with-values-between-two-dates-in-multiple-columns
python, pandas, dataframe, data-analysis
1,704,530,130
se_77769894
stackoverflow
DATA_SCIENCE
The Output of this python code is not what I am expecting
The Output of this python code is not what I am expecting I'm a new CE student and I wanted to make a python program that read the input from a text file and give me the output in a text file. in this program I want it to take the input line by line and give me the frequency of its contents. but its not accurate and h...
https://stackoverflow.com/questions/77769894/the-output-of-this-python-code-is-not-what-i-am-expecting
python, data-analysis, data-mining
1,704,553,422
se_77765000
stackoverflow
DATA_SCIENCE
Power BI: Finding earliest price per category
Power BI: Finding earliest price per category I have a table in PBI where I have three columns: Category, Price, and Date. I want to create a measurement that shows the earliest price per category, no matter what filters are set on the Date column. For example, my table looks like this: Category Price Date A 1...
https://stackoverflow.com/questions/77765000/power-bi-finding-earliest-price-per-category
powerbi, dax, data-analysis, powerbi-desktop, measure
1,704,462,273
se_77742047
stackoverflow
DATA_SCIENCE
Total current month disappeared with the new year
Total current month disappeared with the new year Today it's 1/1/2024 and the total Current Month in my Power BI dashboard is not showing since today: That measure is calculated this way: This is how it's calculated: Total Current Month = CALCULATE( 'Costs Summary Table'[Sum of measures], FILTER( 'Ca...
https://stackoverflow.com/questions/77742047/total-current-month-disappeared-with-the-new-year
powerbi, dax, data-analysis, powerbi-desktop, measure
1,704,116,026
se_77764162
stackoverflow
DATA_SCIENCE
Power BI: Add a column that is a level ahead of the related column
Power BI: Add a column that is a level ahead of the related column I have two columns: User Parent Amy K. Theo K. Lena K. Theo K. Jiha L. John L. John L. Victor L. Theo K. Simba K. Simba K. Ellen K. Now I need to make another column called Grandparent where I need to put users from the User colum...
https://stackoverflow.com/questions/77764162/power-bi-add-a-column-that-is-a-level-ahead-of-the-related-column
powerbi, dax, powerquery, data-analysis, powerbi-desktop
1,704,453,029
se_77536689
stackoverflow
DATA_SCIENCE
How to match combination string which is not in same order in Looker?
How to match combination string which is not in same order in Looker? I've a column named country combination beside which total count column states the count of how many times that country combination has appeared. I'm trying to create a pie chart in Looker to see overall occurrence. country combination total cou...
https://stackoverflow.com/questions/77536689/how-to-match-combination-string-which-is-not-in-same-order-in-looker
visualization, data-analysis, pie-chart, looker-studio, looker
1,700,740,718
se_77746548
stackoverflow
DATA_SCIENCE
Create multiple records for the same company
Create multiple records for the same company I do have some duplications in my company_clients table. Some of them due to poor tool usage and some of them because the company is located in more than one country and we assign different group for each, so I need to keep them as 2 companies. I'm struggling to write the l...
https://stackoverflow.com/questions/77746548/create-multiple-records-for-the-same-company
sql, google-bigquery, data-analysis, data-warehouse
1,704,204,111
se_77753851
stackoverflow
DATA_SCIENCE
SQL: Return true if condition is met only one time in query
SQL: Return true if condition is met only one time in query I have both a log of actions made by users: Action ID User Action date 1 1 2023-01-01 07:00 2 1 2023-01-01 13:00 3 1 2023-01-02 05:00 4 1 2023-01-02 16:00 5 2 2023-06-15 04:00 6 2 2023-06-15 09:00 and a log of "managed" states for the sa...
https://stackoverflow.com/questions/77753851/sql-return-true-if-condition-is-met-only-one-time-in-query
sql, data-analysis
1,704,305,070
se_77737360
stackoverflow
DATA_SCIENCE
Why these packages (metagen, metacont, metacor, metainc, or metabin) are not available anymore for R 4.3.2?
Why these packages (metagen, metacont, metacor, metainc, or metabin) are not available anymore for R 4.3.2? I want to plot pcurve, so I needed to use dmetar package, which calls for the packages in the title. Is there a way to install them? I've tried to install them using different methods with no success: install.pa...
https://stackoverflow.com/questions/77737360/why-these-packages-metagen-metacont-metacor-metainc-or-metabin-are-not-ava
r, data-analysis, metafor
1,703,969,338
se_67505252
stackoverflow
DATA_SCIENCE
Plotly box p-value significant annotation
Plotly box p-value significant annotation I have started to use and love plotly boxplots to represent my data. However, I struggle to find a way to contrast between the two groups. Is there a way to introduce statistical significant comparison between the data when using Plotly? I would like to create graphs like this...
https://stackoverflow.com/questions/67505252/plotly-box-p-value-significant-annotation
data-analysis, boxplot, plotly, p-value
1,620,828,320
se_76044219
stackoverflow
DATA_SCIENCE
TypeError: Could not convert group to numeric
TypeError: Could not convert group to numeric I am going through Krish Naik's "End To End ML Project With Deployment" course on YouTube. Right now, I am in Tutorial 3. Here is the link to the video. I am facing an issue with BIVARIATE ANALYSIS ( Is gender has any impact on student's performance ? ) while performing Ex...
https://stackoverflow.com/questions/76044219/typeerror-could-not-convert-group-to-numeric
python, machine-learning, data-analysis, exploratory-data-analysis
1,681,818,473
se_77733394
stackoverflow
DATA_SCIENCE
position=position_dodge2(0.9) not working in R
position=position_dodge2(0.9) not working in R So, I'm trying to make a bar plot in R but unfortunately it has decided to be obstinate. Most of it works fine, but the error bars overlap and noting I have tried can separate them. DataR2 <- read_excel("file.xlsx") ggplot(data=DataR2, aes(x=Samples, y=`Protein (%) iso ...
https://stackoverflow.com/questions/77733394/position-position-dodge20-9-not-working-in-r
r, position, data-analysis, errorbar
1,703,873,314
se_58900022
stackoverflow
DATA_SCIENCE
Get the topics or the keywords of a sentence
Get the topics or the keywords of a sentence Good morning all Does anyone of you know a tool or an API or something that takes a sentence as input and as output, it gives the topics or keywords of this sentence? I tried TextRazor in the online demo it works well like you can see in the screenshot but when I used a...
https://stackoverflow.com/questions/58900022/get-the-topics-or-the-keywords-of-a-sentence
python, nlp, data-analysis
1,573,990,398
se_77692370
stackoverflow
DATA_SCIENCE
When joining two tables, add blank space for non existing data, do not remove the whole row (left outer join)
When joining two tables, add blank space for non existing data, do not remove the whole row (left outer join) I have the following issue: Table1 looks like this: User Ana Mary Lory Jake Table2 looks like this: User Fruit Mary Apples Lory Oranges I should now make a visual where every us...
https://stackoverflow.com/questions/77692370/when-joining-two-tables-add-blank-space-for-non-existing-data-do-not-remove-th
powerbi, dax, powerquery, data-analysis, powerbi-desktop
1,703,082,946
se_77724322
stackoverflow
DATA_SCIENCE
Managing large datasets in Python without running into memory issues
Managing large datasets in Python without running into memory issues I'm currently working on a data analysis project in Python where I need to handle massive datasets. Although I'm using pandas, a fantastic tool, I encounter memory issues when performing operations on these large datasets. Specifically, I'm dealing w...
https://stackoverflow.com/questions/77724322/managing-large-datasets-in-python-without-running-into-memory-issues
python, pandas, memory-management, data-analysis, large-data
1,703,717,531
se_24408424
stackoverflow
DATA_SCIENCE
How to find most accurate tagging for a given sentence using tweet nlp?
How to find most accurate tagging for a given sentence using tweet nlp? I found Twitter nlp helpful in tagging. It gave all possible tags given a sentence. "gm sir" gives Good Morning sir|general manager sir|general motors sir|Good match sir|Game master sir|Good move sir|Grand master sir|Good morning sir. Is there any...
https://stackoverflow.com/questions/24408424/how-to-find-most-accurate-tagging-for-a-given-sentence-using-tweet-nlp
nlp, preprocessor, data-analysis
1,403,698,544
se_77625494
stackoverflow
DATA_SCIENCE
DAX Measure: Slicer using 2 columns
DAX Measure: Slicer using 2 columns I have two columns with numbers from 1 to 10, for example: Column A Column B 1 2 3 1 I have to create a slicer that will filer other columns (Column C, Column D....) based on the numbers in Column A and B like this: If there is 1 in a row from Column A or in Column B, ...
https://stackoverflow.com/questions/77625494/dax-measure-slicer-using-2-columns
powerbi, dax, data-analysis, powerbi-desktop
1,702,026,737
se_77653188
stackoverflow
DATA_SCIENCE
Gabor Data Analysis: Chapter 1 Stuck in a Code: How to Set Directory
Gabor Data Analysis: Chapter 1 Stuck in a Code: How to Set Directory Dear Stackoverflow Community, I am trying to self-teach myself R and data analysis using the textbook "Békés, Gábor. Data Analysis for Business, Economics, and Policy" (https://gabors-data-analysis.com/) and I am stuck in the below code using Hotel V...
https://stackoverflow.com/questions/77653188/gabor-data-analysis-chapter-1-stuck-in-a-code-how-to-set-directory
r, statistics, data-analysis, summary
1,702,466,656
se_77684319
stackoverflow
DATA_SCIENCE
how to run SVD in python with a 1xn matrix?
how to run SVD in python with a 1xn matrix? So i want to run an algorithm on my dataset, and the first step is the Singular Value Decomposition (SVD). I am basing it on an example i found on a book, and there they use MatLab and run SVD on this time series that has dimension 1xn. However, when I try to run it in pytho...
https://stackoverflow.com/questions/77684319/how-to-run-svd-in-python-with-a-1xn-matrix
python, numpy, time-series, data-analysis, svd
1,702,980,014
se_77685463
stackoverflow
DATA_SCIENCE
Excluding Measurements based on Drug adminstration
Excluding Measurements based on Drug adminstration I am performing a data analysis on a vast medical dataset. I am trying to wrap my head around the following issue. The task is to include only protein measurements that were taken before the administration of the drug (where drug == 1). Representative dataset: dataset...
https://stackoverflow.com/questions/77685463/excluding-measurements-based-on-drug-adminstration
r, data-analysis
1,702,991,686
se_77628439
stackoverflow
DATA_SCIENCE
Calculate consecutive days a user log in per calendar date
Calculate consecutive days a user log in per calendar date I need to calculate the number of consecutive logins for each of my user_id for each calendar_date using Databricks SQL. If I can't I could go for pyspark as well. user_id calendar_date John 2022-01-01 John 2022-01-10 Mary 2022...
https://stackoverflow.com/questions/77628439/calculate-consecutive-days-a-user-log-in-per-calendar-date
sql, pyspark, data-analysis, databricks-sql
1,702,058,694
se_77673426
stackoverflow
DATA_SCIENCE
Weekly sales total divided by monthly membership total based on dates
Weekly sales total divided by monthly membership total based on dates I am trying to divide each weeks and months sales total by the membership_count based on the Date and Membership_Mth_Yr. So if the sales Date is in December 2022 I want it to divide the weekly Sales by the Membership_Count that is for the month of D...
https://stackoverflow.com/questions/77673426/weekly-sales-total-divided-by-monthly-membership-total-based-on-dates
pandas, dataframe, data-analysis
1,702,791,757
se_77642920
stackoverflow
DATA_SCIENCE
Excel Formula to Auto Calculate the 4 Week Moving Average
Excel Formula to Auto Calculate the 4 Week Moving Average Please see the image uploaded to the thread. I will keep adding data every week to the table's corresponding columns. The 4 weeks moving average has to be calculated automatically on the cell above the the column header. The formula also has to ignore weeks wit...
https://stackoverflow.com/questions/77642920/excel-formula-to-auto-calculate-the-4-week-moving-average
excel, data-analysis, moving-average
1,702,337,790
se_77657526
stackoverflow
DATA_SCIENCE
Expression Multivariable CAGR in Qlik Sense
Expression Multivariable CAGR in Qlik Sense I have table <img src="https://i.sstatic.net/GXxnk.png" alt="Years flag_new total_amt count_cust 2016 new 20000 1500 2016 exs 30000 1600 2017 new ...
https://stackoverflow.com/questions/77657526/expression-multivariable-cagr-in-qlik-sense
expression, data-analysis, qliksense
1,702,521,882
se_76562620
stackoverflow
DATA_SCIENCE
How to save a multidimensional list as a file, when the file has inhomogeneous part
How to save a multidimensional list as a file, when the file has inhomogeneous part My data shape is as follows: [0][0] = Variable 0, yearly values (an array of 20 numbers) [0][1] = Variable 0, yearly error values (an array of 20 numbers) [0][2] = Variable 0, name of the variable 0 (a string) [11][1] = Variable 11...
https://stackoverflow.com/questions/76562620/how-to-save-a-multidimensional-list-as-a-file-when-the-file-has-inhomogeneous-p
python, dataframe, csv, data-analysis
1,687,851,558
se_77642813
stackoverflow
DATA_SCIENCE
Mahalanobis distance between two columns containing two variables
Mahalanobis distance between two columns containing two variables Good evening, I'd like to calculate the Mahalanobis distance between each observation of the two vectors (O_Temp, O_Salin) and (D_Temp, D_Salin) in the attached image. So, the aim is to calculate the Mahalanobis distance between the column vector (O_Tem...
https://stackoverflow.com/questions/77642813/mahalanobis-distance-between-two-columns-containing-two-variables
r, statistics, data-analysis
1,702,335,634
se_77654932
stackoverflow
DATA_SCIENCE
Filter DataFrame by values from other
Filter DataFrame by values from other I have 2 pandas DataFrames: users and interactions. I need to filter first so that values from users['user_id'] are in interactions['user_id'] users = users[users.user_id.isin(interactions['user_id'])] A get such DataFrame: Unnamed: 0 user_id age income se...
https://stackoverflow.com/questions/77654932/filter-dataframe-by-values-from-other
python, pandas, data-analysis, isin
1,702,483,060
se_77628346
stackoverflow
DATA_SCIENCE
Extract duplicate row based on three columns power query
Extract duplicate row based on three columns power query Hi i want extract the duplicated row based on three columns in power bi (power query). If all column are same with other row then extract. In this case the column are name, surname and phone1. I show you an example : Thomas Mcjilly 3661378715 18 Rome Thomas Mcj...
https://stackoverflow.com/questions/77628346/extract-duplicate-row-based-on-three-columns-power-query
powerbi, powerquery, data-analysis, powerbi-desktop, analysis
1,702,057,649
se_68599991
stackoverflow
DATA_SCIENCE
IndentationError: unexpected indent in fcc Sea level predictor project
IndentationError: unexpected indent in fcc Sea level predictor project Please help me. New in this field and asking 1st time on this platform. My code import pandas as pd import matplotlib.pyplot as plt from scipy.stats import linregress def draw_plot(): # Read data from file df=pd.read_csv("epa-sea-level.csv")...
https://stackoverflow.com/questions/68599991/indentationerror-unexpected-indent-in-fcc-sea-level-predictor-project
python, data-analysis
1,627,715,721
se_77606811
stackoverflow
DATA_SCIENCE
To each object from the first list match an object from the second list according to the condition of equality of attributes values
To each object from the first list match an object from the second list according to the condition of equality of attributes values Imagine we have a finite number of districts with a finite number of houses in each of them. Each house has a number and the houses in each district are numbered from 1. One man and one w...
https://stackoverflow.com/questions/77606811/to-each-object-from-the-first-list-match-an-object-from-the-second-list-accordin
python, arrays, algorithm, bigdata, data-analysis
1,701,785,082
se_77580228
stackoverflow
DATA_SCIENCE
How to compare rows after a particular column in BigQuery SQL?
How to compare rows after a particular column in BigQuery SQL? SQL Gurus, I have got a problem and I have no idea how to solve it. I have a table like this in BigQuery: id ga_id first_date second_date A B 2023-08-01 2023-09-02 And I want to compare row like this: id ga_id ...
https://stackoverflow.com/questions/77580228/how-to-compare-rows-after-a-particular-column-in-bigquery-sql
sql, google-bigquery, data-analysis
1,701,362,991
se_77580376
stackoverflow
DATA_SCIENCE
How do I easily plot data in R (line plot), that were adjusted for confounding variables?
How do I easily plot data in R (line plot), that were adjusted for confounding variables? since I now understand how to line plot data with multiple timepoints in R using ggpubr package, I want to plot data that has been adjusted for some known confounding variables in the data set. What I already tried is to calculat...
https://stackoverflow.com/questions/77580376/how-do-i-easily-plot-data-in-r-line-plot-that-were-adjusted-for-confounding-v
r, ggplot2, statistics, data-analysis, adjustment
1,701,364,126
se_77578184
stackoverflow
DATA_SCIENCE
Postgresql- theowing an error running a basic query
Postgresql- theowing an error running a basic query i am trying to run a query from a dataset but its throwing an error, please help me out. select * from online_retail where quantity= '6' ERROR: column "quantity" does not exist LINE 2: where quantity= '6' ^ HINT: Perhaps you meant to reference the co...
https://stackoverflow.com/questions/77578184/postgresql-theowing-an-error-running-a-basic-query
postgresql, data-analysis
1,701,344,752
se_38689125
stackoverflow
DATA_SCIENCE
how to get rid of pandas converting large numbers in excel sheet to exponential?
how to get rid of pandas converting large numbers in excel sheet to exponential? In the Excel sheet , I have two columns with large numbers. But when I read the Excel file with read_excel() and display the dataframe, those two columns are printed in scientific format with exponential. How can I get rid of this format?...
https://stackoverflow.com/questions/38689125/how-to-get-rid-of-pandas-converting-large-numbers-in-excel-sheet-to-exponential
python, pandas, machine-learning, data-analysis
1,470,006,506
se_77562841
stackoverflow
DATA_SCIENCE
Power BI DAX Measure: Counting the distinct number of users by nested way of filtering
Power BI DAX Measure: Counting the distinct number of users by nested way of filtering I tried multiple ways to do this, but just can't find the final solution. Precodition: it has to be a MEASURE, NOT calculated column So my table looks like this: Name Skill Level John SQL 2 John SQL 2 Amy Python 1 Amy ...
https://stackoverflow.com/questions/77562841/power-bi-dax-measure-counting-the-distinct-number-of-users-by-nested-way-of-fil
powerbi, dax, data-analysis, measure
1,701,165,130
se_77559877
stackoverflow
DATA_SCIENCE
Analytical metric for comparing average run times?
Analytical metric for comparing average run times? I have a list of scripts and how long they take on average: const averageRunTime = [ srt_id:1, avg:8, // 8 seconds srt_id:2, avg:600, // 10 minutes srt_id:3, avg:3600 // 1 hour ] So the first script typically runs in 8 seconds, the second takes about 10 ...
https://stackoverflow.com/questions/77559877/analytical-metric-for-comparing-average-run-times
data-analysis
1,701,118,330
se_77539886
stackoverflow
DATA_SCIENCE
How to efficiently transpose PySpark dataframe with one row and many integer columns
How to efficiently transpose PySpark dataframe with one row and many integer columns Say I have a df with this structure: Long Long Long Long Long Long A B C D E F 4 2 7 9 1 3 How do I efficiently transpose such that it ends up like: String Long name value A 4 B 2 C 7 D ...
https://stackoverflow.com/questions/77539886/how-to-efficiently-transpose-pyspark-dataframe-with-one-row-and-many-integer-col
python, dataframe, apache-spark, pyspark, data-analysis
1,700,778,575
se_77536749
stackoverflow
DATA_SCIENCE
using one slicer (date) with two different tables and two different data columns in power bi. i want to solve this problem
using one slicer (date) with two different tables and two different data columns in power bi. i want to solve this problem using one slicer (date) with two different tables and two different data columns in power bi. i want to solve this problem .I have already addressed this using a date table, but I am interested i...
https://stackoverflow.com/questions/77536749/using-one-slicer-date-with-two-different-tables-and-two-different-data-columns
powerbi, data-analysis, powerbi-desktop
1,700,741,294
se_77522156
stackoverflow
DATA_SCIENCE
Issue in sorting data in hierarchy wise using slicer option
Issue in sorting data in hierarchy wise using slicer option Data considered in matrix Rank Slicer selected as 3 but i was getting all sites instead of only rank with 3 Details about my data: i am having table(Table Name: MGR) with columns as Date, Plant Name, Generation, Sp. Yield and i am having day wise geenration d...
https://stackoverflow.com/questions/77522156/issue-in-sorting-data-in-hierarchy-wise-using-slicer-option
powerbi, dax, data-analysis, powerbi-desktop, slicers
1,700,563,451
se_77511553
stackoverflow
DATA_SCIENCE
Average and Median of values of 4 columns for each row in DAX
Average and Median of values of 4 columns for each row in DAX I have 4 columns, Col1,Col2,Col3 and Col4 I need to add 2 calculated column that get the Average and median of 4 values of those 4 columns from each row. That's should be DAX,no need power query Col1 Col2 Col3 Col4 Average Medin 3 8 9 5 6.25 6.5
https://stackoverflow.com/questions/77511553/average-and-median-of-values-of-4-columns-for-each-row-in-dax
powerbi, dax, data-analysis
1,700,410,803
se_77503771
stackoverflow
DATA_SCIENCE
How can i overcome the KeyError: in Python?
How can i overcome the KeyError: in Python? I wanted to analyze the CSV datafile with the help of python. but an error occured saying KeyError:Niveau. "Niveau" was the name of the column that i had in the CSV data. i had a CSV file and i wanted to analyze this with python. I wrote a code and the problem seemed to be K...
https://stackoverflow.com/questions/77503771/how-can-i-overcome-the-keyerror-in-python
python, pandas, dataframe, csv, data-analysis
1,700,244,263
se_77501216
stackoverflow
DATA_SCIENCE
Set a Value Threshold in R
Set a Value Threshold in R I have the following data frame: Parameter Value 0NO2 46 00O3 56 with a lot more parameters c("00C6H6", "00CO", "00HR", "LAEQ", "00NO2", "00O3", "00PA", "PM10", "PM25", "00SO2", "TEMP", "00VTH", "00UV") However, there are certain parameters for which the values exceed the de...
https://stackoverflow.com/questions/77501216/set-a-value-threshold-in-r
r, data-analysis
1,700,219,635
se_66642332
stackoverflow
DATA_SCIENCE
What libraries I can use for Anomaly detection in Time-series data in Python?
What libraries I can use for Anomaly detection in Time-series data in Python? I am working with data that consists of two variables: Date-Time (in 15minutes intervals) Demand With these variables, I need to build a model to train the data in detecting anomalies in the data. Currently, I am using Pandas but are there...
https://stackoverflow.com/questions/66642332/what-libraries-i-can-use-for-anomaly-detection-in-time-series-data-in-python
python, time-series, data-analysis, anomaly-detection
1,615,827,543