parsing_data/quickref.tex
author Anoop Jacob Thomas<anoop@fossee.in>
Sun, 07 Nov 2010 18:36:59 +0530
changeset 398 36295bb91766
parent 331 e3136f576acb
permissions -rw-r--r--
Added quickrefs for dictionaries, getting started with arrays, for, matrices, other plots, savefig, using python modules.

Splitting a string on whitespace:\\
{\ex \lstinline|    str_var.split()|}

Splitting a string using a delimiter. Ex: ";" :\\
{\ex \lstinline|    str_var.split(";")|}

Stripping the whitespace around a string:\\
{\ex \lstinline|    str_var.strip()|}

Converting a string or float to int:\\
{\ex \lstinline|    int(var_name)|}

Converting a string or int into float:\\
{\ex \lstinline|    float(var_name)|}