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
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
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
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
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/{
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
I have a data frame, like so: data.frame(director = c("Aaron Blaise,Bob Walker", "Akira Kurosawa", "Alan J. Pakula", "Alan Parker", "A
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
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
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
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
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
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
The csv file looks like this I'm trying to get the field values like name, it is the value after $$NAME$$ (there is a space after the identifier). How do I st
When I create template literals, I would use the trim() to remove extra space. But I noticed when I do this inside a JS function, it still creates extra tabs or
Edited for clarity I need to be able to copy and paste a windows path directly from file explorer into a function which turns it into a pathlib.WindowsPath() ob
I'd like to remove any string that ends in either of 2 characters in a pipe. In this example it's ".o" or ".t". Some of them get removed, but not all of them, a
Is there any way to retrieve an array of words prefixed with @ sign in a string? "@City == xyz AND @Hobby == gardening" -> ["@City","@Hobby"] I tried below
Example For picture = ["abc", "ded"] the output should be addBorder(picture) = ["*****", "*abc*", "*ded*
I am new to coding, trying to find a simple python code for re-arranging some lines. Lines have specific string to select. Those lines with this specific string