Skip to content
Advertisement

Select numerical column header names

I have a data frame with column names in numbers 1 to 99, i use integer names to loop for different activities. Datetime in index

JavaScript

Is there anyway to call the column header 2 & 8 without converting to string header.

Convert integer column name to string name

JavaScript

Trial 1

JavaScript
JavaScript

Trial 2

JavaScript
JavaScript

Advertisement

Answer

Is there anyway to call the column header 2 & 8 without converting to string header.

This should work:

JavaScript

Here, you probably want

JavaScript
Advertisement