This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var N: int = 100 | |
| var M: int = 10 | |
| for j in 0||(N-1): | |
| for i in 0 ..< M: | |
| echo i, " ", j |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import nimpy | |
| let pd = pyImport("pandas") | |
| let df = pd.DataFrame([[1,2,3]], columns=["cola","colb","colc"]) | |
| echo df | |
| let dfa = pd.read_parquet("somefile.parquet") | |
| echo dfa.shape |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import nimpy | |
| let pd = pyImport("pandas") | |
| let df = pd.DataFrame([[1,2,3]], columns=["cola","colb","colc"]) | |
| echo df | |
| let dfa = pd.read_parquet("somefile.parquet") | |
| echo dfa.shape |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import nimpy | |
| let np = pyImport("numpy") | |
| let a = np.mean([1, 2, 3]) | |
| echo a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import basic_import_lib | |
| z = basic_import_lib.julien_print(200) | |
| print(z) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import nimpy | |
| import strutils | |
| proc julien_print(n: Natural): Natural {.exportpy.} = | |
| echo "Hello World!" | |
| return n |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"type": "SimpleOperand", "Operand": "eq", "field": "purchase_date", "value": "{ds-30}"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Type": "CaseStatement", | |
| "WhenConditions": [ | |
| { | |
| "Type": "WhenCondition", | |
| "Operand": { | |
| "Type": "SimpleOperand", | |
| "Operand": "eq", | |
| "Field": "gender", | |
| "Value": "M" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"Type": "SimpleOperand", "Operand": "eq", "Field": "gender", "Value": "M"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function sendClickStream(event_str){ | |
| const uri = 'https://localhost' | |
| const params = { | |
| body: { | |
| "contentData": btoa(event_str), | |
| "Properties": {} | |
| }, | |
| method: "POST" | |
| } |
NewerOlder