DataFrame.ctypes
Return the inferred column types in the DataFrame. This returns a Series with the data type of each column. The result’s index is the original DataFrame’s columns.
Examples
const dfd = require("danfojs-node")
let data = {"A": [-20.1, 30, 47.3, -20],
"B": [34, -4, 5, 6],
"C": [20, -20, 30, -40]}
let df = new dfd.DataFrame(data)
df.ctypes.print()╔═══╤══════════════════════╗
║ │ 0 ║
╟───┼──────────────────────╢
║ A │ float32 ║
╟───┼──────────────────────╢
║ B │ int32 ║
╟───┼──────────────────────╢
║ C │ int32 ║
╚═══╧══════════════════════╝Last updated