Skip to main content

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)

Source distribution for SciCraft 0.0.11
File Size Uploaded Provenance Actions
scicraft-0.0.11.tar.gz 4.0 kB Without provenance Details for scicraft-0.0.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for SciCraft 0.0.11
File Interpreter ABI Platform Actions
scicraft-0.0.11-py3-none-any.whl Python 3 none any Details for scicraft-0.0.11-py3-none-any.whl

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

Security for SciCraft 0.0.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.11 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page