I am relatively new to Stata and I currently have a Reddit dataset in cross-sectional format with each row representing a given Reddit post by a usern ...
I am relatively new to Stata and I currently have a Reddit dataset in cross-sectional format with each row representing a given Reddit post by a usern ...
I have a panel dataset that counts violent events per year in multiple districts on a map. I am interested in the number of violent events in neighbor ...
I have an input data frame for daily grocery spend which looks like this: input_df1 I need to apply a function that takes input_df1 + (previous in ...
Given the sample data: I want to create a new variable in the data frame called "yieldDiff": the difference in yield of millet per hectare for each ...
I have a data frame with 854 observations and 47 variables (India_Summary). I want to create another data frame that contains only some columns from t ...
I have an input dataframe for daily fruit spend which looks like this: spend_df Date Apples Pears Grapes 01/01/22 10 ...
I have a dataset retrieved from an.RData file. If use head() my data looks like this: Using the "typeof()" command tells me the data type is a list ...
To accomplish with powershell: Original Transposed how can a magic number be used ...
I have a data frame with multiple columns, a small version of the data frame looks like this: I want to create another data frame with the variable ...
I have a dataset in which the number of pixels is counted for each value looking like this: HISTO_2 caputres the number of pixels with value 2, HIS ...
I have this great presence-absence dataset in which I need to calculate a C score (CS) for each species pair (BABO, BW, RC, SKS, MANG) to measure spec ...
Given a Pandas dataframe of the form how do I transform it to a dataframe with 12 columns, one for each month, so it looks like ...
This is how my data looks like with columns matching a gen ID and a timepoint (_01 or _03) As you can see the pattern is placa_gen_time. I want som ...
I have referred to Create a presence/absence column based on presence records [duplicate], Create a presence-absence matrix with presence on specific ...
After merging two time-series datasets I have some missings in a time-invariant variable(value_2) which I would like to complete. However, some units ...
I am looking to find a way to use a data frame that has two columns (the first one being the name, and the other being numerical values), and if a nam ...
In a data frame, I have some strings in a column that have /// in it. Is there a way for me to search for strings that have that /// pattern and remov ...
I'm trying to understand how I can find cells in a dataframe that contain a specific substring (I want to chop off the 'R' at the end of certain strin ...
I have a dataframe: I want to create a new column total_payment based on the following conditions: a) if b_done == Y and dd_complete > 0, total ...
I am not sure on how to name my problem and therefore was unable to search for it properly. The problem I have is, that I converted a json-txt-file i ...