Skip to content

Commit

Permalink
feat: enhance pandas type declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
mtshiba committed Dec 2, 2023
1 parent ef5a724 commit 2093579
Show file tree
Hide file tree
Showing 14 changed files with 32 additions and 0 deletions.
12 changes: 12 additions & 0 deletions crates/erg_compiler/lib/external/pandas.d/__init__.d.er
Original file line number Diff line number Diff line change
@@ -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"
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.algorithms = pyimport "algorithms"
.api = pyimport "api"
.frame = pyimport "frame"
.indexes = pyimport "indexes"
.series = pyimport "series"
Empty file.
7 changes: 7 additions & 0 deletions crates/erg_compiler/lib/external/pandas.d/io.d/__init__.d.er
Original file line number Diff line number Diff line change
@@ -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"
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{DataFrame!;} = pyimport "../../core/frame"

.read_json!: (path: PathLike) => DataFrame!
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{DataFrame!;} = pyimport "../../core/frame"

.read_csv!: (path: PathLike) => DataFrame!
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.version = pyimport "version"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.Version: ClassType

0 comments on commit 2093579

Please sign in to comment.