Metadata-Version: 2.4
Name: SciCraft
Version: 0.0.11
Summary: Simplifying Data Science with Python
Author-email: Jeroen van Raak <j.j.f.vanraak@uva.nl>
License: MIT
Project-URL: Homepage, https://github.com/vanraak/scicraft
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# Time Shift

A simple Python utility to create lagged and lead variables for panel or time series data.

## Installation

```bash
pip install scicraft
```

## Usage

### Time_shift:

```python
from scicraft import time_shift

df_new = time_shift(variables=["sales", "price"], dataframe=df, id="firm", time="year", shift=1)
```

### Mutate (function):
``` python
from scicraft import mutate
df=mutate(df, 'price>104','new_var',4)
```

### Mutate (pandas api):
``` python
import scicraft as sc
df=df.sc.mutate('price>104','new_var',4)
```
