Skip to main content

All Questions

0 votes
1 answer
256 views

Converting alphanumeric values to numeric values in a Python pandas dataframe

Timestamp CAN ID Byte DATA[0] DATA[1] DATA[2] DATA[3] DATA[4] \ 1693260 1.478200e+09 0000 8.0 00 00 00 00 00 732574 1.478199e+09 0000 8.0 00 00 ...
Miracle Messiri's user avatar
1 vote
1 answer
1k views

How to validate an integer user input with minimum length 1 and maximum length 32 using robot framework

How to validate an integer user input with minimum length 1 and maximum length 32 using robot framework ? <input type="number"/ Length should be 1 to 32 inclusive. Thank you!
Abhishek K's user avatar
2 votes
2 answers
2k views

Identify pandas dataframe columns containing both numeric and string

I have created the following dataframe (called df): d = {'ltv': [1, 22,45,78], 'age': [33, 43,54,65],'job': ['Salaried','Salaried','Salaried','Owner'], 'UniqueID' : ['A1','A2','A3','A4'] } df = pd....
Giampaolo Levorato's user avatar
1 vote
3 answers
1k views

Detecting alphanumeric/numeric values in python string

I'm trying to extract tokens/part of tokens that have numeric/alphanumeric characters that have a length greater than 8 from the text. Example: text = 'https://stackoverflow.com/questions/59800512/ ...
Suneha K S's user avatar
1 vote
1 answer
847 views

Python: how to split string by groups Alpha-numeric vs numeric

Lets say I have Strings like: "H39_M1", "H3_M15", "H3M19", "H3M11", "D363_H3", "D_128_H17_M50" How can I split them every single one into a ...
HR_quantile's user avatar
-1 votes
2 answers
1k views

Python: How to add/subtract a number only to numeric characters in a string?

Say for example, I have the following strings and an input 4.0, which represents seconds: John Time Made 11:05:20 in 2010 5.001 Kelly #1 6.005 Josh #8 And would like the following result: John Time ...
Jo Ko's user avatar
  • 7,575
0 votes
2 answers
1k views

Sorting Alphabetically and Numerically

f = open(document) #this will open the selected class data swag = [f.readline(),f.readline(),f.readline(),f.readline(),f.readline(),f.readline()] #need to make go on for amount of line viewfile = ...
swagman69123's user avatar
2 votes
3 answers
2k views

Numeric sort of list of dictionary objects

I am very new to python programming and have yet to buy a textbook on the matter (I am buying one from the store or Amazon today). In the meantime, can you help me with the following problem I have ...
user1464409's user avatar
  • 1,042