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_77484906
stackoverflow
DATA_SCIENCE
Keyerror : 'count'
Keyerror : 'count' I want to plot a interactive bar plot using plotly.express state_count = df['state'].value_counts().head(10) state_names = df['state'].value_counts().head(10).index Bar_plot = px.bar(df,state_names,state_count, text='1', title='Top 10 states that have the most haunted places...
https://stackoverflow.com/questions/77484906/keyerror-count
pandas, dataframe, plotly, bar-chart, data-analysis
1,700,015,295
se_77479013
stackoverflow
DATA_SCIENCE
How do I get data from several files in one histogram?
How do I get data from several files in one histogram? For a data analysis, I display the data from the individual folders in individual histograms. In order to get a better overview of the scatter of the measured values, I would now like to display all the data from the folders in a single histogram. Unfortunately, t...
https://stackoverflow.com/questions/77479013/how-do-i-get-data-from-several-files-in-one-histogram
python, matplotlib, plot, histogram, data-analysis
1,699,948,960
se_77449297
stackoverflow
DATA_SCIENCE
Moving incorrect values into the right column using R
Moving incorrect values into the right column using R I have a column called Brand_ID where the ID's are supposed to range from 0-6 but there are User_ID numbers that were incorrectly recorded in my Brand_ID column. I've been having trouble finding a way to move these numbers to the right column. Here is a sample of w...
https://stackoverflow.com/questions/77449297/moving-incorrect-values-into-the-right-column-using-r
r, data-analysis, data-cleaning
1,699,481,821
se_77458251
stackoverflow
DATA_SCIENCE
Getting negative value when subtracting two time columns in the PowerQuery
Getting negative value when subtracting two time columns in the PowerQuery I'm just working on the Google's Data Analytics capstone case study. In the give dataset, I need to find the difference between ride started time and the end time. I got correct values overall except few columns. Below I have attached the scree...
https://stackoverflow.com/questions/77458251/getting-negative-value-when-subtracting-two-time-columns-in-the-powerquery
powerbi, powerquery, data-analysis, data-cleaning
1,699,600,519
se_48769727
stackoverflow
DATA_SCIENCE
t-SNE Choosing the Number of Dimensions
t-SNE Choosing the Number of Dimensions I am using t-SNE for exploratory data analysis. I am using this instead of PCA because PCA is linear and t-SNE is non-linear. It's really straight-forward to know how many dimensions are required to capture the necessary variance with PCA. How do I know how many dimensions ar...
https://stackoverflow.com/questions/48769727/t-sne-choosing-the-number-of-dimensions
pca, data-analysis, dimensionality-reduction, multi-dimensional-scaling
1,518,534,103
se_77478526
stackoverflow
DATA_SCIENCE
Data analysis and computing heat index from temperature and humidity data to graph in Python
Data analysis and computing heat index from temperature and humidity data to graph in Python So I'm trying to calculate heat index from the data that 13 different sensors upload into a shared google drive. A picture of what the data looks like is attached here: https://i.sstatic.net/VDCWQ.png. All the data is compiled...
https://stackoverflow.com/questions/77478526/data-analysis-and-computing-heat-index-from-temperature-and-humidity-data-to-gra
python, time-series, data-analysis
1,699,943,054
se_77398330
stackoverflow
DATA_SCIENCE
Pandas Dataframes: Forward Fill Multiple Rows
Pandas Dataframes: Forward Fill Multiple Rows input = pd.DataFrame({ 'Timestamp': [ pd.Timestamp('19/01/2022 10:00:00'), pd.Timestamp('19/01/2022 10:00:00'), pd.Timestamp('19/01/2022 15:00:00'), pd.Timestamp('19/01/2022 15:30:00'), pd.Timestamp('19/01/2022 16:00:00'), ...
https://stackoverflow.com/questions/77398330/pandas-dataframes-forward-fill-multiple-rows
python, pandas, dataframe, data-analysis, fillna
1,698,777,093
se_53488875
stackoverflow
DATA_SCIENCE
R Lubridate is ordering months and weekdays alphabetically by default
R Lubridate is ordering months and weekdays alphabetically by default I'm using Lubridate in R Studio and when I use group by (with dplyr) to group by months or weekdays it sorts it automatically in alphabetical order. How can I change this to date order? Here is the code: df %>% group_by(months(DateColumn)) %>% sum...
https://stackoverflow.com/questions/53488875/r-lubridate-is-ordering-months-and-weekdays-alphabetically-by-default
r, data-analysis, lubridate
1,543,265,520
se_77453767
stackoverflow
DATA_SCIENCE
Fill missing values of a column by mapping the column values with a different column
Fill missing values of a column by mapping the column values with a different column The dataframe looks like this: Year Month 2021 10 2021 11 2021 12 2022 1 2022 2 2022 3 NaN 1 I have to fill the null value in the year column by checking the year of the corresponding month column, i.e., if the...
https://stackoverflow.com/questions/77453767/fill-missing-values-of-a-column-by-mapping-the-column-values-with-a-different-co
python, pandas, dataframe, data-analysis
1,699,538,294
se_77449371
stackoverflow
DATA_SCIENCE
Process a pandas DataFrame in Chunks or optimize memory usage for aggregation features
Process a pandas DataFrame in Chunks or optimize memory usage for aggregation features I'm working on a Jupyter notebook in Python with Pandas for data analysis. When creating new aggregation features, I encounter a "MemoryError" due to the memory capacity of my system. Before this error occurs, I'm performing operati...
https://stackoverflow.com/questions/77449371/process-a-pandas-dataframe-in-chunks-or-optimize-memory-usage-for-aggregation-fe
python, python-3.x, pandas, dataframe, data-analysis
1,699,482,800
se_77445288
stackoverflow
DATA_SCIENCE
How can I fit a dataset with linear function and then with a cosine function?
How can I fit a dataset with linear function and then with a cosine function? I need to fit with Python the following dataset in such a way that for x from -0.65 to -0.049 the fitting is linear and from 0.049 to 1.85 a cosine with a period around 0.400; x = [ 1.85 , 1.74990234, 1.65004883, 1.54995117, 1.45009...
https://stackoverflow.com/questions/77445288/how-can-i-fit-a-dataset-with-linear-function-and-then-with-a-cosine-function
python, data-analysis, curve-fitting, scipy-optimize, data-fitting
1,699,444,374
se_77441797
stackoverflow
DATA_SCIENCE
structures corresponding to metastable states in python
structures corresponding to metastable states in python I have a question, I currently have a Markov state model with 4 metastable states, what I would like is to find the structures corresponding to those metastable states in python.
https://stackoverflow.com/questions/77441797/structures-corresponding-to-metastable-states-in-python
python, data-analysis, biopython, hidden-markov-models, mdanalysis
1,699,395,523
se_17264118
stackoverflow
DATA_SCIENCE
How to capture raw signal from wireless router?
How to capture raw signal from wireless router? I have seen several projects now which derive novel spatial information from radio data collected from a typical wireless router: http://wisee.cs.washington.edu/ http://www.extremetech.com/extreme/133936-using-wifi-to-see-through-walls The idea of using a wireless rou...
https://stackoverflow.com/questions/17264118/how-to-capture-raw-signal-from-wireless-router
wifi, signal-processing, data-analysis
1,372,013,500
se_77429270
stackoverflow
DATA_SCIENCE
Analytics tool for Excel data analysis
Analytics tool for Excel data analysis I want to use a analytics tool to integrate in my spring boot application where I will be uploading an Excel sheet and the tool will determine the columns to create reports or charts. Which tool will be best for it? I tried to find tools but got confused after reading their API d...
https://stackoverflow.com/questions/77429270/analytics-tool-for-excel-data-analysis
java, spring-boot, analytics, data-analysis
1,699,254,195
se_77428912
stackoverflow
DATA_SCIENCE
Joining PowerBI tables in a new Table
Joining PowerBI tables in a new Table I have multiple tables in power query editor named as CGTMSE_2020-21, CGTMSE_2021-22, CGTMSE_2022-23 etc. Table structure for all the tables are exactly similar. (One sample table is attached as screenshot). My requirement is a table as per the following structure: (Financial Year...
https://stackoverflow.com/questions/77428912/joining-powerbi-tables-in-a-new-table
join, powerbi, data-analysis
1,699,248,359
se_77426628
stackoverflow
DATA_SCIENCE
Why is the Plotly bar chart not proportional?
Why is the Plotly bar chart not proportional? I need to show on a barchart the weight value registered each Exam Date, but the Y Axis is not proportional to the value registered. 90kg is shown as smaller than 85kg. What am I missing out? Thanks in advance! # First, ensure that the "ExamDate" column is of datetime data...
https://stackoverflow.com/questions/77426628/why-is-the-plotly-bar-chart-not-proportional
python, plotly, data-analysis, streamlit
1,699,199,844
se_77426747
stackoverflow
DATA_SCIENCE
Creating Dynamic Book Dashboard in Notion: Seeking Help for Real-time Book Collection Insights
Creating Dynamic Book Dashboard in Notion: Seeking Help for Real-time Book Collection Insights I have a book database in Notion, and the properties with sample data are as follows: Name Author Completed Cover Current Page Description Expected Reading Speed Formula Genre Price Progress Rating Status Summary Tags To...
https://stackoverflow.com/questions/77426747/creating-dynamic-book-dashboard-in-notion-seeking-help-for-real-time-book-colle
visualization, data-analysis, notion, notion-js
1,699,201,889
se_77417896
stackoverflow
DATA_SCIENCE
Splitting the data by day and creating a line graph to show over time within the day while layering each id over each other
Splitting the data by day and creating a line graph to show over time within the day while layering each id over each other I have a dataset called hourly_steps_merged with many unique IDs in the Id column. I want to group the data by Date and Id since I have a month's worth of data. I want to layer the unique IDs ove...
https://stackoverflow.com/questions/77417896/splitting-the-data-by-day-and-creating-a-line-graph-to-show-over-time-within-the
python, pandas, seaborn, data-analysis
1,699,025,245
se_77422076
stackoverflow
DATA_SCIENCE
Putting contributions of continuous values in a discrete 2D grid, based on distance from the nearest pixels
Putting contributions of continuous values in a discrete 2D grid, based on distance from the nearest pixels I have a numpy array containing coordinates of points (in 3D, but I am have started off by trying the method in 1D and 2D first) that I would like to fit in a discrete grid. However, I do not want to just move t...
https://stackoverflow.com/questions/77422076/putting-contributions-of-continuous-values-in-a-discrete-2d-grid-based-on-dista
python, numpy, interpolation, data-analysis, bilinear-interpolation
1,699,102,257
se_77420720
stackoverflow
DATA_SCIENCE
Getting "Error: Must request at least one colour from a hue palette." from trying to run ggplot()
Getting "Error: Must request at least one colour from a hue palette." from trying to run ggplot() Having some error that's preventing me from plotting a PCA plot? Here is my output when I run this set of code on terminal. > #pdf(file="pca.mouse.control.pdf") > #performing PCA using top 500 varying genes > pc...
https://stackoverflow.com/questions/77420720/getting-error-must-request-at-least-one-colour-from-a-hue-palette-from-tryin
r, ggplot2, syntax-error, data-analysis
1,699,071,356
se_65755362
stackoverflow
DATA_SCIENCE
Change plot color seaborn package
Change plot color seaborn package I would like to change colors in this plot, it visualizes data properly but as you can see it isn't easy to read because all this colors are very similar (7 classes). Is there simple way to do it? Code for generating plot: sns.pairplot(data, kind="scatter", hue = "Class")
https://stackoverflow.com/questions/65755362/change-plot-color-seaborn-package
python, plot, seaborn, data-analysis
1,610,835,829
se_77415587
stackoverflow
DATA_SCIENCE
how to find a database that contain the list grants in the world
how to find a database that contain the list grants in the world I'm tasked with creating a real-time visualization of grant recipients, aiming to provide transparency and insights. However, I'm facing a significant challenge due to the lack of an accessible, comprehensive database with grant recipient names. I've dil...
https://stackoverflow.com/questions/77415587/how-to-find-a-database-that-contain-the-list-grants-in-the-world
database, fetch, data-analysis
1,699,004,293
se_77394449
stackoverflow
DATA_SCIENCE
How to remove the nulls that show up in the table that I created from my calculated fields
How to remove the nulls that show up in the table that I created from my calculated fields Nulls that show up in the table that I created from my calculated fields, I made calculated fields from already existing date columns called target and forecast dates. This is how the original data set looks like this This is wh...
https://stackoverflow.com/questions/77394449/how-to-remove-the-nulls-that-show-up-in-the-table-that-i-created-from-my-calcula
date, null, data-analysis, tableau-desktop, calculated-field
1,698,742,057
se_77350417
stackoverflow
DATA_SCIENCE
Normalize data to control from independent experiments, subjects and scales
Normalize data to control from independent experiments, subjects and scales I need to normalize the data from several subjects with different controls that have different scales. This to find the best way to present the dataset I have. For this normalization I have tried normalizing by the avg of each control, conside...
https://stackoverflow.com/questions/77350417/normalize-data-to-control-from-independent-experiments-subjects-and-scales
statistics, data-analysis, normalization
1,698,134,680
se_77282432
stackoverflow
DATA_SCIENCE
How can I create a calculated column in Python/Pandas?
How can I create a calculated column in Python/Pandas? I am working on a basic data analysis project. The data being used is COVID-19 cases in a given US county. As you can see in this picture, there is a 'cases' column. The 'cases' column appears to be cumulative, as in every cell is concerned with the total number o...
https://stackoverflow.com/questions/77282432/how-can-i-create-a-calculated-column-in-python-pandas
python, pandas, dataframe, data-analysis, calculated-columns
1,697,128,990
se_77390480
stackoverflow
DATA_SCIENCE
Matrix - vector multiplication with boundary conditions in python
Matrix - vector multiplication with boundary conditions in python I have been assigned to set up a matrix-vector multiplication with boundary conditions, to solve the wave equation using an iterative method. However, I am struggling to set up the question. Sparse matrix problem How would I go about implementing the bo...
https://stackoverflow.com/questions/77390480/matrix-vector-multiplication-with-boundary-conditions-in-python
python, numpy, matrix, data-analysis
1,698,684,435
se_77375338
stackoverflow
DATA_SCIENCE
How to check customer purchase movement
How to check customer purchase movement I want to monitor the purchasing behavior of customers. Each customer can purchase one or more products, with different price ranges for each product. How can I determine if a customer is buying consistently, switching to a smaller bundle, or upgrading to a larger bundle? As of...
https://stackoverflow.com/questions/77375338/how-to-check-customer-purchase-movement
sql, oracle-database, data-analysis
1,698,420,142
se_75672158
stackoverflow
DATA_SCIENCE
Need help in downloading PDFs from arxiv dataset which is in kaggle
Need help in downloading PDFs from arxiv dataset which is in kaggle I am seeking assistance with downloading PDFs from the arxiv dataset, which is available on Kaggle, onto my local file system. Ideally, I am looking for a code that allows users to input the subject name and the number of PDFs to download. If anyone h...
https://stackoverflow.com/questions/75672158/need-help-in-downloading-pdfs-from-arxiv-dataset-which-is-in-kaggle
python, web-scraping, data-science, data-analysis
1,678,273,219
se_77373945
stackoverflow
DATA_SCIENCE
I am stuck in how to use the return output of a function into another function
I am stuck in how to use the return output of a function into another function I want to use the result of a function in another function to do comparison and print out the balance. But the code is repeating itself twice and not giving me the required result Below is part of the code def coins(): print("Please ins...
https://stackoverflow.com/questions/77373945/i-am-stuck-in-how-to-use-the-return-output-of-a-function-into-another-function
python, data-analysis
1,698,407,705
se_77363961
stackoverflow
DATA_SCIENCE
Facing issues with StatbombR library
Facing issues with StatbombR library Pretty new to R and analytics would really appreciate some help with this. Whenever I try and select data, even tho I go through the PDF as it says from the StatbombR website. https://statsbomb.com/wp-content/uploads/2021/11/Working-with-R.pdf Gives me the following error. Error in...
https://stackoverflow.com/questions/77363961/facing-issues-with-statbombr-library
r, data-analysis
1,698,291,119
se_77361663
stackoverflow
DATA_SCIENCE
My for loop is returning the output as split characters instead of whole strings or integers
My for loop is returning the output as split characters instead of whole strings or integers The first list is created by input, and takes appends a new list, also taken by input function to the first one. But the output is split, not whole strings, but elements of strings. It's the same thing for a list of integers o...
https://stackoverflow.com/questions/77361663/my-for-loop-is-returning-the-output-as-split-characters-instead-of-whole-strings
python, list, methods, data-analysis
1,698,254,406
se_77341961
stackoverflow
DATA_SCIENCE
How to correlate two columns on excel
How to correlate two columns on excel On my Excel worksheet, my 1st column I have 150 ID's of persons who attend to an event. Since I have 5 more columns of ID's (some of different dimensions) is it possible to see if an ID who was present on the 1st event (column 1) was on the remaining events (column 2 to 6)? I've a...
https://stackoverflow.com/questions/77341961/how-to-correlate-two-columns-on-excel
excel, data-analysis
1,698,015,298
se_23762238
stackoverflow
DATA_SCIENCE
Python Pandas figsize not defined
Python Pandas figsize not defined I am new to pandas for data analysis and I just installed pandas with required dependencies (NumPy, python-dateutil, pytz, numexpr, bottleneck and matplotlib). But when I started trying the most basic code: import pandas as pd pd.set_option('display.mpl_style', 'default') # Make the ...
https://stackoverflow.com/questions/23762238/python-pandas-figsize-not-defined
python, pandas, data-analysis
1,400,595,248
se_77335274
stackoverflow
DATA_SCIENCE
Extract Student number
Extract Student number I have excel data which contains many columns, one column called Description has the following data, I want to extract student number from each row using KNIME Example below are three different rows Being Settlement of exam fee, student Number IMIS/C/5946/7/5/2021/5690 in respect of Flora Hamis ...
https://stackoverflow.com/questions/77335274/extract-student-number
data-analysis, knime
1,697,877,231
se_76521211
stackoverflow
DATA_SCIENCE
have two dictionary columns with different lengths want to use series explode but it mismatch
have two dictionary columns with different lengths want to use series explode but it mismatch I have tow columns in my data frame that have multiple dictionarise in it and I want to expand it into multiple columns but the problem when I use explode series it mismatch example: Column A Column B Columns C Cell 1...
https://stackoverflow.com/questions/76521211/have-two-dictionary-columns-with-different-lengths-want-to-use-series-explode-bu
python, pandas, dataframe, data-science, data-analysis
1,687,334,853
se_77188170
stackoverflow
DATA_SCIENCE
TypeError: 'NoneType' object is not iterable when using ucimlrepo
TypeError: 'NoneType' object is not iterable when using ucimlrepo I want to use the Adult dataset from the UCI ML Repo. For this I'm following the "import in python" option in the page, which gives this code: pip install ucimlrepo from ucimlrepo import fetch_ucirepo # fetch dataset adult = fetch_ucirepo(...
https://stackoverflow.com/questions/77188170/typeerror-nonetype-object-is-not-iterable-when-using-ucimlrepo
python, dataset, typeerror, data-analysis
1,695,822,979
se_77276717
stackoverflow
DATA_SCIENCE
How to select values based on several condtions: SUM for one range if met then sum for another range
How to select values based on several condtions: SUM for one range if met then sum for another range I have a table with columns like countries, year, values. I need to find countries where the sum of their values between 2015 and 2018 is 0 and between 2019 and 2022 is greater than 1. I tried to use a subquery but tha...
https://stackoverflow.com/questions/77276717/how-to-select-values-based-on-several-condtions-sum-for-one-range-if-met-then-s
sql, database, google-bigquery, data-analysis
1,697,063,764
se_77263243
stackoverflow
DATA_SCIENCE
Finding an average representation for a set of 2D contours
Finding an average representation for a set of 2D contours I work at a lab and use mice for behavioral studies. Part of what I want to show is how a known stimulus will elicit movement of the ear in a predictable way. I have a script to segment an ear across e.x. 21 video frames and generate contours. When the contou...
https://stackoverflow.com/questions/77263243/finding-an-average-representation-for-a-set-of-2d-contours
python, 2d, data-analysis, image-segmentation
1,696,917,763
se_77255310
stackoverflow
DATA_SCIENCE
.groupby().mean() functions not work with me in data analysis
.groupby().mean() functions not work with me in data analysis In my Python data-analysis project, I have a dataset of employee attrition, so I have a categorical column name (Attrition) with two values: 0 and 1. The rest of the dataset includes int, object data types. It failed to write the (.mean() ) function when I ...
https://stackoverflow.com/questions/77255310/groupby-mean-functions-not-work-with-me-in-data-analysis
python, function, analytics, data-analysis
1,696,798,567
se_77275858
stackoverflow
DATA_SCIENCE
Discrepancy in PCA results between Python's 'sklearn' and R's 'prcomp'
Discrepancy in PCA results between Python's 'sklearn' and R's 'prcomp' I am trying to get the explained variance from PCA results using both Python's sklearn and R's prcomp. However, the results I'm getting are different. Using Python's sklearn, I have the following code: X = China_dc[days].val...
https://stackoverflow.com/questions/77275858/discrepancy-in-pca-results-between-pythons-sklearn-and-rs-prcomp
python, r, data-analysis
1,697,051,822
se_77274755
stackoverflow
DATA_SCIENCE
Problem visualizing a specific column in Python
Problem visualizing a specific column in Python Table I don't understand why the Gender column is duplicated. I've gone through the lines of code and can't find a solution. Here are the lines of code: df['Gender'].value_counts() df['Gender'].value_counts(normalize=True) * 100 frequency = df['Gender'].value_counts() pe...
https://stackoverflow.com/questions/77274755/problem-visualizing-a-specific-column-in-python
python, dataframe, data-analysis
1,697,041,027
se_77270461
stackoverflow
DATA_SCIENCE
Automaing Power BI Report Generation
Automaing Power BI Report Generation I have a power bi report that has a column known as Names. So, I want to automate the process of report generation. I want to write a script in python, such that I interact with the Power BI report,through the Power BI api and then create individual pdf for every name in the slicer...
https://stackoverflow.com/questions/77270461/automaing-power-bi-report-generation
python, powerbi, data-analysis, build-automation
1,697,003,376
se_77268176
stackoverflow
DATA_SCIENCE
Converting Python dataframe manipulation code to R
Converting Python dataframe manipulation code to R I have a dataframe manipulation in Python that I am trying to translate into R. However, I'm running into issues with my R translation. col_names = China_2.columns provinces = col_names[0] days = col_names[1:] day_1 = days[0] other_days = days[1:] China_dc = pd.DataFr...
https://stackoverflow.com/questions/77268176/converting-python-dataframe-manipulation-code-to-r
python, r, pandas, data-analysis, data-mining
1,696,962,454
se_77255749
stackoverflow
DATA_SCIENCE
Removing some parts of a data
Removing some parts of a data Please how can I turn this data ₹8,36,874/yr ₹6,69,578/yr ₹9,44,110/yr to integer with Pandas. I want to work on this data but the comma,'₹',and '/yr' is making it add for me to analyze it, please can someone put me through on how I remove them
https://stackoverflow.com/questions/77255749/removing-some-parts-of-a-data
python, pandas, dataframe, data-analysis, data-cleaning
1,696,810,238
se_77246453
stackoverflow
DATA_SCIENCE
AttributeError when attempting to generate a report with ydata-profiling in Python
AttributeError when attempting to generate a report with ydata-profiling in Python I am attempting to generate a data profiling report using the ydata-profiling library in Python. Upon executing the following code: import ydata_profiling profile = ydata_profiling.ProfileReport(df_accidentes) profile.to_file("report.h...
https://stackoverflow.com/questions/77246453/attributeerror-when-attempting-to-generate-a-report-with-ydata-profiling-in-pyth
python, matplotlib, data-analysis, python-venv, data-profiling
1,696,613,927
se_74143959
stackoverflow
DATA_SCIENCE
R - data profiling similar to pandas?
R - data profiling similar to pandas? I've done a bit of searching and a lot of the packages recommended do similar jobs but not quite as simple as I'd like. Preferably I'd like a html output, and specifically, like from the pandas profile report, I'd want pretty simply a list of each variable with; number(+ %) of mi...
https://stackoverflow.com/questions/74143959/r-data-profiling-similar-to-pandas
r, data-analysis, exploratory-data-analysis
1,666,286,625
se_77226268
stackoverflow
DATA_SCIENCE
How to write a formula to rank and tie-breaks for decisions of vacation priority
How to write a formula to rank and tie-breaks for decisions of vacation priority I have a been tasked to design a process to rank and tie-break vacation plans of a given crew. There is a set of rules to be respected and I need to make a formula to put in Excel so we can see the rank of members to choose vacation dates...
https://stackoverflow.com/questions/77226268/how-to-write-a-formula-to-rank-and-tie-breaks-for-decisions-of-vacation-priority
excel, math, data-analysis, mathematical-optimization
1,696,383,345
se_72099522
stackoverflow
DATA_SCIENCE
R programming -
R programming - I'm looking for a way to transform this data df <- tribble( ~lp, ~`2017`, ~`2018`, ~`2019`, ~`2020`, ~Bank, 1, 3.6, 11.3, 9.7, 12.5, "SANPL", 2, 5.5, 3.6, 6.6, 4.6, "MBANK", 3, 6.5, 14.4, 11.6, 13.7, "INGBSK", 4, 7.1, 11.1, 15.7, 12.7, "PKOBP", 5, 7.7, 9.7, 13, 12.1, "PEKAO", 6, 14, 7.2, ...
https://stackoverflow.com/questions/72099522/r-programming
r, data-analysis, visualize
1,651,581,668
se_77170125
stackoverflow
DATA_SCIENCE
BigQuery table join based on condition
BigQuery table join based on condition I have two tables - Vehicle Information and Updates. The Vehicle Information table has columns such as VehicleNum, model, and model_year, while the Updates table has columns such as vehicleNum, Version, and time. I need to check for certain conditions. For example, if the model i...
https://stackoverflow.com/questions/77170125/bigquery-table-join-based-on-condition
google-cloud-platform, google-bigquery, data-analysis
1,695,620,694
se_77166146
stackoverflow
DATA_SCIENCE
Python - Rebuilding a table from a Wikipedia page
Python - Rebuilding a table from a Wikipedia page I am new at learning Python and am attempting to rebuild a table found on a page in Wikipedia (https://en.wikipedia.org/wiki/List_of_Pixar_films). I was following a YouTube video to accomplish my goal, but I am stuck. My current table has a double-height row for the he...
https://stackoverflow.com/questions/77166146/python-rebuilding-a-table-from-a-wikipedia-page
python, jupyter-notebook, data-analysis
1,695,541,541
se_77164471
stackoverflow
DATA_SCIENCE
How to download multiple sheets as csv files within a folder using google sheets?
How to download multiple sheets as csv files within a folder using google sheets? I'm trying to download this dataset that includes multiple sheets using Google Sheets. Is there a way to download every single sheet as a csv file into a single folder? I tried to CTRL + click all sheets, select file, then select downloa...
https://stackoverflow.com/questions/77164471/how-to-download-multiple-sheets-as-csv-files-within-a-folder-using-google-sheets
google-sheets, data-analysis, tableau-desktop
1,695,494,798
se_77162700
stackoverflow
DATA_SCIENCE
Is it possible to specify the date/time and price for the entry and exit in Pine Script?
Is it possible to specify the date/time and price for the entry and exit in Pine Script? does anyone know how to code in Pine to specify the date/time and price for entry and exit? I want to use TW to analyze my actual trades in a strategy, to get data such as MFE, MAE, time to MFE and MAE, time in trade, bars in trad...
https://stackoverflow.com/questions/77162700/is-it-possible-to-specify-the-date-time-and-price-for-the-entry-and-exit-in-pine
pine-script, data-analysis, tradingview-api, trading
1,695,466,288
se_77143195
stackoverflow
DATA_SCIENCE
How to flag Outlyingness using Stanhel-Donoho Estimator in R
How to flag Outlyingness using Stanhel-Donoho Estimator in R Please, I need help to successfully run the Stanhel and Donoho Estimator on my data to flag outlyingness. I have a four column data with the summary presented below: Data Summary I did some study on Stanhel and Donoho estimator with some good help from here....
https://stackoverflow.com/questions/77143195/how-to-flag-outlyingness-using-stanhel-donoho-estimator-in-r
r, data-analysis, outliers, robust, mahalanobis
1,695,218,308
se_77142018
stackoverflow
DATA_SCIENCE
Python Pandas For Loop with If/then condition
Python Pandas For Loop with If/then condition I have the following dataset which I'm looking at banking approval data by two different date months (EOM Date = is when it was uploaded & Approve Date = When facility was actually approved). df = pd.DataFrame(data=[["1/08/23","1/08/23","yy1"], ["1/08/...
https://stackoverflow.com/questions/77142018/python-pandas-for-loop-with-if-then-condition
python, pandas, dataframe, loops, data-analysis
1,695,209,841
se_77058790
stackoverflow
DATA_SCIENCE
How to fit data with a cosine function and increasing oscillations in Python?
How to fit data with a cosine function and increasing oscillations in Python? I tried to fit the data in the picture: with this function: def expcos(x, i0, a, w1, ph, off): return i0 + (1-i0)*np.exp(-x/w1) + a*np.cos((2*np.pi/w1)*(x - ph)) + off and curve_fit: popt, pcov = curve_fit(expcos, x, y, guess) But th...
https://stackoverflow.com/questions/77058790/how-to-fit-data-with-a-cosine-function-and-increasing-oscillations-in-python
python, data-analysis, curve-fitting, data-fitting
1,694,082,877
se_77113889
stackoverflow
DATA_SCIENCE
AMOS The model is probably unidentified. In order to achieve identifiability, it will probably be necessary to impose 1 additional constraint
AMOS The model is probably unidentified. In order to achieve identifiability, it will probably be necessary to impose 1 additional constraint enter image description hereI am trying to make a SEM for my dataset using AMOS and I do get below error . Does anyone know why do i get this error .I am very new to this softwa...
https://stackoverflow.com/questions/77113889/amos-the-model-is-probably-unidentified-in-order-to-achieve-identifiability-it
statistics, data-analysis, spss, amos
1,694,794,258
se_77006037
stackoverflow
DATA_SCIENCE
Are there any algorithms that can select identical elements that belong to the same clusters, which are obtained by different cluster analyses?
Are there any algorithms that can select identical elements that belong to the same clusters, which are obtained by different cluster analyses? Consider a dataset where several clustering algorithms were applied. E.g. hierarhical clustering with different measures (average, single, complete, ward) and HDBSCAN with di...
https://stackoverflow.com/questions/77006037/are-there-any-algorithms-that-can-select-identical-elements-that-belong-to-the-s
cluster-analysis, data-analysis
1,693,382,705
se_77107680
stackoverflow
DATA_SCIENCE
Find all the rows in a pandas dataframe where list values repeat in a column
Find all the rows in a pandas dataframe where list values repeat in a column I have a dataframe which looks something like this where I have already sorted it based on the Page Count and the column Split Parties contains list of elements DocSetID Duplicate Status Page Count split_counterparties 8032866 Primary...
https://stackoverflow.com/questions/77107680/find-all-the-rows-in-a-pandas-dataframe-where-list-values-repeat-in-a-column
python, python-3.x, pandas, dataframe, data-analysis
1,694,717,535
se_77068010
stackoverflow
DATA_SCIENCE
How to select from a table all records for which there are other records in this table with certain parameters?
How to select from a table all records for which there are other records in this table with certain parameters? I have a table like this in Postgres: user_id project status 1 p1 finished 2 p1 finished 2 p2 finished 2 p3 finished 3 p1 finished 3 p2 finished 3 p3 finished 4 p1 finished 5 p1 finis...
https://stackoverflow.com/questions/77068010/how-to-select-from-a-table-all-records-for-which-there-are-other-records-in-this
sql, postgresql, data-analysis
1,694,185,706
se_77062299
stackoverflow
DATA_SCIENCE
GeoJSON conversion to GeoJSONL BigQuery load error
GeoJSON conversion to GeoJSONL BigQuery load error I am trying to upload to BigQuery the geospatial data of community areas of Chicago. However, I am getting the following errors messages when trying to create a table from newline delimited geoJSON file: Error while reading data, error message: JSON table encountered...
https://stackoverflow.com/questions/77062299/geojson-conversion-to-geojsonl-bigquery-load-error
google-bigquery, gis, jq, data-analysis, geojson
1,694,114,297
se_77055098
stackoverflow
DATA_SCIENCE
Transforming data using agg/count on pyspark
Transforming data using agg/count on pyspark I have a data that looks like this gcol1 | gcol2 | ccol1 a | 1 | apple b | 1 | orange a | 2 | null b | 1 | orange b | 1 | orange and would like to group by on gcols and get a count of distinct values on ccol1 and get the count of th...
https://stackoverflow.com/questions/77055098/transforming-data-using-agg-count-on-pyspark
python, pyspark, data-analysis
1,694,032,008
se_77032348
stackoverflow
DATA_SCIENCE
Questions about using matlab to draw contour plots
Questions about using matlab to draw contour plots How to draw contour plots of irregular graphics using matlab? My code is as follows: figure(11) [xq,yq] = meshgrid(0:0.1:225, 0:0.1:40); vq = griddata(gcoord(:,1),gcoord(:,2),uw,xq,yq); contourf(xq,yq,vq,'ShowText','on','LineStyle','-') xlabel('Distance(m)','FontName'...
https://stackoverflow.com/questions/77032348/questions-about-using-matlab-to-draw-contour-plots
matlab, data-analysis, matlab-figure, contour
1,693,745,545
se_77033172
stackoverflow
DATA_SCIENCE
To fit polynomial function to fill the NaN value in my data frame
To fit polynomial function to fill the NaN value in my data frame Good evening everyone, I have a data frame with 226 columns and 1110 instances. Some values in some rows have nan values so I'm goin to fill these values by condition. First, the minimum value for start filling should be the latest value before nan valu...
https://stackoverflow.com/questions/77033172/to-fit-polynomial-function-to-fill-the-nan-value-in-my-data-frame
python, data-analysis
1,693,757,548
se_77023198
stackoverflow
DATA_SCIENCE
How can i scrape data from twitter and have more than 8 rows of data returned?
How can i scrape data from twitter and have more than 8 rows of data returned? I am trying to scrape data from twitter for a research, it could tell me over 20,000 results in search information but only displays 8 rows when i display. i used an actual API but i did not insert here. I decided not to use tweepy because ...
https://stackoverflow.com/questions/77023198/how-can-i-scrape-data-from-twitter-and-have-more-than-8-rows-of-data-returned
python, web-scraping, twitter, jupyter-notebook, data-analysis
1,693,571,981
se_77022613
stackoverflow
DATA_SCIENCE
Plotly Express plots are removed when uploading to GitHub
Plotly Express plots are removed when uploading to GitHub I did my project locally in Jupyter Notebook using Python. During my research I plotted with Plotly Express which worked fine locally, but when I tried to upload this .ipynb file to GitHub - all plots disappeared. I rechecked my project a few times, but it didn...
https://stackoverflow.com/questions/77022613/plotly-express-plots-are-removed-when-uploading-to-github
python, jupyter-notebook, plotly, data-analysis, plotly-express
1,693,566,534
se_13441090
stackoverflow
DATA_SCIENCE
Using QUARTILE in an Excel pivot table to summarise data by sub-populations
Using QUARTILE in an Excel pivot table to summarise data by sub-populations I've got a large table of data in an Excel spreadsheet that, essentially, can be considered to be a collection of values for individuals identified as belonging to various subpopulations: IndivID SubPopID Value 1 A 33...
https://stackoverflow.com/questions/13441090/using-quartile-in-an-excel-pivot-table-to-summarise-data-by-sub-populations
excel, statistics, excel-2007, pivot-table, data-analysis
1,353,249,125
se_77007998
stackoverflow
DATA_SCIENCE
I want to find the maximum number for each year of each country, but i&#39;m stuck
I want to find the maximum number for each year of each country, but i&#39;m stuck I am diving into a data set, I have cleaned and now I want to display the year each country had the maximum subscribers but I'm stuck Tried this: netf.query('country != "unspecified"')\ .groupby(['country','created_year'], sort=True...
https://stackoverflow.com/questions/77007998/i-want-to-find-the-maximum-number-for-each-year-of-each-country-but-im-stuck
python, aggregate, grouping, data-analysis, exploratory-data-analysis
1,693,398,185
se_76994522
stackoverflow
DATA_SCIENCE
How to use dbt and airbyte to cross data from different source?
How to use dbt and airbyte to cross data from different source? I set up a small data stack for my company and it includes Airbyte to extract and load data from external services to a BigQuery datawarehouse, and it works well, we have now a massive amount of raw data and started to explore it with our dataviz tool. To...
https://stackoverflow.com/questions/76994522/how-to-use-dbt-and-airbyte-to-cross-data-from-different-source
data-analysis, dbt, airbyte
1,693,240,066
se_72312897
stackoverflow
DATA_SCIENCE
Having Issues Uploading Table to BigQuery
Having Issues Uploading Table to BigQuery I am attempting to upload a .csv files to BigQuery to use for a project in the Google Data Analysis Certificate program, but am continually running into this error: Unexpected error Tracking number: c1642301846583819 Here is the table creation menu that with the fields I hav...
https://stackoverflow.com/questions/72312897/having-issues-uploading-table-to-bigquery
sql, google-bigquery, data-analysis
1,653,013,095
se_76980153
stackoverflow
DATA_SCIENCE
How can I identify samples failing minfi quality check (getQC() function)?
How can I identify samples failing minfi quality check (getQC() function)? I'm using the minfi pipeline to analyze DNA methylation data from the EPIC array (v1). I recently had to switch from ewastools to minfi, and I'm still getting used to the way the package works. Unfortunately, I do not have example data to repro...
https://stackoverflow.com/questions/76980153/how-can-i-identify-samples-failing-minfi-quality-check-getqc-function
r, data-analysis
1,692,993,059
se_76960505
stackoverflow
DATA_SCIENCE
incrementing a variable for each non-NaN value in a column with string datatype
incrementing a variable for each non-NaN value in a column with string datatype The issue I have is that I want to increment the value of a variable when the value of a pandas column dataframe is not NaN knowing that the column contains string datatypes. `def indicateur_iov2(row): row["IOV2"] = 0.0 row["IOV2"]...
https://stackoverflow.com/questions/76960505/incrementing-a-variable-for-each-non-nan-value-in-a-column-with-string-datatype
python, pandas, dataframe, data-analysis
1,692,786,688
se_76948903
stackoverflow
DATA_SCIENCE
Can&#39;t import .dta file with either Python or R
Can&#39;t import .dta file with either Python or R I am trying to read a Stata .dta file into either python or R so that I can work with it and it is giving me a version error in Python and R . I was wondering how I could resolve this. Here is my code: import pandas as pd data = pd.read_stata('file.dta') Here is the...
https://stackoverflow.com/questions/76948903/cant-import-dta-file-with-either-python-or-r
python, r, data-analysis, stata, file-conversion
1,692,654,673
se_76953185
stackoverflow
DATA_SCIENCE
Is there a function to get the standard deviation of a dataset after interpolation?
Is there a function to get the standard deviation of a dataset after interpolation? I interpolated a dataset as follow: y = [-2.35771490e-04, -2.04672372e-04, 5.40550849e-06, -3.26933980e-04, -4.31306957e-04, -4.06928662e-04, -7.50889655e-04, -1.03669983e-03, -5.28464040e-04, -5.01935670e-04, -8.0965724...
https://stackoverflow.com/questions/76953185/is-there-a-function-to-get-the-standard-deviation-of-a-dataset-after-interpolati
python, interpolation, data-analysis, standard-deviation
1,692,706,272
se_76646448
stackoverflow
DATA_SCIENCE
Filter rows with max value from a range of columns
Filter rows with max value from a range of columns I have a df with strings and numbers. I need to filter the max value by group excluding the year (date type). I did this: test type Process RegionName Time Level a b c d e f g h i j k l m n o p q r s t u v w a1 XYZ_1 ABC 2010 fixed 0 0 0 0 0 0...
https://stackoverflow.com/questions/76646448/filter-rows-with-max-value-from-a-range-of-columns
r, dataframe, max, data-analysis, rdata
1,688,889,586
se_69878142
stackoverflow
DATA_SCIENCE
Fail to install dataprep library on Jupyter Notebook
Fail to install dataprep library on Jupyter Notebook I want to use dataprep on Python. I tried to install it with this command !pip install dataprep on Jupyter Notebook. I have tried find the solution all over the internet. I have tried to install through Anaconda CMD but still failed. The failed output error is like...
https://stackoverflow.com/questions/69878142/fail-to-install-dataprep-library-on-jupyter-notebook
python, pandas, data-analysis
1,636,339,085
se_49708514
stackoverflow
DATA_SCIENCE
Whats the logic behind &#39;impact&#39; argument in ahp topsis function
Whats the logic behind &#39;impact&#39; argument in ahp topsis function d <- matrix(rpois(12, 5), nrow = 4) w <- c(1, 1, 2) i <- c("+", "-", "+") topsis(d, w, i) this is the function available in R for Ahp topsis, i am confused about how to assign "+" and "-" signs here for "impact" argument. how is it done here in ...
https://stackoverflow.com/questions/49708514/whats-the-logic-behind-impact-argument-in-ahp-topsis-function
r, data-analysis, ahp, mcdm
1,523,112,057
se_70036161
stackoverflow
DATA_SCIENCE
is there anyway we can read sas data directly from sas server?
is there anyway we can read sas data directly from sas server? i'm trying to read sasdataset using pyreadstat directly from sftp server, as i couldn't download the data, i'm trying this approach: import pysftp class My_Connection(pysftp.Connection): def __init__(self, *args, **kwargs): try: i...
https://stackoverflow.com/questions/70036161/is-there-anyway-we-can-read-sas-data-directly-from-sas-server
python-3.x, dataframe, sas, data-analysis, pysftp
1,637,330,999
se_76924154
stackoverflow
DATA_SCIENCE
I&#39;m trying to sort the data and categorize them as masks and images
I&#39;m trying to sort the data and categorize them as masks and images df_imgs = df1[~df1['path'].str.contains("mask")] # get's all the pictures without the mask df_masks = df1[df1['path'].str.contains("mask")] # all the images with mask BASE_LEN = 98 END_IMG_LEN = 4 END_MASK_LEN = 9 IMG_SIZE = 512 # let's sort th...
https://stackoverflow.com/questions/76924154/im-trying-to-sort-the-data-and-categorize-them-as-masks-and-images
python, dataframe, pytorch, data-analysis
1,692,296,148
se_76907969
stackoverflow
DATA_SCIENCE
Difference in SQL query result from Tableau dashboard
Difference in SQL query result from Tableau dashboard I have an issue where the following query WITH SumByUid AS ( SELECT Uid, SUM(Value) AS TotalValue FROM your_table WHERE day between '2023-08-01' and '2023-08-15' GROUP BY Uid ) SELECT COUNT(*) AS UserCountUnderThreshold FROM SumByUid WHE...
https://stackoverflow.com/questions/76907969/difference-in-sql-query-result-from-tableau-dashboard
google-bigquery, data-analysis, tableau-desktop
1,692,120,474
se_76859900
stackoverflow
DATA_SCIENCE
When I use Filtered_tg in R. The console show this error :- Error in arrange(filtered_tg, len) : could not find function &quot;arrange&quot;
When I use Filtered_tg in R. The console show this error :- Error in arrange(filtered_tg, len) : could not find function &quot;arrange&quot; Error show in Rstdio I try to fix it but and watch video in youtube but I can't found where is the problem I code this:- data("ToothGrowth") View(ToothGrowth) filtered_tg <- fil...
https://stackoverflow.com/questions/76859900/when-i-use-filtered-tg-in-r-the-console-show-this-error-error-in-arrangefil
google-analytics, data-science, data-analysis
1,691,500,207
se_76920690
stackoverflow
DATA_SCIENCE
Manager said, &quot;K fold validation won’t fix the test-train split issue. It is just for post-validation. Kindly read about correct splitting.&quot;
Manager said, &quot;K fold validation won’t fix the test-train split issue. It is just for post-validation. Kindly read about correct splitting.&quot; Initial 'Logistic Regression_Iris_Hyperparameter Tuning' that is done in the code below because Logistic regression on Iris Data set was giving me the Accuracy score =...
https://stackoverflow.com/questions/76920690/manager-said-k-fold-validation-won-t-fix-the-test-train-split-issue-it-is-jus
python, classification, data-analysis, logistic-regression, k-fold
1,692,268,523
se_76912835
stackoverflow
DATA_SCIENCE
To get count of null values in the dataset
To get count of null values in the dataset The requirement is, we need to check for duplicate values in a dataset and returns the counts of duplicated values are returned as a integer. I have written this code but getting the below error: def check_duplicates(): ds = pd.read_csv("Hospital_patients_datasets.csv") ...
https://stackoverflow.com/questions/76912835/to-get-count-of-null-values-in-the-dataset
python, dataframe, null, duplicates, data-analysis
1,692,182,920
se_76896931
stackoverflow
DATA_SCIENCE
POWER BI calculating new column that will show MAX value of another column by year and will show it for every month in a year
POWER BI calculating new column that will show MAX value of another column by year and will show it for every month in a year I need to calculate MAX value of particular column by year and pass it to another column that will show me that MAX value for every month in this year. Here is what I need: date value max_o...
https://stackoverflow.com/questions/76896931/power-bi-calculating-new-column-that-will-show-max-value-of-another-column-by-ye
excel-formula, powerbi, dax, data-analysis
1,691,996,881
se_76896107
stackoverflow
DATA_SCIENCE
ValueError: Cannot use mean strategy with non-numeric data: could not convert string to float:
ValueError: Cannot use mean strategy with non-numeric data: could not convert string to float: sample_real_state = pd.read_csv('Sample_real_estate_data.csv',na_values = missing_val) sample_real_state count = 0 for row in sample_real_state["OWN_OCCUPIED"]: try: int(row) sample_real_state.loc[count,'OWN_OCCUPIED'] = np....
https://stackoverflow.com/questions/76896107/valueerror-cannot-use-mean-strategy-with-non-numeric-data-could-not-convert-st
python, machine-learning, data-analysis, analysis
1,691,983,626
se_76805954
stackoverflow
DATA_SCIENCE
I am noticing extra and unnecessary data in my table after fixing the type error cannot convert the series to class float
I am noticing extra and unnecessary data in my table after fixing the type error cannot convert the series to class float For example, the first thing I noticed when obtaining the total number of students was that when I ran the cell of my code, # Get the total number of students. student_count = school_data_complete_...
https://stackoverflow.com/questions/76805954/i-am-noticing-extra-and-unnecessary-data-in-my-table-after-fixing-the-type-error
python, pandas, jupyter, typeerror, data-analysis
1,690,825,033
se_76865903
stackoverflow
DATA_SCIENCE
Powerquery list Power BI
Powerquery list Power BI I have a very large table and certain columns have the rows packed into a list, how can I unpack all the lists of the column without losing the associations in Power BI Power query for example: """" column A column B column C List List List and in the lists a...
https://stackoverflow.com/questions/76865903/powerquery-list-power-bi
powerbi, powerquery, data-analysis
1,691,569,677
se_76859015
stackoverflow
DATA_SCIENCE
E1/3 function in python?
E1/3 function in python? I am analyzing some lab results with python and I need to fit the data to a distribution that includes the generalized exponential integral E1/3. The closest thing I could find besides calculating the integral myself (which is very slow) is scipy.special.expn(n, x), but it only supports intege...
https://stackoverflow.com/questions/76859015/e1-3-function-in-python
python, scipy, data-analysis, physics
1,691,493,405
se_76849769
stackoverflow
DATA_SCIENCE
product placement on shelf with sql
product placement on shelf with sql I have two tables I have the first table of product entry: Declare @ProductTb AS Table( ProductId Int IDENTITY(1,1), Amount Int --The amount of product inventory ) Insert Into @ProductTb Values ...
https://stackoverflow.com/questions/76849769/product-placement-on-shelf-with-sql
sql-server, data-analysis, sql-server-2019
1,691,394,825
se_76824984
stackoverflow
DATA_SCIENCE
How to change a string value with comma (343,543) to int in a dataframe with Python
How to change a string value with comma (343,543) to int in a dataframe with Python I have a CVS file IMDb list. The number of votes is written like 345,545, and Python sees this like a string. I want to change this to a number value for using operations like <,+,% and I want to add those values in a new column. def c...
https://stackoverflow.com/questions/76824984/how-to-change-a-string-value-with-comma-343-543-to-int-in-a-dataframe-with-pyt
python, pandas, dataframe, data-science, data-analysis
1,691,038,842
se_76827129
stackoverflow
DATA_SCIENCE
how do I change the data type in each cell in a column when I read it using the read_csv function in the pandas library python?
how do I change the data type in each cell in a column when I read it using the read_csv function in the pandas library python? when I run the code to change the data type of the value in each cell in a column while reading the csv file with the pandas library read_csv() function an error occurs. The following is the ...
https://stackoverflow.com/questions/76827129/how-do-i-change-the-data-type-in-each-cell-in-a-column-when-i-read-it-using-the
python, pandas, dataframe, data-analysis, read-csv
1,691,057,911
se_76826261
stackoverflow
DATA_SCIENCE
Deleting an Original Column and Setting the First Row as a New Column in pandas
Deleting an Original Column and Setting the First Row as a New Column in pandas I have created three separate data frames from the original data frame using 'iloc.' Since each of these data frames contains the complete information for each year, I no longer require the original column, which pandas automatically label...
https://stackoverflow.com/questions/76826261/deleting-an-original-column-and-setting-the-first-row-as-a-new-column-in-pandas
python, pandas, dataframe, jupyter-notebook, data-analysis
1,691,051,516
se_76822022
stackoverflow
DATA_SCIENCE
PowerBI DAX Compare the difference between values based on ID and Date using slicers
PowerBI DAX Compare the difference between values based on ID and Date using slicers I am using a DAX formula that isn't quite working and I'm wondering if I'm going about it the wrong way. I need to be able to use slicers to select a Name and two dates and compare the difference in Amounts per date. Difference = VA...
https://stackoverflow.com/questions/76822022/powerbi-dax-compare-the-difference-between-values-based-on-id-and-date-using-sli
powerbi, dax, data-analysis, business-intelligence
1,690,995,207
se_76821399
stackoverflow
DATA_SCIENCE
R: Select the first non-NA data for each row, within an arbitrarily long subset of variables
R: Select the first non-NA data for each row, within an arbitrarily long subset of variables I'm trying to write a function in R; let's call it favor(). It needs to accept an arbitrary number of columns of a tibble, which may not contain complete data. For each row in the dataset, favor() will examine the contents of ...
https://stackoverflow.com/questions/76821399/r-select-the-first-non-na-data-for-each-row-within-an-arbitrarily-long-subset
r, dplyr, data-analysis, quasiquotes
1,690,989,980
se_76813742
stackoverflow
DATA_SCIENCE
How to delete row from one dataframe which exist in another dataframe
How to delete row from one dataframe which exist in another dataframe I have two dataframes. If in df1 I have a person with name and birth date like in df2, i want to delete all rows with this name and birth date from df1. How i can do it using pandas? df1= Full name Birth date param1 param2 param10 Name 1 dat...
https://stackoverflow.com/questions/76813742/how-to-delete-row-from-one-dataframe-which-exist-in-another-dataframe
python, pandas, dataframe, data-analysis
1,690,908,674
se_76805271
stackoverflow
DATA_SCIENCE
How to plot a histogram in R?
How to plot a histogram in R? Can anybody help me to plot this histogram in R. I dont know how to add the column "Age at visit". My data includes year and age.
https://stackoverflow.com/questions/76805271/how-to-plot-a-histogram-in-r
r, statistics, data-analysis
1,690,818,982
se_76804456
stackoverflow
DATA_SCIENCE
How do we use sinc interpolation to find the domain value if the function value is known in Python?
How do we use sinc interpolation to find the domain value if the function value is known in Python? I have a discrete data of the change in SNR with frequency in which I need to find the frequency at a certain SNR by using sinc interpolation on the data. So how do we find the frequency, x, with a given SNR, f(x)? Than...
https://stackoverflow.com/questions/76804456/how-do-we-use-sinc-interpolation-to-find-the-domain-value-if-the-function-value
python, math, interpolation, data-analysis
1,690,812,768
se_76793551
stackoverflow
DATA_SCIENCE
Convert hourly data values to 15minute data values and vice versa
Convert hourly data values to 15minute data values and vice versa I am trying to solve the following problem: I have a time series A that contains hourly data. There are a total of 8760 data points in the time series A. 01.01.2023 00:00:00 01.01.2023 01:00:00 01.01.2023 02:00:00 .... 31.12.2023 21:00:00 31.12.2023 22:...
https://stackoverflow.com/questions/76793551/convert-hourly-data-values-to-15minute-data-values-and-vice-versa
excel, vba, data-analysis
1,690,633,281
se_54800350
stackoverflow
DATA_SCIENCE
How to know if the Variable is Categorical or Numerical if all it contains is Digits?
How to know if the Variable is Categorical or Numerical if all it contains is Digits? I have a dataset which has several Variables. I want to determine that how can we judge for a variable if it is categorical or numerical other than the method of unique value counts, as for instance one of my variable Disease Type ...
https://stackoverflow.com/questions/54800350/how-to-know-if-the-variable-is-categorical-or-numerical-if-all-it-contains-is-di
python, pandas, dataframe, statistics, data-analysis
1,550,729,345
se_76781002
stackoverflow
DATA_SCIENCE
How do I properly save changes to a .java file in a data analysis script?
How do I properly save changes to a .java file in a data analysis script? I'm using a script to combine 2 .csv files containing data like onset and offset times in frames. There is a .java file that outputs the frame data to seconds for easier analysis. However, there appears to be some rounding issue, and after editi...
https://stackoverflow.com/questions/76781002/how-do-i-properly-save-changes-to-a-java-file-in-a-data-analysis-script
java, csv, jar, data-analysis
1,690,469,766
se_76764617
stackoverflow
DATA_SCIENCE
Setup data for R package:vegan
Setup data for R package:vegan I’m using vegan to determine biodiversity metrics from animal count data. The objective is to see if there are differences between years of the counts(i.e if species numbers have been decreasing or increasing depending on the year for example). Data is setup in a matrix format like this:...
https://stackoverflow.com/questions/76764617/setup-data-for-r-packagevegan
r, data-analysis, vegan
1,690,301,558