diff --git a/crates/erg_compiler/lib/external/pandas.d/__init__.d.er b/crates/erg_compiler/lib/external/pandas.d/__init__.d.er index 327e5022d..26b0275f5 100644 --- a/crates/erg_compiler/lib/external/pandas.d/__init__.d.er +++ b/crates/erg_compiler/lib/external/pandas.d/__init__.d.er @@ -1,5 +1,17 @@ +.core = pyimport "core" +.io = pyimport "io" +.plotting = pyimport "plotting" +.util = pyimport "util" + { .DataFrame!; .Series!; .Index; } = pyimport "core/api" + +{ + .read_csv!; +} = pyimport "io/parsers" +{ + .read_json!; +} = pyimport "io/json" diff --git a/crates/erg_compiler/lib/external/pandas.d/core.d/__init__.d.er b/crates/erg_compiler/lib/external/pandas.d/core.d/__init__.d.er index e69de29bb..148c5f097 100644 --- a/crates/erg_compiler/lib/external/pandas.d/core.d/__init__.d.er +++ b/crates/erg_compiler/lib/external/pandas.d/core.d/__init__.d.er @@ -0,0 +1,5 @@ +.algorithms = pyimport "algorithms" +.api = pyimport "api" +.frame = pyimport "frame" +.indexes = pyimport "indexes" +.series = pyimport "series" diff --git a/crates/erg_compiler/lib/external/pandas.d/core.d/algorithms.d.er b/crates/erg_compiler/lib/external/pandas.d/core.d/algorithms.d.er new file mode 100644 index 000000000..e69de29bb diff --git a/crates/erg_compiler/lib/external/pandas.d/io.d/__init__.d.er b/crates/erg_compiler/lib/external/pandas.d/io.d/__init__.d.er new file mode 100644 index 000000000..70a553937 --- /dev/null +++ b/crates/erg_compiler/lib/external/pandas.d/io.d/__init__.d.er @@ -0,0 +1,7 @@ +.api = pyimport "api" +.clipboads = pyimport "clipboards" +.common = pyimport "common" +.excel = pyimport "excel" +.html = pyimport "html" +.json = pyimport "json" +.parsers = pyimport "parsers" diff --git a/crates/erg_compiler/lib/external/pandas.d/io.d/api.d.er b/crates/erg_compiler/lib/external/pandas.d/io.d/api.d.er new file mode 100644 index 000000000..e69de29bb diff --git a/crates/erg_compiler/lib/external/pandas.d/io.d/clipboards.d.er b/crates/erg_compiler/lib/external/pandas.d/io.d/clipboards.d.er new file mode 100644 index 000000000..e69de29bb diff --git a/crates/erg_compiler/lib/external/pandas.d/io.d/common.d.er b/crates/erg_compiler/lib/external/pandas.d/io.d/common.d.er new file mode 100644 index 000000000..e69de29bb diff --git a/crates/erg_compiler/lib/external/pandas.d/io.d/excel.d/__init__.d.er b/crates/erg_compiler/lib/external/pandas.d/io.d/excel.d/__init__.d.er new file mode 100644 index 000000000..e69de29bb diff --git a/crates/erg_compiler/lib/external/pandas.d/io.d/html.d.er b/crates/erg_compiler/lib/external/pandas.d/io.d/html.d.er new file mode 100644 index 000000000..e69de29bb diff --git a/crates/erg_compiler/lib/external/pandas.d/io.d/json.d/__init__.d.er b/crates/erg_compiler/lib/external/pandas.d/io.d/json.d/__init__.d.er new file mode 100644 index 000000000..6dfb3249f --- /dev/null +++ b/crates/erg_compiler/lib/external/pandas.d/io.d/json.d/__init__.d.er @@ -0,0 +1,3 @@ +{DataFrame!;} = pyimport "../../core/frame" + +.read_json!: (path: PathLike) => DataFrame! diff --git a/crates/erg_compiler/lib/external/pandas.d/io.d/parsers.d/__init__.d.er b/crates/erg_compiler/lib/external/pandas.d/io.d/parsers.d/__init__.d.er new file mode 100644 index 000000000..d6b73420c --- /dev/null +++ b/crates/erg_compiler/lib/external/pandas.d/io.d/parsers.d/__init__.d.er @@ -0,0 +1,3 @@ +{DataFrame!;} = pyimport "../../core/frame" + +.read_csv!: (path: PathLike) => DataFrame! diff --git a/crates/erg_compiler/lib/external/pandas.d/plotting.d/__init__.d.er b/crates/erg_compiler/lib/external/pandas.d/plotting.d/__init__.d.er new file mode 100644 index 000000000..e69de29bb diff --git a/crates/erg_compiler/lib/external/pandas.d/util.d/__init__.d.er b/crates/erg_compiler/lib/external/pandas.d/util.d/__init__.d.er new file mode 100644 index 000000000..3de8d778b --- /dev/null +++ b/crates/erg_compiler/lib/external/pandas.d/util.d/__init__.d.er @@ -0,0 +1 @@ +.version = pyimport "version" diff --git a/crates/erg_compiler/lib/external/pandas.d/util.d/version.d/__init__.d.er b/crates/erg_compiler/lib/external/pandas.d/util.d/version.d/__init__.d.er new file mode 100644 index 000000000..61d5bf112 --- /dev/null +++ b/crates/erg_compiler/lib/external/pandas.d/util.d/version.d/__init__.d.er @@ -0,0 +1 @@ +.Version: ClassType