Simplifying Data Science with Python
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
scicraft-0.0.11.tar.gz
(4.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scicraft-0.0.11.tar.gz.
File metadata
- Download URL: scicraft-0.0.11.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
605c70b2059e84bc41b517036180d1907aeb4463666da0b1165ce637acdb0c4c
|
|
| MD5 |
f260a31ee026ac9cdcdfc509c1e096ff
|
|
| BLAKE2b-256 |
d1954946a9d6700cdf95d449bebce016babe38eac6d596bb9e0b32bc400f0129
|
File details
Details for the file scicraft-0.0.11-py3-none-any.whl.
File metadata
- Download URL: scicraft-0.0.11-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d877f542d8ec17b2783f7adc17ed84bb60d3f9f10b6bf83c3f3d78194e4d2b89
|
|
| MD5 |
fcb903bea73129af8687ad8c13334eaf
|
|
| BLAKE2b-256 |
657c0b9f5fea54bf43a59acdb44b1885b0ade4fb7b68df68f303df620b840ac4
|