I am curious why when I run this, the function "parsenumber" gets outputted as a Seq and not just an int.
|> Seq.map (fun ((number,income,sex,house),data) ->
let parsenumber = number |> Seq.skip 9 |> Seq.take 5
let numberofpets = data |> Seq.map (fun row -> (1.0 - float row.pets))
((parsenumber,income,sex,house),numberofpets)
This is the result:
(<seq>, "30050", "Male", "Yes")
(<seq>, "78000", "Female", "No")
How can I change this so it outputs the number and not <seq>.
With Seq.skip and Seq.take, I am trying to skip the first 9 integers of each observation in number and return the last 5.
RAW CSV DATA:
10000000001452,30050,Male,Yes
10000000001455,78000,Female,No
What I want as a result:
('01452','30050','Male','Yes')
('01455','78000','Female','No')
What I am actually getting:
(<seq>, "30050", "Male", "Yes")
(<seq>, "78000", "Female", "No")
I need to not have as an output, and the actual number instead.