Can an integer be NaN in C++?

No, NaN is a floating point value. Every possible value of an int is a number. Edit The standard says: 6.2.6.2 40) Some combinations of padding bits might generate trap representations, for example, if one padding bit is a parity bit. Regardless, no arithmetic operation on valid values can generate a trap representation other than … Read more

Remove NaN/NULL columns in a Pandas dataframe?

Yes, dropna. See http://pandas.pydata.org/pandas-docs/stable/missing_data.html and the DataFrame.dropna docstring: Definition: DataFrame.dropna(self, axis=0, how=’any’, thresh=None, subset=None) Docstring: Return object with labels on given axis omitted where alternately any or all of the data are missing Parameters ———- axis : {0, 1} how : {‘any’, ‘all’} any : if any NA values are present, drop that label all … Read more