Quick reference - BRAINscript to Python functions - Data360_Analyze - 3.12

Data360 Analyze Server Help

Product
Data360 Analyze
Version
3.12
Language
English
Portfolio
Verify
Product family
Data360
Product name
Data360 Analyze
Title
Data360 Analyze Server Help
Copyright
2023
First publish date
2016

The following quick reference table summarizes the numeric, string, date, time and datetime functions covered in the previous topics.

For details and examples of how to use the Python functions, see:

BRAINscript Python

abs()

abs(x)

ceil()

math.ceil(x)

double()

float()

floor()

math.floor(x)

int()

int(x)

isNumber()

Custom function

long()

long()

round()

round(x)

pow()

square()

math.pow()

sqrt()

math.sqrt()

left()

x[:num]

ltrim()

lstrip(x)

isSpace()

isspace()

pad()

{}.format(x)

replace()

x.replace()

right()

x[num:]

rtrim()

rstrip(x)

split()

x.split('char')

strFind()

x.find('char')

strlen()

len(x)

substr()

x[n:m]

toLower()

x.lower()

toUpper()

x.upper()

trim()

x.strip()

date()

dateSubtract()

datetime.date()

dateAdjust()

timeSubtract()

dateTimeAdjust()

datetime.timedelta()

day()

month()

year()

date.day(), date.month() and date.year()

time()

datetime.time()

hours()

minutes()

seconds()

datetime.hour(), datetime.minute() and datetime.second()

timestamp()

datetime.datetime()