All Questions
482
questions
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 ...
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 ...
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:
...
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 ...
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 ...
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';
...
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 ...
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 ...
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 ...
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,
...
-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 ...
-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.
...
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 ...
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['...
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
...