Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
2 answers
56 views

How to fix column with numeric values that is taken as a string field because of empty strings in Pandas dataframe?

I have a df with some columns that are supposed to be numeric fields. However, there are empty strings existing in these columns, which leads to their data being incorrectly assigned as 'object'. How ...
szheng's user avatar
  • 5
0 votes
0 answers
28 views

What can I do when getting "type 'List<String>' is not a subtype of type 'String' in type cast" in flutter when i want to output list of values?

i have the error of "type 'List' is not a subtype of type 'String' in type cast" when ever i pass data of summary question widget to the result screen widget i was expecting to view the ...
Abduweli Abdiaziz's user avatar
0 votes
1 answer
50 views

TypeScript string literal type or enum [duplicate]

When should I create enum or use string literal type ? String literal type: export type Person = { id : number, name : string, gender : "male" | "female" } Enum: ...
gabor_szabo's user avatar
0 votes
0 answers
33 views

Typescript Recursive String Interpolation

I'm working on a simple (but hopefully type-safe) system that represents timeSlots as strings. // example const t1 = "|mon::10:30|"; const t2 = "|fri::20:00|"; So far I have ...
Felipe Chernicharo's user avatar
0 votes
1 answer
62 views

How do I neatly convert my data type for a "for" loop in python

I have a DataFrame (1284 rows, 22 columns) I want to make a scatter plot of each column vs the first column so I will have 21 plots. In the below "for" loop I use the columns of my DataFrame ...
Schieper's user avatar
0 votes
1 answer
51 views

Remove type declaration to match parent

I am preparing a PHP.doc and I have a code like this. /** * The name and signature of the console command. * * @var string */ protected string $signature = 'signature'; ...
AbdullahEmin's user avatar
1 vote
2 answers
127 views

VarType() & TypeName() Fail for Unbound ComboBox.Value

In Access VBA, I have a function that is intended to return a criteria expression from field name and value parameters. The idea is that for strings, the criterion will use the Like operator to permit ...
ebsf's user avatar
  • 191
0 votes
0 answers
92 views

String : Data Type or Data Structure?

A string can be considered as an array of characters. Right? Then why string is considered as a data type in so many languages and not a data structure ? I was thinking in terms of data structures but ...
Shobhit Gupta's user avatar
1 vote
1 answer
324 views

What is the difference between pd.ArrowDtype(pa.string()) and pd.StringDtype("pyarrow")?

From here we can read: https://pandas.pydata.org/docs/user_guide/pyarrow.html The string alias "string[pyarrow]" maps to pd.StringDtype("pyarrow") which is not equivalent to ...
Ziur Olpa's user avatar
  • 1,979
0 votes
1 answer
171 views

Unhandled Exception: type '_Map<String, dynamic>' is not a subtype of type 'String?'

I have the following flutter code in my registration_controller.dart saveBankDetailsUser( {required String accountName, required String accountNumber, required String bankName, ...
Mogbonjubade Ayoade's user avatar
-1 votes
1 answer
35 views

How to define a type with enumerated strings in RELAX NG?

Still learning RELAX NG (wondering whether I should learn XSD instead), I got my element hierarchy mostly right, so I'm working on contents: One element (Unit) uses an enumeration type (a fixed set of ...
U. Windl's user avatar
  • 4,073
-1 votes
1 answer
23 views

What is the difference between the list and list item in Beautiful Soup?

I am writing code to take scraped HTML and turn it into wordcounts and eventually a word cloud. I am using Beautiful Soup to read the HTML file. I would like to pull the strings from all the h2 tags. ...
rcLibrary's user avatar
0 votes
1 answer
36 views

Avoiding using parseInt/Float when getting element.value

I have a table in HTML where I am getting the row ID from , putting it into an array in JavaScript and then trying to do work on the rows. Think of it like an excel sheet that only accepts number ...
Grant's user avatar
  • 1
0 votes
1 answer
29 views

Not able to get string out of pandas rather getting a datatype

read_file = pd.read_csv (r'settings.txt', header = None) read_file.columns = ['username', 'password'] read_file.to_csv (r'settings.csv',index=None) sett = pd.read_csv('settings.csv') mailid= sett['...
prokan's user avatar
  • 21
1 vote
2 answers
992 views

Is there a way to use TypeScript to constrain string primitives to valid email strings?

Instead of using a string type that allows any string to be assigned to an Email variable like this: type Email = string; let email: Email; email = "myEmail"; //INVALID EMAIL, BUT NO ERROR ...
Rolazar's user avatar
  • 230

15 30 50 per page
1
2 3 4 5
33