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_75665913
stackoverflow
DATA_SCIENCE
how to calculate percentage of losers by level
how to calculate percentage of losers by level id event level 1 level_started 1 1 level_completed 1 1 level_started 2 1 level_failed 2 2 level_started 1 2 level_completed 1 2 level_started 2 2 level_failed 2 4 level_started 1 4 level_completed 1 4 level_started 2 4 level_failed 2 5 level_st...
https://stackoverflow.com/questions/75665913/how-to-calculate-percentage-of-losers-by-level
sql, database, data-analysis
1,678,213,937
se_75661662
stackoverflow
DATA_SCIENCE
Irish Residential Property Price Register Data Plot Problem
Irish Residential Property Price Register Data Plot Problem I have a very large dataset, which is over 500k observation, it contains counties of ireland and their residential property price register. I have been working on this data with sampling method to avoid overfitting it caused me very slow results with Jupyter ...
https://stackoverflow.com/questions/75661662/irish-residential-property-price-register-data-plot-problem
jupyter-notebook, plotly, data-science, visualization, data-analysis
1,678,190,067
se_75657742
stackoverflow
DATA_SCIENCE
Error Code: 3588. Window '<unnamed window>' with RANGE frame has ORDER BY expression of datetime type. Only INTERVAL bound value allowed
Error Code: 3588. Window '<unnamed window>' with RANGE frame has ORDER BY expression of datetime type. Only INTERVAL bound value allowed I need to find the customers who ordered for 3 consecutive days with every order amount greater than $50 for the data in table sales.mytable. This is the SQL query i wr...
https://stackoverflow.com/questions/75657742/error-code-3588-window-unnamed-window-with-range-frame-has-order-by-expres
mysql, sql, mysql-workbench, data-analysis
1,678,159,085
se_75644711
stackoverflow
DATA_SCIENCE
Power Query Transpose Combined Multi files
Power Query Transpose Combined Multi files i would like to ask your advise for my current obstacle. so i have multiple files with the same format need to be transposed and combine into single files. the approach that i took is combine them into single file using power query and plan to transpose it, but it doesn't see...
https://stackoverflow.com/questions/75644711/power-query-transpose-combined-multi-files
excel, powerquery, data-analysis, transpose
1,678,043,641
se_75646832
stackoverflow
DATA_SCIENCE
Why does it says "Unrecognized name: start_station_id at [21:17] "
Why does it says "Unrecognized name: start_station_id at [21:17] " SELECT station_id, name, number_of_riders AS number_of_riders_starting_at_station FROM (SELECT CAST(start_station_id AS STRING), COUNT(*) num_of_rides FROM `bigquery-public-data.new_york.citib...
https://stackoverflow.com/questions/75646832/why-does-it-says-unrecognized-name-start-station-id-at-2117
sql, google-bigquery, data-analysis
1,678,073,234
se_75643011
stackoverflow
DATA_SCIENCE
Problems CDF plot
Problems CDF plot I tried plotting a CDF plot in python. But where it should show y-values from 0 to 1, it only shows up to 0.12... And I don't know why... def plot_cdf_differences(data): data['differences'] = data.apply(lambda e: abs(e.inner_distance_speed - e.inner_distance_lsq), axis=1) counts, bin_edges = ...
https://stackoverflow.com/questions/75643011/problems-cdf-plot
python, matplotlib, data-analysis
1,678,027,345
se_75644199
stackoverflow
DATA_SCIENCE
How to calculate user churn by levels
How to calculate user churn by levels I have a query like this: SELECT level, COUNT(id) AS count_id FROM dev GROUP BY level ORDER BY level ASC; It outputs the number of id's at each level: level count_id 1 4723602 2 4239623 3 4195459 4 3781344 5 3303071 6 2824263 7 3627376 8 2746447 ...
https://stackoverflow.com/questions/75644199/how-to-calculate-user-churn-by-levels
sql, data-analysis
1,678,038,393
se_75639988
stackoverflow
DATA_SCIENCE
Homework Help - Python For Data Analytics (Linear Regression Modelling)
Homework Help - Python For Data Analytics (Linear Regression Modelling) Part I: Perform linear regression modelling to predict the delay in days (between the Planned and Actual date) in processing the claims, explaining the approach taken, including any further data pre-processing needed for modelling. Part II: Discus...
https://stackoverflow.com/questions/75639988/homework-help-python-for-data-analytics-linear-regression-modelling
python, csv, data-analysis
1,677,985,721
se_75608702
stackoverflow
DATA_SCIENCE
In Google Data Studio, how can I concat multiple row values in one column grouped by IDs in another column?
In Google Data Studio, how can I concat multiple row values in one column grouped by IDs in another column? This is my first post on here. I am having a hard time coming up with a solution to an issue I'm having in creating a product bundle analysis on Google Data studio. I know that my problem can be easily resolved ...
https://stackoverflow.com/questions/75608702/in-google-data-studio-how-can-i-concat-multiple-row-values-in-one-column-groupe
sql, database, concatenation, data-analysis, looker-studio
1,677,702,758
se_74213804
stackoverflow
DATA_SCIENCE
How to unwrap coordinates produced by LAMMPS in python
How to unwrap coordinates produced by LAMMPS in python Okay so I am using LAMMPS to produce wrapped coordinates since I am using periodic boundary conditions with their simulation, in a box of x=[0,91.24] by y=[0,91.24], and I was looking how I would be able to unwrap the coordinates so that I get correct coordinates ...
https://stackoverflow.com/questions/74213804/how-to-unwrap-coordinates-produced-by-lammps-in-python
python, data-analysis, unwrap
1,666,815,657
se_75626095
stackoverflow
DATA_SCIENCE
How to write SQL bigquery query to calculate quantity of customers for the first and last day of month?
How to write SQL bigquery query to calculate quantity of customers for the first and last day of month? We have table deals, which contains organization_id, won_time. If the last Deal with this client was won a >3 months ago, that is a lost client. To calculate the number of customers at a certain moment, you need to ...
https://stackoverflow.com/questions/75626095/how-to-write-sql-bigquery-query-to-calculate-quantity-of-customers-for-the-first
sql, google-bigquery, data-analysis
1,677,840,580
se_75623217
stackoverflow
DATA_SCIENCE
SettingWithCopyWarning: When trying to modify the date format of two columns of a dataframe
SettingWithCopyWarning: When trying to modify the date format of two columns of a dataframe I am trying to change the date formats of two separate columns Order_Date, Ship_Date in the dataframe to dd-mm-yyyy format. This is my python code. # Importing library panda import pandas as pd pd.set_option('display.max_rows',...
https://stackoverflow.com/questions/75623217/settingwithcopywarning-when-trying-to-modify-the-date-format-of-two-columns-of
python, pandas, dataframe, data-analysis
1,677,818,325
se_75620647
stackoverflow
DATA_SCIENCE
Matplotlib bar chart text couldnt be plotted correctly
Matplotlib bar chart text couldnt be plotted correctly The result of the below codei tried ploting matplotlib bar graph but couldn't plot the text on correct position. Seems like it there is some problem with the x-axis i defined The texts which needs to be top on respective bars gets squashed to side. Any help would ...
https://stackoverflow.com/questions/75620647/matplotlib-bar-chart-text-couldnt-be-plotted-correctly
python, matplotlib, data-analysis
1,677,789,955
se_75611433
stackoverflow
DATA_SCIENCE
Pandas Dataframe - Compare values and find mismatch in each row?
Pandas Dataframe - Compare values and find mismatch in each row? i have a df for product price having columns: SKU, Amazon, eBay, Walmart, PS, SPL where values can be null or Price for that SKU. I want to compare PS and SPL if they are non-null then price should match on each row. that means, mismatch is an error SKU....
https://stackoverflow.com/questions/75611433/pandas-dataframe-compare-values-and-find-mismatch-in-each-row
python, pandas, dataframe, data-analysis
1,677,732,536
se_75606761
stackoverflow
DATA_SCIENCE
How to calculate the no-show rate for medical appointments based on previous appointments in a pandas DataFrame?"
How to calculate the no-show rate for medical appointments based on previous appointments in a pandas DataFrame?" I am working on a healthcare dataset from Kaggle (https://www.kaggle.com/joniarroba/noshowappointments), which contains information about medical appointments in Brazil and whether or not the patient ...
https://stackoverflow.com/questions/75606761/how-to-calculate-the-no-show-rate-for-medical-appointments-based-on-previous-app
python, pandas, dataframe, data-analysis, kaggle
1,677,689,711
se_75563804
stackoverflow
DATA_SCIENCE
shape mismatch: objects cannot be broadcast to a single shape
shape mismatch: objects cannot be broadcast to a single shape I want to combine sheets of given file but my code gives me given type error TypeError: first argument must be an iterable of pandas objects, you passed an object of type "DataFrame" `import pandas as pd wb_url = r'D:\DA\power query data\Excel Power Query P...
https://stackoverflow.com/questions/75563804/shape-mismatch-objects-cannot-be-broadcast-to-a-single-shape
python-3.x, pandas, typeerror, data-analysis
1,677,308,309
se_75611168
stackoverflow
DATA_SCIENCE
Is there a way to search for multiple times when running a query in BigQuery?
Is there a way to search for multiple times when running a query in BigQuery? I'm extremely new to SQL! Honestly, other than online coursework for other focuses and surfing the internet, I'm extremely new to all of this. I've been working on the Google Data Analytics Career Certificate and am working on the capstone...
https://stackoverflow.com/questions/75611168/is-there-a-way-to-search-for-multiple-times-when-running-a-query-in-bigquery
sql, database, google-bigquery, data-analysis
1,677,729,151
se_75606996
stackoverflow
DATA_SCIENCE
Efficient way of applying calculations on dataframes with different conditions and levels
Efficient way of applying calculations on dataframes with different conditions and levels I have a dataframe in the following format, it is sorted by the dates for each item, which have a determined frequency: df = pd.DataFrame( { "date": [2020-01-01, 2020-02-01, 2020-03-01, 2020-01-01, 2020-02-01], "item_ID": ...
https://stackoverflow.com/questions/75606996/efficient-way-of-applying-calculations-on-dataframes-with-different-conditions-a
python, pandas, data-analysis
1,677,691,235
se_75593694
stackoverflow
DATA_SCIENCE
Flag accounts on the basis of Previous entry
Flag accounts on the basis of Previous entry I'm doing a case study for which I need some help. A person is applying for Visa and can apply through any medium. We would like to understand which method did person opt for before coming to Office (Medium of application). I have the information here in the table below - [...
https://stackoverflow.com/questions/75593694/flag-accounts-on-the-basis-of-previous-entry
sas, data-analysis, sas-macro, proc-sql, enterprise-guide
1,677,596,227
se_75600517
stackoverflow
DATA_SCIENCE
Scraping data from sankey diagram using python and BS
Scraping data from sankey diagram using python and BS I am new to Python and am currently trying to figure out how to scrape data from this web: https://www.iea.org/sankey/#?c=Indonesia&s=Balance i have tried using BS and selenium but it didnt work. Need data that showed inside the diagram. Thank you for your answer i...
https://stackoverflow.com/questions/75600517/scraping-data-from-sankey-diagram-using-python-and-bs
python, web-scraping, data-analysis, sankey-diagram
1,677,654,570
se_75579371
stackoverflow
DATA_SCIENCE
Creation of variable containing a df variable labels leads to the creation of "dot" variable name
Creation of variable containing a df variable labels leads to the creation of "dot" variable name How can I improve the syntax below to avoid the appearance of a dot when I try to save a dataset's variable list and relating variable labels to the dataframe vars.n.theirlabels. I haven't been able to remove th...
https://stackoverflow.com/questions/75579371/creation-of-variable-containing-a-df-variable-labels-leads-to-the-creation-of-d
r, data-analysis
1,677,494,198
se_75588707
stackoverflow
DATA_SCIENCE
I want to convert .log file to .csv file using python
I want to convert .log file to .csv file using python I have given an alert-handler-error.log file to make analytics on error occurrence. Initially, I have to convert the .log file to CSV or excel file to open it in a data visualization tool. {"level":"ERROR","timestamp":"2023-02-03T19:38:10.141Z","logger":"kafkajs","...
https://stackoverflow.com/questions/75588707/i-want-to-convert-log-file-to-csv-file-using-python
python, dataframe, data-analysis, logfile
1,677,567,091
se_31750122
stackoverflow
DATA_SCIENCE
python for data analysis
python for data analysis I am learning data analysis with the help of a book named'python for data analysis'.Every thing goes well.But i get a problem that i do not know what is going on. The instruction from the book is: In [846]: !cat ch06/ex1.csv But when I input it in canopy, it comes out with !cat ch06/ex1....
https://stackoverflow.com/questions/31750122/python-for-data-analysis
python, csv, ipython, data-analysis
1,438,357,233
se_75589435
stackoverflow
DATA_SCIENCE
Pandas - Do I have to convert objects in float/int in order to sum them?
Pandas - Do I have to convert objects in float/int in order to sum them? I am doing my very first project with Pandas and this is the data frame I currently have: click me I need to calculate the percentage of bachelor degrees, which I read is done by dividing the value by the sum of all the values and then multiplyin...
https://stackoverflow.com/questions/75589435/pandas-do-i-have-to-convert-objects-in-float-int-in-order-to-sum-them
pandas, dataframe, data-analysis
1,677,572,253
se_75583152
stackoverflow
DATA_SCIENCE
How to find a maximum length of consecutive increasing elements in time series data in pandas
How to find a maximum length of consecutive increasing elements in time series data in pandas I have a time series data with three columns (tilted as tool name, value, date)as below: Tool Name Value Date A 52.14 1/1 A 51.5 1/7 A 52 1/10 A 52.9 2/1 B 53.1 1/5 B 51.7 1/10 B 51.9 1/21 B 52.4 1/22 ...
https://stackoverflow.com/questions/75583152/how-to-find-a-maximum-length-of-consecutive-increasing-elements-in-time-series-d
pandas, time-series, data-analysis
1,677,515,735
se_75576726
stackoverflow
DATA_SCIENCE
Updating an old dataframe with conditional matching of different columns and adding new rows in pandas
Updating an old dataframe with conditional matching of different columns and adding new rows in pandas I have an old dataframe with following columns and lot of rows and look like this >old_df date/time Name detect_ID category ID 12/1/2023 XXX 1 B 1400 12/1/2023 XXY 1,3,7 B ...
https://stackoverflow.com/questions/75576726/updating-an-old-dataframe-with-conditional-matching-of-different-columns-and-add
python, pandas, dataframe, data-analysis, data-cleaning
1,677,471,281
se_71009765
stackoverflow
DATA_SCIENCE
Generating a random planar graph in python
Generating a random planar graph in python I am looking to generate a random planar graph in python with around 20 vertices. I checked out this planar graph generator but two problems emerged: The algorithm on the aforementioned GitHub project seems a bit too overkill to generate a random planar graph that doesn’t ha...
https://stackoverflow.com/questions/71009765/generating-a-random-planar-graph-in-python
python, graph, data-analysis
1,644,168,338
se_75551293
stackoverflow
DATA_SCIENCE
How do I remove the automatic breakpoints/coefficients from the segmented package?
How do I remove the automatic breakpoints/coefficients from the segmented package? I have been running analysis on data that involves breakpoints and I'm using the segmented package. When I run my analysis, I get the following output: fit <- lm(XBRrate~Gap, data = batstraining2) summary(fit) segmented.fit <- segmented...
https://stackoverflow.com/questions/75551293/how-do-i-remove-the-automatic-breakpoints-coefficients-from-the-segmented-packag
r, data-analysis
1,677,194,540
se_75549625
stackoverflow
DATA_SCIENCE
i want to fit a model in sklearn but it throws an error. below are the lines of code i used
i want to fit a model in sklearn but it throws an error. below are the lines of code i used I used the lines of code below to fit a model in sklearn. linearmodel =LinearRegression() linearmodel.fit(x_train, y_train) but I get this error: ValueError: could not convert string to float: 'Male' what could be wrong?
https://stackoverflow.com/questions/75549625/i-want-to-fit-a-model-in-sklearn-but-it-throws-an-error-below-are-the-lines-of
python, scikit-learn, regression, data-science, data-analysis
1,677,181,529
se_75523092
stackoverflow
DATA_SCIENCE
Checking the significance of the difference between two groups of different length
Checking the significance of the difference between two groups of different length I need to check if the difference between land surface temperature in the past and present within the LULC is statistically significant. LULC units changed over time and the length of the temperature data changed as well because the cla...
https://stackoverflow.com/questions/75523092/checking-the-significance-of-the-difference-between-two-groups-of-different-leng
r, data-analysis, difference, variable-length, significance
1,676,996,051
se_64854774
stackoverflow
DATA_SCIENCE
TFX / Tensorflow Data Validation (TFDV) does not work on data drift
TFX / Tensorflow Data Validation (TFDV) does not work on data drift I'm not sure what the problem is with the code below. I read the documentations and all of them point to an approach similar to this one. Here is a simple example that doesn't work. My expectation was a notice for the feature x1 since the distribution...
https://stackoverflow.com/questions/64854774/tfx-tensorflow-data-validation-tfdv-does-not-work-on-data-drift
python, pandas, validation, data-analysis, tfx
1,605,515,640
se_75521151
stackoverflow
DATA_SCIENCE
Pandas - Group by week while maintaining perfect chronological records
Pandas - Group by week while maintaining perfect chronological records We have a dataframe that has break events that have happened on a production line. # Example dataframe df = pd.DataFrame({ 'RSNCODE': ['300.306', '100.102', '300.306'], 'BEGTIME': ['2022-06-08 22:21:47', '2022-06-22 14:00:00', '2022-07-25 2...
https://stackoverflow.com/questions/75521151/pandas-group-by-week-while-maintaining-perfect-chronological-records
python, pandas, data-science, data-analysis
1,676,985,988
se_66089872
stackoverflow
DATA_SCIENCE
How to open and view pcd files in Python?
How to open and view pcd files in Python? Problem description: I need to view pcd (point cloud data) files in this specific format (not ply). I've tested libraries such as pypcd (primary solution) and some alternatives such as pyntcloud (secondary solution), open3d, python-pcl and pcd3ply as described in solution prop...
https://stackoverflow.com/questions/66089872/how-to-open-and-view-pcd-files-in-python
pandas, numpy, csv, data-analysis, point-cloud-library
1,612,713,189
se_75516014
stackoverflow
DATA_SCIENCE
Compare data progress in percentage with past version in Google Sheets
Compare data progress in percentage with past version in Google Sheets Hi I have a table with data that is the progress on percentage, but every few days the progress is change so I would like to compare this with a formula this is my table: https://docs.google.com/spreadsheets/d/12seJVgwCmlFJWVj0LQncR_euJlXDi0ATRca7x...
https://stackoverflow.com/questions/75516014/compare-data-progress-in-percentage-with-past-version-in-google-sheets
google-sheets, google-sheets-formula, compare, data-analysis
1,676,949,824
se_75511441
stackoverflow
DATA_SCIENCE
How do i select cells in a column that contain date type values in pandas
How do i select cells in a column that contain date type values in pandas I want to look up the row that contains Transitioning EIN in the Unnamed 17 column and the date of 2021-01-29 in Unnamed 13 column. pic I tried this: df.loc[(df['Unnamed: 17']=='Transitioning EIN') & (df['Unnamed: 13']=="2021-01-29 00:00:00")] ...
https://stackoverflow.com/questions/75511441/how-do-i-select-cells-in-a-column-that-contain-date-type-values-in-pandas
python, pandas, data-science, data-analysis
1,676,908,221
se_75504210
stackoverflow
DATA_SCIENCE
split rows in dataframe into multiple rows in a column
split rows in dataframe into multiple rows in a column I have a dataframe with 10 columns and 15 rows. If I have an empty dataframe df2 with only two columns (A,B), If I want to copy all values in row0 in split it in multiple rows in column (A). The same is for row 2 in column(B). Row 3 in column(A) and so on. I trie...
https://stackoverflow.com/questions/75504210/split-rows-in-dataframe-into-multiple-rows-in-a-column
python, pandas, data-analysis
1,676,850,890
se_75501763
stackoverflow
DATA_SCIENCE
How to convert pandas object to either currency or int?
How to convert pandas object to either currency or int? I am working on an EDA side project with the Unicorn dataset from maven analytics. There is a column VALUATION with entries like $1B,$150M, etc. I want to convert it to either a currency or int format.
https://stackoverflow.com/questions/75501763/how-to-convert-pandas-object-to-either-currency-or-int
python, pandas, data-analysis
1,676,825,365
se_75496349
stackoverflow
DATA_SCIENCE
I am seeing this error in server.py file, &quot; The browser (or proxy) sent a request that this server could not understand.&quot;
I am seeing this error in server.py file, &quot; The browser (or proxy) sent a request that this server could not understand.&quot; Here I am attaching my server.py and util.py I have trained a model, and now wish to print the data on user's demand. server.py from flask import Flask, request, jsonify #from waitress im...
https://stackoverflow.com/questions/75496349/i-am-seeing-this-error-in-server-py-file-the-browser-or-proxy-sent-a-reques
python, machine-learning, flask, data-science, data-analysis
1,676,753,805
se_75498350
stackoverflow
DATA_SCIENCE
NameError: name &quot; &quot; is not defined
NameError: name &quot; &quot; is not defined New to python programming,While I was analysing spotify Datasets I got this error. What I was doing was Plot a Line Graph to Show the Duration of the Songs for Each Year. Any idea how do i fix this? enter image description here sns.displot(years,discrete=True,aspect=2,heigh...
https://stackoverflow.com/questions/75498350/nameerror-name-is-not-defined
python, data-analysis, nameerror
1,676,787,354
se_73612523
stackoverflow
DATA_SCIENCE
About Data Cleaning
About Data Cleaning I am a pretty amateur data science student and I am working on a project where I compared two servers in a team based game but my two datasets are formatted differently from one another. One column for instance would be first blood, where one set of data stores this information as "blue_team_first_...
https://stackoverflow.com/questions/73612523/about-data-cleaning
python, sql, pandas, data-science, data-analysis
1,662,396,671
se_75477244
stackoverflow
DATA_SCIENCE
parsing the xml file using pandas
parsing the xml file using pandas So, I'm trying to extract information from this xml -- <bdb:getTargetByCompoundResponse xmlns:bdb="http://ws.bindingdb.org/xsd"> <bdb:smile>C[C@H]1[C@H](C)CC[C@]2(C)CC[C@]3(C)C(=CC(=O)[C@@H]4[C@@]5(C)CC[C@@H](O)[C@](C)(C(=O)O)[C@@H]5CC[C@]43C)[C@H]12</bdb:smile> <bdb:inchi>InChI...
https://stackoverflow.com/questions/75477244/parsing-the-xml-file-using-pandas
python, pandas, xml-parsing, data-analysis, bioinformatics
1,676,577,118
se_75412862
stackoverflow
DATA_SCIENCE
Ordering data in python or excel
Ordering data in python or excel I have a large csv file of unordered data. It consists of music tags. I am trying to group all of the similar tags together for easier analysis. An example of what I have: Band1, hiphop, pop, rap Band2, rock, rap, pop band3, hiphop, rap The output I am looking for would be lik...
https://stackoverflow.com/questions/75412862/ordering-data-in-python-or-excel
python, excel, sorting, data-analysis
1,676,041,798
se_75470255
stackoverflow
DATA_SCIENCE
dplyr cross tab with missing values (updated 2022)
dplyr cross tab with missing values (updated 2022) Would it be possible to update the answer given here: dplyr cross tab with missing values code: library(tidyr) mtcars %>% mutate( cyl = ifelse(cyl > 6, NA, cyl), gear = ifelse(gear > 4, NA, gear) ) %>% group_by(cyl, gear) %>% tally() %>% ungroup() %>...
https://stackoverflow.com/questions/75470255/dplyr-cross-tab-with-missing-values-updated-2022
r, data-analysis
1,676,539,918
se_75468375
stackoverflow
DATA_SCIENCE
How to turn the first image into the second using python pandas?
How to turn the first image into the second using python pandas? I want to only keep the last location(level2) entry for every last name (eg:Balchunias,London etc). How do i do it? I want to turn this: to this:
https://stackoverflow.com/questions/75468375/how-to-turn-the-first-image-into-the-second-using-python-pandas
python, excel, pandas, data-science, data-analysis
1,676,527,118
se_75458143
stackoverflow
DATA_SCIENCE
SQL INNER JOIN syntax Error BigQuery // New to SQL
SQL INNER JOIN syntax Error BigQuery // New to SQL I'm getting this error "No matching signature for operator = for argument types: INT64, STRING. Supported signature: ANY = ANY at [9:6] " while trying to JOIN two table in BQ, Login ID column is listed in the two tables but BQ shows that there's an error on line 9ente...
https://stackoverflow.com/questions/75458143/sql-inner-join-syntax-error-bigquery-new-to-sql
sql, google-bigquery, syntax, inner-join, data-analysis
1,676,455,407
se_75443317
stackoverflow
DATA_SCIENCE
Power BI : how to create measure that refer other measure (DAX)
Power BI : how to create measure that refer other measure (DAX) i try to create a matrix visual with measure as column and the KPI as row. the issue is occur when the measure should accommodate each KPI calculation, so i think that create a measure that refer other measure(each KPI calculation) is the solution. please...
https://stackoverflow.com/questions/75443317/power-bi-how-to-create-measure-that-refer-other-measure-dax
matrix, powerbi, dax, data-analysis, measure
1,676,347,102
se_54304913
stackoverflow
DATA_SCIENCE
Differences between seaborn histogram, countplot and distplot
Differences between seaborn histogram, countplot and distplot I think they all look the same but there must be some difference. They all take a single column as input, and the y-axis has the count for all plots.
https://stackoverflow.com/questions/54304913/differences-between-seaborn-histogram-countplot-and-distplot
python, matplotlib, visualization, seaborn, data-analysis
1,548,148,754
se_75439389
stackoverflow
DATA_SCIENCE
Power BI Gantt Chart
Power BI Gantt Chart Can someone enlighten me on how to create a visual like this? Visual that show how long the business proposal has been and if they are still in negotiating phase or closing deals already. I tried searching all over the internet for a week now, but until now I can't find any answer. Hope someone hi...
https://stackoverflow.com/questions/75439389/power-bi-gantt-chart
powerbi, data-analysis, powerbi-desktop, deneb
1,676,309,921
se_75443106
stackoverflow
DATA_SCIENCE
Loading Data into Snowflake table from a CSV file
Loading Data into Snowflake table from a CSV file I've been trying to add data from a csv file into snowflake database. I use the load data GUI option to upload the data. The problem is that since it is a CSV file ',' is the delimiter and the data inside one of the columns has , in it so it is considering it as a deli...
https://stackoverflow.com/questions/75443106/loading-data-into-snowflake-table-from-a-csv-file
excel, snowflake-cloud-data-platform, data-analysis, data-cleaning
1,676,343,989
se_75418010
stackoverflow
DATA_SCIENCE
Measure similarity of objects over a period of time
Measure similarity of objects over a period of time I've got a dataset that has monthly metrics for different stores. Each store has three monthly (Total sales, customers and transaction count), my task is over a year I need to find the store that most closely matches a specific test store (Ex: Store 77). Therefore ov...
https://stackoverflow.com/questions/75418010/measure-similarity-of-objects-over-a-period-of-time
math, data-science, data-analysis, similarity
1,676,087,788
se_75423156
stackoverflow
DATA_SCIENCE
get second highest value from a dimension
get second highest value from a dimension click to view the image of the dataset here as we can see there is a state , there is a election constituency , and then there are multiple candidates who contested a election for the said constituency .... now i want is to get the second highest vote acquirer in tableau ... ...
https://stackoverflow.com/questions/75423156/get-second-highest-value-from-a-dimension
tableau-api, data-analysis, tableau-desktop
1,676,147,914
se_75428059
stackoverflow
DATA_SCIENCE
Flag accounts on the basis of reapplication logic ( case of multiple entries by one person)
Flag accounts on the basis of reapplication logic ( case of multiple entries by one person) I'm doing a case study for which I need some help. Background - There are a bunch of people who have applied for Visa and have made multiple applications through different channels. I have to find out if a person has reapplied ...
https://stackoverflow.com/questions/75428059/flag-accounts-on-the-basis-of-reapplication-logic-case-of-multiple-entries-by
sas, data-analysis, sas-macro, proc-sql, enterprise-guide
1,676,215,331
se_75422549
stackoverflow
DATA_SCIENCE
I am trying to fit my data for Linear Regression and getting this error
I am trying to fit my data for Linear Regression and getting this error > this is the error i am getting, i am new to python please help with this. ########################################################################## ValueError Traceback (most recent call last) Cell In[97], line 4 ...
https://stackoverflow.com/questions/75422549/i-am-trying-to-fit-my-data-for-linear-regression-and-getting-this-error
python, linear-regression, data-analysis, google-analytics-api, exploratory-data-analysis
1,676,141,413
se_75417991
stackoverflow
DATA_SCIENCE
How to segregate an monthly data from daily data using sql or bigquery?
How to segregate an monthly data from daily data using sql or bigquery? We are receiving data monthly for some ids and daily for some ids. I need to segregate the data as monthly or daily before applying the logic required for further analysis. i have tried to use datadiff sql function to do that, but its not really h...
https://stackoverflow.com/questions/75417991/how-to-segregate-an-monthly-data-from-daily-data-using-sql-or-bigquery
sql, machine-learning, google-bigquery, data-analysis
1,676,087,331
se_64435944
stackoverflow
DATA_SCIENCE
How to solve sklearn error: &quot;Found input variables with inconsistent numbers of samples&quot;?
How to solve sklearn error: &quot;Found input variables with inconsistent numbers of samples&quot;? I have a challenge using the sklearn 70-30 division. I receive an error on line: X_train, X_test, y_train, y_test = train_test_split(X_smote, y_smote, test_size=0.3, stratify=y) The error is: Found input variables with...
https://stackoverflow.com/questions/64435944/how-to-solve-sklearn-error-found-input-variables-with-inconsistent-numbers-of
python, data-analysis, sklearn-pandas, train-test-split
1,603,146,855
se_65507361
stackoverflow
DATA_SCIENCE
Web scraping Yahoo financial statements -Balance sheet
Web scraping Yahoo financial statements -Balance sheet I was trying to scrape balance sheet from Yahoo Finance using Python but couldn't get the expanded information. What should I add to my code to get the detailed financial data? Code used: for table_row in table_rows: parsed_row=[] el=table_row.xpath('./di...
https://stackoverflow.com/questions/65507361/web-scraping-yahoo-financial-statements-balance-sheet
python, data-analysis
1,609,333,102
se_75390285
stackoverflow
DATA_SCIENCE
How to calculate the volume under a 3d plot in Python?
How to calculate the volume under a 3d plot in Python? We have been given a task to calculate an excavation volume using python given the 3D coordinates under a seabed. Is there a way, after plotting this, to calculate the volume under the 3D curve? I have theoretically found ways that i can plot this using plotly or ...
https://stackoverflow.com/questions/75390285/how-to-calculate-the-volume-under-a-3d-plot-in-python
python, plot, data-analysis
1,675,881,218
se_75363346
stackoverflow
DATA_SCIENCE
How install kmapper?
How install kmapper? I have installed kmapper since command prompt, but when I import kmapper in jupyter notebook is visualized a error: No module named kmapper. What can I do? I should install kmapper, please help me.
https://stackoverflow.com/questions/75363346/how-install-kmapper
python, anaconda, data-analysis
1,675,697,496
se_75383862
stackoverflow
DATA_SCIENCE
referral system analyses with pandas
referral system analyses with pandas I have excel file which looks like this: currently i have excel file with this data: column 1 - date, column 2 - user id, column 3 - parent of user, column 4 - grandparent of user(i.e. parent of previous user), column 5 - parent of previous user, column 6 - parent of previous user,...
https://stackoverflow.com/questions/75383862/referral-system-analyses-with-pandas
python, excel, pandas, data-analysis, referrals
1,675,849,393
se_75381524
stackoverflow
DATA_SCIENCE
How to reset running total for a column if null is present?
How to reset running total for a column if null is present? I have a table as below Customer Start_Date_of_Month Sales_order_count Value A 01/06/2022 3 null B 01/07/2022 2 null A 01/07/2022 0 1 A 01/08/2022 0 1 B 01/08/2022 0 1 A 01/09/2022 3 null B 01/09/2022 1 null A 01/10/2022 1 null B 01/10...
https://stackoverflow.com/questions/75381524/how-to-reset-running-total-for-a-column-if-null-is-present
mysql, sql, data-analysis
1,675,832,286
se_75379512
stackoverflow
DATA_SCIENCE
I need help writing a function in EXCEL
I need help writing a function in EXCEL I have data where I have the country code, and the year. each country has a population according to that year. however, I want to add a column with the GDP for each country for each year. I didn't succeed to create a function in excel that matched the data from one sheet to anot...
https://stackoverflow.com/questions/75379512/i-need-help-writing-a-function-in-excel
excel, excel-formula, data-analysis
1,675,807,944
se_75378673
stackoverflow
DATA_SCIENCE
I need to create a column based on overall pass/fail performance using Python
I need to create a column based on overall pass/fail performance using Python Asset performance 1 pass 1 fail 2 pass 3 fail 3 fail 4 pass I have two columns. In column A are key values that may repeat, and in column B are individual instances of pass/fail. I need to create a column C using Pandas tha...
https://stackoverflow.com/questions/75378673/i-need-to-create-a-column-based-on-overall-pass-fail-performance-using-python
python, pandas, automation, data-analysis
1,675,801,753
se_75363058
stackoverflow
DATA_SCIENCE
R: change timedate &lt;chr&gt; to separate date &lt;date&gt; and time&lt;hms&gt;
R: change timedate &lt;chr&gt; to separate date &lt;date&gt; and time&lt;hms&gt; I have a date column that's output is in chr format: glimpse(november$start_at): chr [1:337735] "01/11/2022 00:00" "01/11/2022 00:00" "01/11/2022 00:00" "01/11/2022 00:00" "01/11/2022 00:01" "01/11/2022 06:43" I want to separate this in...
https://stackoverflow.com/questions/75363058/r-change-timedate-chr-to-separate-date-date-and-timehms
r, data-analysis
1,675,696,025
se_75363515
stackoverflow
DATA_SCIENCE
I want to create a new frequency column for each column in a pandas dataframe
I want to create a new frequency column for each column in a pandas dataframe Let's say I have a dataframe like this: colors animals yellow cat yellow cat red cat red cat blue cat I want to create a column for each column showing the frequency in which each value happens: colors colors_frequenc...
https://stackoverflow.com/questions/75363515/i-want-to-create-a-new-frequency-column-for-each-column-in-a-pandas-dataframe
python, pandas, data-analysis, exploratory-data-analysis
1,675,698,318
se_75334132
stackoverflow
DATA_SCIENCE
how to create new column and store value using equation
how to create new column and store value using equation The column size has multiple values. Tor x in column size, y (predicted value) is calculated. How do display existing column size and predicted value y? for x in df['size']: y=(0.7118*x)+1.1691
https://stackoverflow.com/questions/75334132/how-to-create-new-column-and-store-value-using-equation
python, pandas, data-analysis
1,675,418,661
se_75350528
stackoverflow
DATA_SCIENCE
How to find sum of these values in Pandas?
How to find sum of these values in Pandas? I'm trying to create a script for analysing my datas. Here is my problem. Let's say I have an excel file like that. Code Value A1 20 B1 30 A1 15 C1 20 B1 20 I need Pandas to do this file like this. And write an excel file. I got an excel file like this. A1 35 ...
https://stackoverflow.com/questions/75350528/how-to-find-sum-of-these-values-in-pandas
python, pandas, data-analysis, sum-of-digits
1,675,579,394
se_75348629
stackoverflow
DATA_SCIENCE
Can I update a column I created to show the day of the week from an existing date column in BigQuery?
Can I update a column I created to show the day of the week from an existing date column in BigQuery? I created a column called DayofWeek, and I am attempting to update it and insert that day of the week for the date that is in an existing column called ActivityDate. ##Used to create the column ALTER TABLE `bellabeat-...
https://stackoverflow.com/questions/75348629/can-i-update-a-column-i-created-to-show-the-day-of-the-week-from-an-existing-dat
sql, database, google-bigquery, data-analysis
1,675,547,696
se_75328835
stackoverflow
DATA_SCIENCE
How do i fix this particular error in Excel when using Azure Machine Learning to do Sentiment Analysis?
How do i fix this particular error in Excel when using Azure Machine Learning to do Sentiment Analysis? Obtaining error when using Azure Machine Learning add-in in Excel when doing Sentiment Analysis. I keep receiving the following error when i use Azure ML to predict. Error i receive is: Error! {"error":{"code":"Libr...
https://stackoverflow.com/questions/75328835/how-do-i-fix-this-particular-error-in-excel-when-using-azure-machine-learning-to
excel, machine-learning, data-analysis, sentiment-analysis, azure-machine-learning-service
1,675,371,283
se_75342991
stackoverflow
DATA_SCIENCE
Determining if certain courses are taken together frequently in a term. R analysis
Determining if certain courses are taken together frequently in a term. R analysis Assuming a table that gives student ID and the courses they took (like English 101, Math 101, etc) and the term term the course was taken in (Fall 2022, Spring 2023, etc) what is the best way to go about finding if students tended to ta...
https://stackoverflow.com/questions/75342991/determining-if-certain-courses-are-taken-together-frequently-in-a-term-r-analys
r, data-analysis
1,675,485,682
se_75342892
stackoverflow
DATA_SCIENCE
How to return the last n number of values corresponding to a specific category?
How to return the last n number of values corresponding to a specific category? I have the following sample data. Date Category Price Quantity 02-01-2019 BASE_Y-20 279 1 02-01-2019 BASE_Y-21 271.25 0 03-01-2019 BASE_Y-20 276.5 2 03-01-2019 BASE_Y-21 266.5 0 04-01-2019 BASE_Y-20 272.88 ...
https://stackoverflow.com/questions/75342892/how-to-return-the-last-n-number-of-values-corresponding-to-a-specific-category
excel, excel-formula, data-analysis
1,675,483,700
se_75333842
stackoverflow
DATA_SCIENCE
How to get Inactive Months cumulatively using SQL
How to get Inactive Months cumulatively using SQL I have a sales table as following Customer Sale_order_ID Date Amount A 1211 21/06/2022 1000 A 1212 05/07/2022 1250 B 1213 25/07/2022 1500 A 1214 25/07/2022 1550 B 1215 11/09/2022 1000 B 1216 05/10/2022 1250 A 1217 25/10/2022 1500 B 1218 28/10/2022...
https://stackoverflow.com/questions/75333842/how-to-get-inactive-months-cumulatively-using-sql
mysql, sql, data-analysis
1,675,416,853
se_75315115
stackoverflow
DATA_SCIENCE
How do I identify and extract events from a time-series dataframe?
How do I identify and extract events from a time-series dataframe? I have a time series dataset that looks like this: The time-series After I import the dataset into a pandas dataframe in Python, I would like to: Identify all of the increases above zero as individual events Calculate the area under the curve for each...
https://stackoverflow.com/questions/75315115/how-do-i-identify-and-extract-events-from-a-time-series-dataframe
python, pandas, dataframe, data-analysis, exploratory-data-analysis
1,675,278,906
se_75307017
stackoverflow
DATA_SCIENCE
I am unable to import csv file in python
I am unable to import csv file in python I am facing an issue regarding in python , when I import the csv file in python it is showing the data in VSCode. means file is running and successfully imported but when I want to create a report of same csv file by using from pandas_profiling import ProfileReport it shows me ...
https://stackoverflow.com/questions/75307017/i-am-unable-to-import-csv-file-in-python
python, csv, machine-learning, analytics, data-analysis
1,675,237,765
se_75216508
stackoverflow
DATA_SCIENCE
How to amend defined function to calculate wanted output (Pandas)
How to amend defined function to calculate wanted output (Pandas) I am trying to calculate the following 'new_field' column by triple looping through the 'name', 'val_id' and 'fac_id' column with the following conditions. 1.Within each 'val_id' loop if 'product' == 'CL' then min of 'val_against' and 'our_val_amt' e.g....
https://stackoverflow.com/questions/75216508/how-to-amend-defined-function-to-calculate-wanted-output-pandas
python, pandas, dataframe, analytics, data-analysis
1,674,521,511
se_75286426
stackoverflow
DATA_SCIENCE
Mean centering before PCA
Mean centering before PCA I am unsure if this kind of question (related to PCA) is acceptable here or not. However, it is suggested to do MEAN CENTER before PCA, as known. In fact, I have 2 different classes (Each different class has different participants.). My aim is to distinguish and classify those 2 classes. Stil...
https://stackoverflow.com/questions/75286426/mean-centering-before-pca
python, data-analysis, pca, centering
1,675,091,977
se_75288294
stackoverflow
DATA_SCIENCE
BigQuery SQL giving weird error on subquery
BigQuery SQL giving weird error on subquery I've been trying to run a subquery in GCP BigQuery but it's giving an error. This is part of the Google Data Analytics course. The intent is to "compare the number of bikes available at the station with the average number of bikes available" The dataset is bigquery-public-da...
https://stackoverflow.com/questions/75288294/bigquery-sql-giving-weird-error-on-subquery
sql, google-bigquery, subquery, data-analysis
1,675,101,225
se_75289872
stackoverflow
DATA_SCIENCE
how to transcope a part of column as rows in pandas
how to transcope a part of column as rows in pandas i have a data of some patients and they are in a configuration that cant be used for data analysis we have a couple of patients that each patients have multiple visits to our clinic. therefor, in our data we have a row for a visit an it contains some data and as i me...
https://stackoverflow.com/questions/75289872/how-to-transcope-a-part-of-column-as-rows-in-pandas
pandas, data-science, data-analysis
1,675,111,068
se_75230297
stackoverflow
DATA_SCIENCE
Any python package that can be used to handle METEOR RADAR data sets?
Any python package that can be used to handle METEOR RADAR data sets? Is there any existing python package that can be used to handle METEOR RADAR data sets which are in .hwd file format? I want to work on atmoshpereic science project on tide analysis in the MLT region using python.So, the source of the data is METEOR...
https://stackoverflow.com/questions/75230297/any-python-package-that-can-be-used-to-handle-meteor-radar-data-sets
python-3.x, machine-learning, data-analysis, physics, atmosphere
1,674,627,534
se_75281869
stackoverflow
DATA_SCIENCE
ModuleNotFoundError: my script can&#39;t find the module that I had written for my data analysis
ModuleNotFoundError: my script can&#39;t find the module that I had written for my data analysis I am working on project for my thesis and wrote a data analysis program with fellow students. Originally I had used the program on my windows laptop where everything worked just fine. Unfortunately, my laptop broke and now...
https://stackoverflow.com/questions/75281869/modulenotfounderror-my-script-cant-find-the-module-that-i-had-written-for-my-d
python, package, anaconda, data-analysis, modulenotfounderror
1,675,067,671
se_54615768
stackoverflow
DATA_SCIENCE
Errors when using getSymbols() quantmod to predict stock price
Errors when using getSymbols() quantmod to predict stock price I was trying to use quantmod to download some history data of stock price, here's my code: Nasdaq100_Symbols <- c('GE','PG','MSFT','AAPL','PFE','AMD','DELL','GRPN','FB','CSCO','INTC', 'EZJ.L','BP','HSBC','MKS') getSymbols(Nasdaq100_Sym...
https://stackoverflow.com/questions/54615768/errors-when-using-getsymbols-quantmod-to-predict-stock-price
r, time-series, data-science, data-analysis, business-intelligence
1,549,796,990
se_75275800
stackoverflow
DATA_SCIENCE
Accidently deleted all my jupyter notebook data still showing data in jupyter Variables
Accidently deleted all my jupyter notebook data still showing data in jupyter Variables Hi i accidentelly deleted my jupyterlab notebook data i was trying to save the data from ipynb into csv format I used the command: path = ('F:\jupyter Lab Projects\Automotive residual value.ipynb') df.to_csv(path) after i exeuted ...
https://stackoverflow.com/questions/75275800/accidently-deleted-all-my-jupyter-notebook-data-still-showing-data-in-jupyter-va
python, pandas, jupyter-notebook, export-to-csv, data-analysis
1,675,003,856
se_75272470
stackoverflow
DATA_SCIENCE
How to sum rows that start with the same string
How to sum rows that start with the same string I used pandas to clean a csv: import pandas as pd import numpy as np df = pd.read_csv(r'C:\Users\Leo90\Downloads\data-export.csv',encoding='utf-8', header=None, sep='\n') df = df[0].str.split(',', expand=True) df=df.iloc[:,[0,1,2,3,4,5,6,7]] df=df.replace(to_replace='No...
https://stackoverflow.com/questions/75272470/how-to-sum-rows-that-start-with-the-same-string
python, pandas, dataframe, numpy, data-analysis
1,674,963,819
se_75273956
stackoverflow
DATA_SCIENCE
Strange behaviour in multithread analysis
Strange behaviour in multithread analysis for a university project we are implementing an algorithm capable of bruteforcing on an AES key that we assume is partially known. We have implemented several versions including one that exploits the multithreading mechanism in C++. The implementation is done by allocating a v...
https://stackoverflow.com/questions/75273956/strange-behaviour-in-multithread-analysis
c++, multithreading, data-analysis
1,674,985,426
se_75272199
stackoverflow
DATA_SCIENCE
Filter Data in Python
Filter Data in Python Among 99 Iowa counties, only the following 10 counties have a population close to or more than 100 000. Filter and name the dataset, so you only have the data from the counties: Polk, Linn, Scott, Johnson, Black Hawk, Woodbury, Dubuque, Story, Dallas, and Pottawattamie. Resent the index of the f...
https://stackoverflow.com/questions/75272199/filter-data-in-python
python, data-analysis
1,674,958,101
se_75268167
stackoverflow
DATA_SCIENCE
How add column in Pandas with using 2 existing columns?
How add column in Pandas with using 2 existing columns? There is my problem . Like the question said I try find the largest value . Actually , I didn't understand the question to . That question is my first question so if I not describe my problem and myself sorry .
https://stackoverflow.com/questions/75268167/how-add-column-in-pandas-with-using-2-existing-columns
python, pandas, data-analysis
1,674,914,283
se_75259777
stackoverflow
DATA_SCIENCE
Architectural pattern for multiple Python applications with shared database
Architectural pattern for multiple Python applications with shared database The project consists of two applications in Python with a single shared database: Application A: performs preprocessing of raw data and stores it in the database; Application B: performs data analysis techniques on the already populated data...
https://stackoverflow.com/questions/75259777/architectural-pattern-for-multiple-python-applications-with-shared-database
python, design-patterns, architecture, data-analysis
1,674,831,262
se_75244870
stackoverflow
DATA_SCIENCE
Data maturity monitors
Data maturity monitors Does anyone know what data maturity monitors are and How to create data maturity monitors for a table in GCP? I am new to gcp data engineering. I have tried in google but couldnt find what data maturity monitors are.
https://stackoverflow.com/questions/75244870/data-maturity-monitors
database, google-cloud-platform, google-bigquery, data-analysis, data-warehouse
1,674,728,872
se_75238694
stackoverflow
DATA_SCIENCE
SAS: How to vertically join multiple datasets where a variable is numeric in one dataset and character in the other
SAS: How to vertically join multiple datasets where a variable is numeric in one dataset and character in the other This is complicated a little because we're using a pipeline with a filelist to compile the data, so there are 50+ datasets coming in. I need to combine many, many datasets vertically, but var2 is numeric...
https://stackoverflow.com/questions/75238694/sas-how-to-vertically-join-multiple-datasets-where-a-variable-is-numeric-in-one
sas, data-analysis, sas-macro
1,674,673,435
se_75217117
stackoverflow
DATA_SCIENCE
Finding value of a parameter using set of data
Finding value of a parameter using set of data I have a set of value for x and y and I'm looking to find a way to find the value of a parameter for a function. I have a function y = Ax^{4/3}. I was thinking about using curvefit, but I'm not sure if this is the right way. I tried to linearize the function and find the ...
https://stackoverflow.com/questions/75217117/finding-value-of-a-parameter-using-set-of-data
python, data-analysis, curve-fitting
1,674,530,373
se_41780489
stackoverflow
DATA_SCIENCE
python pandas: how to calculate derivative/gradient
python pandas: how to calculate derivative/gradient Given that I have the following two vectors: In [99]: time_index Out[99]: [1484942413, 1484942712, 1484943012, 1484943312, 1484943612, 1484943912, 1484944212, 1484944511, 1484944811, 1484945110] In [100]: bytes_in Out[100]: [1293981210388, 1293981379944...
https://stackoverflow.com/questions/41780489/python-pandas-how-to-calculate-derivative-gradient
python, pandas, data-analysis
1,485,008,699
se_75220761
stackoverflow
DATA_SCIENCE
Query not running properly
Query not running properly I ran a query using google big query but I get an error as a result. I don't know what could be wrong. SELECT usertype, CONCAT(start_station_name, " to ", end_station_name) AS route, COUNT(*) as num_trips, ROUND(AVG(CAST(tripduration AS INT64)/60),2) AS duration FROM `bigquery-public-...
https://stackoverflow.com/questions/75220761/query-not-running-properly
database, validation, google-bigquery, analytics, data-analysis
1,674,559,371
se_75221884
stackoverflow
DATA_SCIENCE
Python Data Transformation--EDA
Python Data Transformation--EDA Trying to transform my data from lm-stands for last month hopefully this makes sense ,how i have it import pandas as pd df = pd.read_excel('data.xlsx') #reading data output = [] grouped = df.groupby('txn_id') for txn_id, group in grouped: avg_amt = group['avg_amount'].iloc[-1] min_a...
https://stackoverflow.com/questions/75221884/python-data-transformation-eda
python, pandas, dataframe, data-analysis, data-transform
1,674,565,369
se_75038773
stackoverflow
DATA_SCIENCE
Why does the program return different value when I order the list differently?
Why does the program return different value when I order the list differently? I'm trying to learn how to analyze large data better, and I wanted to make a program where by inputting a CSV of keywords you can look for the occurrence of each in a second data csv. I setup this code as an example, I created a list of key...
https://stackoverflow.com/questions/75038773/why-does-the-program-return-different-value-when-i-order-the-list-differently
python, pandas, for-loop, statistics, data-analysis
1,673,076,927
se_75204791
stackoverflow
DATA_SCIENCE
Faster Way to Implement Gaussian Smoothing? (Python 3.10, NumPy)
Faster Way to Implement Gaussian Smoothing? (Python 3.10, NumPy) I'm attempting to implement a Gaussian smoothing/flattening function in my Python 3.10 script to flatten a set of XY-points. For each data point, I'm creating a Y buffer and a Gaussian kernel, which I use to flatten each one of the Y-points based on it's...
https://stackoverflow.com/questions/75204791/faster-way-to-implement-gaussian-smoothing-python-3-10-numpy
python, numpy, data-analysis
1,674,432,506
se_74158044
stackoverflow
DATA_SCIENCE
How do I create a filter to select a single term from a string in Tableau? I need to be able to select multiple terms
How do I create a filter to select a single term from a string in Tableau? I need to be able to select multiple terms for example my data looks something like this: Name Age Dessert maria 12 cake; ice cream; cookies; candy hannah 20 cake; candy brian 8 ice cream; cookies liam 13 candy julie 32 cake; co...
https://stackoverflow.com/questions/74158044/how-do-i-create-a-filter-to-select-a-single-term-from-a-string-in-tableau-i-nee
excel, string, visualization, tableau-api, data-analysis
1,666,378,256
se_75188925
stackoverflow
DATA_SCIENCE
How to count number of people for each month, who was on internship, if we know dates of internship
How to count number of people for each month, who was on internship, if we know dates of internship First of all, sorry for bad title - I can't figure out how to write generalized formulation of my problem. I have a table in PostgreSQL with users and dates of their internships. It looks like this: user_id start en...
https://stackoverflow.com/questions/75188925/how-to-count-number-of-people-for-each-month-who-was-on-internship-if-we-know
sql, postgresql, data-analysis
1,674,245,511
se_75196680
stackoverflow
DATA_SCIENCE
If a string or multiple strings from a list matches the value(strings) from a specific column then, how to populate a new column with matched strings?
If a string or multiple strings from a list matches the value(strings) from a specific column then, how to populate a new column with matched strings? I have a pandas data frame and a list. I am trying to match the list of string with the data frame and fill a new column named system_name with the matched string or st...
https://stackoverflow.com/questions/75196680/if-a-string-or-multiple-strings-from-a-list-matches-the-valuestrings-from-a-sp
python, pandas, dataframe, data-science, data-analysis
1,674,336,457
se_75190156
stackoverflow
DATA_SCIENCE
Extracting interpolated data along a line between 2 points of a scalar located at nodes of a 2-D unstructured mesh
Extracting interpolated data along a line between 2 points of a scalar located at nodes of a 2-D unstructured mesh I have a csv of data in the following form: x-coordinate y-coordinate scalar 0 0 0.2344 0.1 0.25 12.588 ... ... ... 0.65 0.8 0.4438 1 1 12.5 This data is from a simulation performed on...
https://stackoverflow.com/questions/75190156/extracting-interpolated-data-along-a-line-between-2-points-of-a-scalar-located-a
python, scipy, interpolation, data-analysis
1,674,256,608
se_75176203
stackoverflow
DATA_SCIENCE
Cleaning a messy Dataset
Cleaning a messy Dataset I got an originally txt file converted to csv. I have the column names but there is practically one row in the unprocessed dataset. How do I clean the dataset using pandas,numpy exc.methods so that each string/int between every comma will be placed in seperated column with the proper column na...
https://stackoverflow.com/questions/75176203/cleaning-a-messy-dataset
python, pandas, numpy, machine-learning, data-analysis
1,674,149,891
se_75165861
stackoverflow
DATA_SCIENCE
How can I extract route alert data from Waze?
How can I extract route alert data from Waze? I've just made a long car travel and Waze gave me great alerts about the road quality. I'd like to share this info with the oversight authorities. Some of the roads were really bad and Waze informed about the road spots that needed maintenance. Is it possible to extract th...
https://stackoverflow.com/questions/75165861/how-can-i-extract-route-alert-data-from-waze
data-analysis, waze
1,674,080,526