SciNim / Datamancer

A dataframe library with a dplyr like API
https://scinim.github.io/Datamancer/datamancer.html
MIT License
133 stars 7 forks source link

Error: ambiguous call #50

Closed lf-araujo closed 1 year ago

lf-araujo commented 1 year ago

Hi @Vindaar , I came across the following error:

/home/luis/Documents/OneDrive/Coding/Nim/Programs/allocator/testingmancer.nim(5
, 18) Error: ambiguous call; both io.readCsv(fname: string, sep: char, header: 
string, skipLines: int, maxLines: int, toSkip: set[char], colNames: seq[string]
, skipInitialSpace: bool, quote: char, maxGuesses: int, lineBreak: char, eat: c
har) [proc declared in /home/luis/.nimble/pkgs/datamancer-0.3.11/datamancer/io.
nim(615, 6)] and io_csv.read_csv(csvPath: string, skipHeader: bool, separator: 
char, quote: char) [proc declared in /home/luis/.nimble/pkgs/arraymancer-0.7.19
/arraymancer/io/io_csv.nim(52, 6)] match for: (string)

While attempting to read the csv file:

date,investpercent,expenses,savings,low,high,yrate
2021-04-20,40.00,0.00,0.00,0.00,0.00,0.00
2021-05-23,40.00,0.00,0.00,0, 0, 0

Using the code:

import datamancer
import arraymancer

let df1 = readCsv("finances.csv")
echo df1

With nim version:

Nim Compiler Version 1.6.10 [Linux: amd64]
Compiled at 2022-11-21
Copyright (c) 2006-2021 by Andreas Rumpf

git hash: f1519259f85cbdf2d5ff617c6a5534fcd2ff6942
active boot switches: -d:release

Tried with read.csv in R and it reads correctly.

lf-araujo commented 1 year ago

I will cancel this one, as I now notice it is an incompatibility with arraymancer. If I remove arraymancer it works as expected.