Skip to main content

Questions tagged [string]

A string is a finite sequence of symbols, commonly used for text, though sometimes for arbitrary data.

string
0 votes
2 answers
44 views

Searching for an Integer with the highest index within a string - C#

String[] digits = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" }; String line = "...
user26430853's user avatar
1 vote
1 answer
20 views

How to trim a string by the nth occurrence of a special character?

I have string values (filed name: filename) that follow a certain template: filename_this_is_called_Plan_A file_this_is_Plan_A filename2024_this_is_known_as_Plan_A While the strings are all a ...
user14452102's user avatar
0 votes
1 answer
46 views

Why is there random stuff in my string when printing its bytes?

I'm trying to see how format string bug works and tried to explore it by myself. This is a simple program: #include"stdio.h" #include"string.h" struct mystruct{ char buf[32]; ...
Mateusz's user avatar
  • 11
-1 votes
0 answers
36 views

cleaning list object containing text and creating new variables using Python

I am trying to create a data frame running the following code - # pip install edgartools import pandas as pd from edgar import * # Tell the SEC who you are set_identity("Your Name youremail@...
Sharif's user avatar
  • 177
0 votes
0 answers
18 views

Flutter , How to form a sentence from a words that broadcasted from a websocket

Im using a websocket to make a chatbot. This is a broadcast Stream WebSocketHelper(@Named('webSocketUrl') String url) : channel = IOWebSocketChannel.connect(url) { _broadcastStream = ...
Febin Johnson's user avatar
0 votes
0 answers
18 views

How to convert long hex string into byte array (0x69, 0x63, etc. etc.)

I have a long hex string (around 8000 bytes) that I want to convert into what I think is called a byte array. (Please be kind if I've got the name wrong.) In other words, the string begins 69636E etc. ...
emendelson's user avatar
0 votes
4 answers
43 views

How do I extract substrings of a dataframe column by referencing another column?

Let's say I have a dataframe as below: import pandas as pd nhl_df = pd.DataFrame({ "team": ["Tampa Bay Lightning", "Boston Bruins", "Toronto Maple Leafs", ...
Jae Jin Bang's user avatar
0 votes
0 answers
37 views

2 similar strings evaluated incorrectly

I have the below function to compare word in database with word the user searches for.It return true when there is a match and false if not. Some of the words have special /Unicode characters so we ...
Amrita Deb's user avatar
0 votes
0 answers
9 views

convert string to timestamp in pinescript

I'm importing a string that i then turn into an array. i would like to use the date and time values inside the array to draw lines from. The issue seems to be that a const string is expected. Is there ...
Karl Laeufer's user avatar
-1 votes
1 answer
76 views

How do you use the "string" function is c

I was watching this CS50 course on computer science and it asked me to add the CS50.h header file but it wasn't available in my vs code as it wasn't cloud based like the cs50 one was I wasn't really ...
ScrawnyBrat's user avatar
0 votes
4 answers
61 views

Substring replacement in data frame, based on a look-up table [closed]

As input, I've got a large data frame in R with lists of strings of different lengths, referring to certain codes - like this: glt.code glt.phylogeny 1 adha1238 adha1238 ...
Moehrengulasch's user avatar
-1 votes
2 answers
55 views

Why do I not get the more helpful "sum() can't sum strings, use join" message, but "unsupported operand types for +"?

I'm learning Python now. I created a function def my_func(my_tuple): return sum(my_tuple) Then I do print(my_func(("a", "b"))) And I get: TypeError: unsupported operand type(...
User985468376's user avatar
1 vote
1 answer
46 views

how to add all thing in slice to a only one string

hello every body i was coding about create a map and on that map we have 2 thing name of book and number of book and i stuck in one thing if name of book is look like this "Harry Potter" ...
Sepehr's user avatar
  • 21
0 votes
1 answer
50 views

Unicode strings in a purely python3 codebase - are these useless? [duplicate]

In the codebase that I'm working on, there seems to be remnants of python2 because a lot of the strings are prefixed with u. From researching, it looks like this denotes a unicode string, but in ...
NFeruch - FreePalestine's user avatar
0 votes
2 answers
33 views

make groups by a dictionary in R

I have the task of identifying the group to which a sentence belongs according to the use of specific words, for example identifying which color has been used to describe an animal. I have a ...
Dan G's user avatar
  • 21

15 30 50 per page
1
2 3 4 5
12313