This PR adds some support for type checking dataframes and their columns. More precisely, it allows type checking their schema (and generating assertions on it), column access by name (single or multi) and column assignment by name (single or multi)
For example:
df:Frame[name:str,age:int]=...names=df["name"]# <- type checked as Column[str]df[["name","age"]]=df[["age","name"]]# <- invalid because the types are wrong
The add operation is partially implemented on DataFrames
It also adds support for tuples, methods on str, multi-parameter generic application in Python, minor fixes, and it loosens some diagnostics from errors to warnings
This PR adds some support for type checking dataframes and their columns. More precisely, it allows type checking their schema (and generating assertions on it), column access by name (single or multi) and column assignment by name (single or multi)
For example:
```python
df: Frame[name: str, age: int] = ...
names = df["name"] # <- type checked as Column[str]
df[["name", "age"]] = df[["age", "name"]] # <- invalid because the types are wrong
```
The `add` operation is partially implemented on DataFrames
It also adds support for tuples, methods on `str`, multi-parameter generic application in Python, minor fixes, and it loosens some diagnostics from errors to warnings
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR adds some support for type checking dataframes and their columns. More precisely, it allows type checking their schema (and generating assertions on it), column access by name (single or multi) and column assignment by name (single or multi)
For example:
The
addoperation is partially implemented on DataFramesIt also adds support for tuples, methods on
str, multi-parameter generic application in Python, minor fixes, and it loosens some diagnostics from errors to warningslen()b36896cc7b