Skip to main content

All Questions

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
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
1 vote
1 answer
51 views

Expected memory footprint of numbers vs alphanumerics in Tcl

It is aid that in Tcl, "everything is a string". But then again, it is not exactly 100% exactly like that (hence the shimmering effect). My question is this: let us say that I have, in a list, the ...
user1134991's user avatar
  • 3,103
-1 votes
4 answers
5k views

How to check if string is only Numeric and AlphaNumeric and not character string? [closed]

I have a sample data in where have to determine whether the string is numeric or alpha numeric but not a simple character string. for ex: my data is: 123XY 12346 WEPXY What is the condition that ...
user1061293's user avatar