Time Shift
A simple Python utility to create lagged and lead variables for panel or time series data.
Installation
pip install scicraft
Usage
Time_shift:
from scicraft import time_shift
df_new = time_shift(variables=["sales", "price"], dataframe=df, id="firm", time="year", shift=1)
Mutate (function):
from scicraft import mutate
df=mutate(df, 'price>104','new_var',4)
Mutate (pandas api):
import scicraft as sc
df=df.sc.mutate('price>104','new_var',4)
Metadata
Release files for SciCraft 0.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| scicraft-0.0.11.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| scicraft-0.0.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.0 kB
Release files / scicraft-0.0.11.tar.gz
| Download URL | scicraft-0.0.11.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
605c70b2059e84bc41b517036180d1907aeb4463666da0b1165ce637acdb0c4c
|
|
BLAKE2b-256 checksum How to use checksums |
d1954946a9d6700cdf95d449bebce016babe38eac6d596bb9e0b32bc400f0129
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.2
|
Release files / scicraft-0.0.11-py3-none-any.whl
| Download URL | scicraft-0.0.11-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d877f542d8ec17b2783f7adc17ed84bb60d3f9f10b6bf83c3f3d78194e4d2b89
|
|
BLAKE2b-256 checksum How to use checksums |
657c0b9f5fea54bf43a59acdb44b1885b0ade4fb7b68df68f303df620b840ac4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.2
|