Skip to content

Using (+) Operator With Python Pandas Timestamp in F# Fable #73

Answered by jhonmolano09
jhonmolano09 asked this question in Q&A
Discussion options

You must be logged in to vote

So i ended using Emit and it works correctly

[<Emit("$0 + $1")>]
let add (timestamp:obj) (bday:obj) :obj = nativeOnly

let start = pandas.Timestamp("2022-08-18")

let result = add start  (BDay 1)

Compiles to valid python code

start: Any = pandas.Timestamp("2022-08-18")

result: Any = start + BDay(int8(1.0))

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jhonmolano09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant