Questions tagged [suffix]

A suffix is a group of letters, usually of a regular form, that has a meaning within it's short form, that when applied to a word changes the meaning and/or intent of that word.

A suffix is a group of letters, usually of a regular form, that has a meaning within it's short form, that when applied to a word changes the meaning and/or intent of that word.

258 questions
3
votes
2 answers

How to append a suffix for specific column names of a dataframe from a list

I wanted to append a suffix or prefix to certain column names of df1 based on the names in df2. my df1 looks like this, AE02 AE03 AE04 AE05 AE06 AE07 AE08 AE09 AE10 AE11 AE12 11.9619362364 18.5701402709 …
ARJ
  • 2,021
  • 4
  • 27
  • 52
3
votes
0 answers

Add suffix to a decimal row (to show litres)

I'm using Eureka Forms for swift 2 and I'm trying to add a Suffix to a DecimalRow. My the reason is that in this row the user will enter the amount of litre consumed, so I would like the row to display the L at the end all the time I did not find…
Jp4Real
  • 1,982
  • 4
  • 18
  • 33
3
votes
1 answer

Changing suffix on bash file backup

I have been trying to change the suffix on my backup files using the --suffix function but I'm not quite sure how to do it. Currently this line of code find ./$1 -name "IMG_****.JPG" -exec cp --backup=t {} ./$2 \; searches the first command line…
2
votes
3 answers

How to add a suffix to the first N columns in pandas?

I want to add a suffix to the first N columns. But I can't. This is how to add a suffix to all columns: import pandas as pd df = pd.DataFrame( {"name" : ["John","Alex","Kate","Martin"], "surname" : ["Smith","Morgan","King","Cole"], …
2
votes
1 answer

How do I get `[Element]` instead of `SubSequence` when dropping/removing elements?

If I remove elements from an array and store it in a variable like this: let lastFive = myArray.suffix(5) or this: let lastFive = myArray.dropLast(5) lastFive will be Array.SubSequence instead of the element type SomeType. How do I make…
Joakim Sjöstedt
  • 824
  • 2
  • 9
  • 18
2
votes
1 answer

How can I have a suffix on all source fields names Mapstruct?

I have the following case: **public class SimpleSource { private String name; private String description; // getters and setters } public class SimpleDestination { private String name__c; private String description__c; //…
ibo
  • 21
  • 4
2
votes
3 answers

How to select variables with numeric suffixes lower than a value

I have a data frame similar to this one. df <- data.frame(id=c(1,2,3), tot_1=runif(3, 0, 100), tot_2=runif(3, 0, 100), tot_3=runif(3, 0, 100), tot_4=runif(3, 0, 100)) I want to select or make an operation only with those with suffixes lower than…
user2246905
  • 1,029
  • 1
  • 12
  • 31
2
votes
2 answers

Merge csv files based on file names and suffix in Python

First time poster and fairly new to Python here. I have a collection of +1,7000 csv files with 2 columns each. The number and labels of the rows are the same in every file. The files are named with a specific format. For…
ensifer
  • 23
  • 5
2
votes
1 answer

How to iterate prefixes and suffixes of str or String in rust?

I have a string: "abcd" and I want to: Iterate its prefixes from shortest to longest: "", "a", "ab", "abc", "abcd" Iterate its prefixes from longest to shortest: "abcd", "abc", "ab", "a", "" Iterate its suffixes from shortest to longest: "", "d",…
2
votes
1 answer

kustomize suffix hashes on only certain items

i have a kustomize environment where there are certain configMaps and secrets that i do want to be "version controlled" and have the suffix hash appended to them. however, i also would like certain configMapGenerator items that should not have the…
yee379
  • 6,498
  • 10
  • 56
  • 101
2
votes
1 answer

Can't vertically center both input text and suffix in the Flutter TextField widget

I'm having a hard time aligning input ext and suffix in TextField Flutter widget. I try to center them vertically but can't do that for some reason. When I don't specify suffix, the input text is vertically centered as desired: When I specify the…
2
votes
1 answer

How to get a word's suffix after lemmatizing it (Python)?

I need to get the suffix of a word after lemmatizing it. I wonder if there is a way to "subtract" a lemma from a word and get the suffix as a result? I've tried re.sub but of course it works only in certain cases, namely those in which the lemma is…
qwertpoi
  • 21
  • 4
2
votes
1 answer

Suffix to prefix and prefix to suffix in R

I have a string. String <- "like_a_butterfly_sting_like_a_bee_Float" I can make the first prefix become the last suffix by pivoting on the first underscore. gsub("^([^_]*)_(.*)$", "\\2_\\1",String) How can I make the final suffix become the first…
Brad
  • 580
  • 4
  • 19
2
votes
2 answers

How to use Matlab/Octave regexprep (regular expression replace) to add suffix to file name before extension

Say I have this Matlab or Octave char variable: >> filename = 'my.file.ext' I want a regexprep command that adds a suffix, say '_old', to the file name before the extension, transforming it into 'my.file_old.ext'. The following replaces all dots…
Felipe Jiménez
  • 453
  • 3
  • 9
2
votes
1 answer

How to remove enum from string?

I have a set of enum values and an input string, and in case the string has a suffix which is one of the enum names, I want to delete it. For example, let's say I have enum colors { red, blue, green, white } And I receive the input string "str =…
MaayanA
  • 27
  • 2
1 2
3
17 18