Capture values from multiple columns and apply trim and replace

I want to concatenate the strings from different columns in Oracle but some columns have value and others don’t have. What I want is that if the value of the last 3 characters of C1 matches to the first 3 characters of the value of the C2 then concatenate with dash(-) then drop the 2… Read More Capture values from multiple columns and apply trim and replace

grab text from html and use it and concatenation to access object property

I don’t know if this is possible, and I’m pretty new to JavaScript and programing, but here is what I’m trying to do: I have a table in HTML: <table> <tr> <td id="w1t1">kc</td> <td id="w1s1">30</td> </tr> </table> I have an object in JS: const kc = {name: kc, color: "red", score: 0}; I would like… Read More grab text from html and use it and concatenation to access object property

Concatenating string using for loop makes it begin with 'undefined'? (javascript)

Where is undefined coming from? I thought I initialised the string correctly. (tried using debugger but can’t figure out the issue) I’ve tried using concat() method. I’ve tried +=. Everything results in "undefined" Why? const reverseString = function(string) { let newWord = ""; for (i = string.length; i > -1; i–) { newWord = newWord.concat(string[i]);… Read More Concatenating string using for loop makes it begin with 'undefined'? (javascript)

Concatenate or TextJoin Same Cell Multiple Times based on Value in another Cell?

I’m struggling with a problem in Excel right now with some Amino Acid data. The idea is that i would have a string of AA residues that need to be polymerized (functionally contatenated to themselves) a number of times based on a multiplier. So, if I have a sequence AAGKLY, and I want to polymerize… Read More Concatenate or TextJoin Same Cell Multiple Times based on Value in another Cell?

Adding new column to merged DataFrame based on pre-merged DataFrames

I have two DataFrames, df1 and df2. In my code I used Pandas.concat method to find the differences between them. df1 = pd.read_excel(latest_file, 0) df2 = pd.read_excel(latest_file, 1) #Reads first and second sheet inside spreadsheet. new_dataframe = pd.concat([df1,df2]).drop_duplicates(keep=False) This works perfectly, however I want to know which rows are coming from df1, and which are… Read More Adding new column to merged DataFrame based on pre-merged DataFrames

Concatenate strings based on value in another column

I am trying to concatenate strings for specific groups of customer ids/order dates. I have a dataframe: customerid <- c("A1", "A1", "A2", "A2", "A3", "A3", "A3", "A4") orderdate <- c("2018-09-14", "2018-09-14", "2018-09-15", "2018-09-15", "2020-08-21", "2020-08-21","2020-08-21", "2018-08-10") orderid <- c("1", "2", "3", "4", "5", "6", "7", "8") status <- c("review", "review", "review", "negative", "positive", "review", "review",… Read More Concatenate strings based on value in another column