8.1.26.3 Worksheet::DeleteCol

It is recommended that you switch to the originpro package. PyOrigin is primarily for users who need to work with Origin version prior to 2021.


Description

Delete column

Syntax

DeleteCol(nColIndex)

Parameters

nColIndex
the index of the column

Return

Returns True on successful and False on failure.

Examples

#Create Book1
import PyOrigin
PyOrigin.LT_execute('newbook name:=Book1')
Sheet=PyOrigin.WorksheetPages('Book1').Layers(0)
#delete the second column
Sheet.DeleteCol(1)