mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 12:24:45 +00:00
add external files
This commit is contained in:
parent
7823243dbe
commit
92aa3ea078
122 changed files with 1087 additions and 0 deletions
17
crates/erg_compiler/lib/external/pandas.d/__init__.d.er
vendored
Normal file
17
crates/erg_compiler/lib/external/pandas.d/__init__.d.er
vendored
Normal file
|
@ -0,0 +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"
|
5
crates/erg_compiler/lib/external/pandas.d/core.d/__init__.d.er
vendored
Normal file
5
crates/erg_compiler/lib/external/pandas.d/core.d/__init__.d.er
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
.algorithms = pyimport "algorithms"
|
||||
.api = pyimport "api"
|
||||
.frame = pyimport "frame"
|
||||
.indexes = pyimport "indexes"
|
||||
.series = pyimport "series"
|
0
crates/erg_compiler/lib/external/pandas.d/core.d/algorithms.d.er
vendored
Normal file
0
crates/erg_compiler/lib/external/pandas.d/core.d/algorithms.d.er
vendored
Normal file
3
crates/erg_compiler/lib/external/pandas.d/core.d/api.d.er
vendored
Normal file
3
crates/erg_compiler/lib/external/pandas.d/core.d/api.d.er
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
{.DataFrame!;} = pyimport "./frame"
|
||||
{.Series!;} = pyimport "./series"
|
||||
{.Index;} = pyimport "./indexes/api"
|
14
crates/erg_compiler/lib/external/pandas.d/core.d/frame.d.er
vendored
Normal file
14
crates/erg_compiler/lib/external/pandas.d/core.d/frame.d.er
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
{.Index;} = pyimport "./indexes/api"
|
||||
|
||||
# I := Nat, V := Obj
|
||||
.DataFrame!: (C: Type, I: Type, V: Type) -> ClassType
|
||||
.DataFrame!(C, I, V) <: Input(C)
|
||||
.DataFrame!(C, I, V) <: Input(I)
|
||||
.DataFrame!(C, I, V) <: Output(V)
|
||||
.DataFrame!.
|
||||
__call__: |K, V, I|(dic: {K: [V; _]} or Iterable(Iterable(V)), index: [I; _] := [Nat; _]) -> .DataFrame!(K, I, V)
|
||||
shape: (Nat, Nat)
|
||||
index: .Index(_) # TODO
|
||||
head: |C, I, V|(self: .DataFrame!(C, I, V), tail: Nat := {5}) -> .DataFrame!(C, I, V)
|
||||
tail: |C, I, V|(self: .DataFrame!(C, I, V), tail: Nat := {5}) -> .DataFrame!(C, I, V)
|
||||
info!: (self: .DataFrame!(_, _, _)) => NoneType
|
0
crates/erg_compiler/lib/external/pandas.d/core.d/indexes.d/__init__.d.er
vendored
Normal file
0
crates/erg_compiler/lib/external/pandas.d/core.d/indexes.d/__init__.d.er
vendored
Normal file
1
crates/erg_compiler/lib/external/pandas.d/core.d/indexes.d/api.d.er
vendored
Normal file
1
crates/erg_compiler/lib/external/pandas.d/core.d/indexes.d/api.d.er
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{.Index;} = pyimport "./base"
|
2
crates/erg_compiler/lib/external/pandas.d/core.d/indexes.d/base.d.er
vendored
Normal file
2
crates/erg_compiler/lib/external/pandas.d/core.d/indexes.d/base.d.er
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
.Index: (T: Type) -> ClassType
|
||||
.Index(T) <: Output(T)
|
8
crates/erg_compiler/lib/external/pandas.d/core.d/series.d.er
vendored
Normal file
8
crates/erg_compiler/lib/external/pandas.d/core.d/series.d.er
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
{.Index;} = pyimport "./indexes/api"
|
||||
|
||||
# K := Nat, V := Obj
|
||||
.Series!: (K: Type, V: Type) -> ClassType
|
||||
.Series!(K, V) <: Input(K)
|
||||
.Series!(K, V) <: Output(V)
|
||||
.Series!.
|
||||
__call__: |K, V|(iterable: Iterable(V), index: [K; _] or .Index(K) := [Nat; _]) -> .Series! K, V
|
7
crates/erg_compiler/lib/external/pandas.d/io.d/__init__.d.er
vendored
Normal file
7
crates/erg_compiler/lib/external/pandas.d/io.d/__init__.d.er
vendored
Normal file
|
@ -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"
|
0
crates/erg_compiler/lib/external/pandas.d/io.d/api.d.er
vendored
Normal file
0
crates/erg_compiler/lib/external/pandas.d/io.d/api.d.er
vendored
Normal file
0
crates/erg_compiler/lib/external/pandas.d/io.d/clipboards.d.er
vendored
Normal file
0
crates/erg_compiler/lib/external/pandas.d/io.d/clipboards.d.er
vendored
Normal file
0
crates/erg_compiler/lib/external/pandas.d/io.d/common.d.er
vendored
Normal file
0
crates/erg_compiler/lib/external/pandas.d/io.d/common.d.er
vendored
Normal file
0
crates/erg_compiler/lib/external/pandas.d/io.d/excel.d/__init__.d.er
vendored
Normal file
0
crates/erg_compiler/lib/external/pandas.d/io.d/excel.d/__init__.d.er
vendored
Normal file
0
crates/erg_compiler/lib/external/pandas.d/io.d/html.d.er
vendored
Normal file
0
crates/erg_compiler/lib/external/pandas.d/io.d/html.d.er
vendored
Normal file
3
crates/erg_compiler/lib/external/pandas.d/io.d/json.d/__init__.d.er
vendored
Normal file
3
crates/erg_compiler/lib/external/pandas.d/io.d/json.d/__init__.d.er
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
{DataFrame!;} = pyimport "../../core/frame"
|
||||
|
||||
.read_json!: (path: PathLike) => DataFrame!
|
3
crates/erg_compiler/lib/external/pandas.d/io.d/parsers.d/__init__.d.er
vendored
Normal file
3
crates/erg_compiler/lib/external/pandas.d/io.d/parsers.d/__init__.d.er
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
{DataFrame!;} = pyimport "../../core/frame"
|
||||
|
||||
.read_csv!: (path: PathLike) => DataFrame!
|
0
crates/erg_compiler/lib/external/pandas.d/package.er
vendored
Normal file
0
crates/erg_compiler/lib/external/pandas.d/package.er
vendored
Normal file
0
crates/erg_compiler/lib/external/pandas.d/plotting.d/__init__.d.er
vendored
Normal file
0
crates/erg_compiler/lib/external/pandas.d/plotting.d/__init__.d.er
vendored
Normal file
1
crates/erg_compiler/lib/external/pandas.d/util.d/__init__.d.er
vendored
Normal file
1
crates/erg_compiler/lib/external/pandas.d/util.d/__init__.d.er
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
.version = pyimport "version"
|
1
crates/erg_compiler/lib/external/pandas.d/util.d/version.d/__init__.d.er
vendored
Normal file
1
crates/erg_compiler/lib/external/pandas.d/util.d/version.d/__init__.d.er
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
.Version: ClassType
|
Loading…
Add table
Add a link
Reference in a new issue