Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scicraft-0.0.11-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

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

Hashes for scicraft-0.0.11.tar.gz
Algorithm Hash digest
SHA256 605c70b2059e84bc41b517036180d1907aeb4463666da0b1165ce637acdb0c4c
MD5 f260a31ee026ac9cdcdfc509c1e096ff
BLAKE2b-256 d1954946a9d6700cdf95d449bebce016babe38eac6d596bb9e0b32bc400f0129

See more details on using hashes here.

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

Hashes for scicraft-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 d877f542d8ec17b2783f7adc17ed84bb60d3f9f10b6bf83c3f3d78194e4d2b89
MD5 fcb903bea73129af8687ad8c13334eaf
BLAKE2b-256 657c0b9f5fea54bf43a59acdb44b1885b0ade4fb7b68df68f303df620b840ac4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page