Category "string"

Split numbers and dates into separate columns

My data contains text strings with three important features, an id number separated by":" and a starting date and an end date. I need to get these tree numbers

c# StringExtension with Method Space

I try to create a string extension with the method Space(int) in it. If I have an instance of a string, then its no problem. But without I have no Idea. The cal

Splitting a Rust string into a Vec of its substrings with contiguous identical characters

I have a string or a &str of ASCII characters and I want to separate it into a Vec of all substrings with contiguous identical characters (for example, "aab

ValueError: could not convert string to float: '<kivy.uix.textinput.TextInput object at 0x0000011D49678430>'

I'm new at python and right now i try to make similar calculator with user input. I rewrote my code but its still dont work fine. Cant convert string property t

WAP to accept a string and print only the words having consecutive letters as same and number of occurrences [duplicate]

I was solving this question(the title) and I cant find the mistakes present so please help Input : The buffalo is stuck in a soggy field and

i want to echo this string but its not working [closed]

I intend to echo the string if the string isn't longer than 20 characters. But it's not working even though the string isn't longer than 20 c

Javascript - Giving alert for string input but number

Hi recently I was writing a code which basically askes users to input a cost for any item. The item name or price are not important so far. How the system works

Using qsort to sort a multidimensional array of variable-length strings in C

I have a piece of software that generates a rather large text file full of information about files in a directory. There are often several thousand files. Each

Pandas series str.contain check

I am looking to search each value in a pandas series to see if it contains one of many possible sub strings. What is the best way to check multiple str values a

R replace string in df with partial match in a list

I have a dataframe (df) in R and I want to create a new column (city1_n) that contains a line stored in the list key whenever there is a partial match between c

String similarity library

I am currently working on big data in pyspark.I need to do a record linkage.I have seen some implementations in pandas using record linkage library.I would like

Python Json.decoder.JSONDecodeError: Expecting ',' delimiter:

I'm trying to load a dictionary into json but I'm getting error. strsdc = ''' {"ext":{"amznregion":["useast"],"someURL":"https://som_url.com/x/px/Iyntynt/{

splitting strings by list of separators irrespective of order

I have a string text and a list names I want to split text every time an element of names occurs. text = 'Monika goes shopping. Then she rides bike. Mike likes

Split comma-separated strings in a column into separate rows

I have a data frame, like so: data.frame(director = c("Aaron Blaise,Bob Walker", "Akira Kurosawa", "Alan J. Pakula", "Alan Parker", "A

How to raise an exception when a string isn't comma-separated

I want it to raise an exception and print Invalid input if the input string is not separated by commas. However, this is not raising an exception. try: stri

Fill Map<String, Object> with two strings

I want to fill my Map with two strings. For my Map I have to use <String, Object>. Using <String, String> would instantly solve my problem, but that

How to subtract char out from string in c++?

Hello I want to know how to subract string from string For example If string s = "124ab" I can easily extract integer by using sstream but I don't know how to e

numpy where with multiple conditions linked to dataframe

I'm using numpy where with multiple conditions to assign a category based on a text string a transaction description. Part of the code is below `import numpy as

Generate variable name with string and value in Lua

Is there a function in Lua to generate a variable name with a string and a value? For example, I have the first (string) part "vari" and the second (value) part

Convert React/javascript string array of objects to array of objects

This seems like a trivial issues but I can't get it working properly. I'm fairly new to JS/React so that is working against me also. This is the response I get