Skip to content

Instantly share code, notes, and snippets.

View linkerzx's full-sized avatar

Julien Kervizic linkerzx

  • Facebook
  • London
View GitHub Profile
var N: int = 100
var M: int = 10
for j in 0||(N-1):
for i in 0 ..< M:
echo i, " ", j
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
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
import nimpy
let np = pyImport("numpy")
let a = np.mean([1, 2, 3])
echo a
import basic_import_lib
z = basic_import_lib.julien_print(200)
print(z)
import nimpy
import strutils
proc julien_print(n: Natural): Natural {.exportpy.} =
echo "Hello World!"
return n
{"type": "SimpleOperand", "Operand": "eq", "field": "purchase_date", "value": "{ds-30}"}
{
"Type": "CaseStatement",
"WhenConditions": [
{
"Type": "WhenCondition",
"Operand": {
"Type": "SimpleOperand",
"Operand": "eq",
"Field": "gender",
"Value": "M"
{"Type": "SimpleOperand", "Operand": "eq", "Field": "gender", "Value": "M"}
function sendClickStream(event_str){
const uri = 'https://localhost'
const params = {
body: {
"contentData": btoa(event_str),
"Properties": {}
},
method: "POST"
}