Top "Types" questions

Types, and type systems, are used to enforce levels of abstraction in programs.

What is dtype('O'), in pandas?

I have a dataframe in pandas and I'm trying to figure out what the types of its values are. I …

python pandas numpy dataframe types
When to use std::size_t?

I'm just wondering should I use std::size_t for loops and stuff instead of int? For instance: #include <…

c++ types idiomatic size-t loop-counter
How to check if a class inherits another class without instantiating it?

Suppose I have a class that looks like this: class Derived : // some inheritance stuff here { } I want to check something …

c# inheritance types
How to resolve "must be an instance of string, string given" prior to PHP 7?

Here is my code: function phpwtf(string $s) { echo "$s\n"; } phpwtf("Type hinting is da bomb"); Which results in …

php types type-hinting
How to determine an interface{} value's "real" type?

I have not found a good resource for using interface{} types. For example package main import "fmt" func weirdFunc(i …

types type-conversion go
What's the difference between 'int?' and 'int' in C#?

I am 90% sure I saw this answer on stackoverflow before, in fact I had never seen the "int?" syntax before …

c# syntax types nullable
SSIS Excel Import Forcing Incorrect Column Type

I'm trying to import a spreadsheet to our database using SSIS. For some reason SSIS wants to believe two of …

sql-server excel types ssis
what is the unsigned datatype?

I've seen this unsigned "typeless" type used a couple of times, but never seen an explanation for it. I suppose …

c types unsigned
SQL DataType - How to store a year?

I need to insert a year(eg:1988 ,1990 etc) in a database. When I used Date or Datetime data type, it …

database types sqldatatypes
Unsigned short in Java

How can I declare an unsigned short value in Java?

java types unsigned short