Japnese Holiday
日付が含まれるデータフレームを入れると,祝日フラグを与えてデータフレームを返します。
引数には以下を指定してください。
- 第一引数 => データフレーム
- 第二引数 => データフレーム内の,日付が入っているカラム名
- 第三引数 => 新しく作られる祝日フラグのカラム名
を入れてください。
*第三引数はデフォルト値がholidayです。
日付は,str型でもdatetime型でも対応します。
str型に変換して,スライスをしています。`
初めから4つが年,
6,7文字目が月
9,10文字目が日にちです。
他のところは何が入っていても問題ありません。
ex1. 2021-01-01
ex2. 2021-01-01 01:01:00
ex3. 2021^01@01 ほりでい
ex4. 2020101901
from jp_holiday import jp_holiday
df_with_holiday = jp_holiday.is_holidy(df, "date", "is_holiday")
Metadata
Release files for jp-holiday 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jp_holiday-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for jp_holiday-1.0.4-py3-none-any.whl |
Release files / jp_holiday-1.0.4-py3-none-any.whl
| Download URL | jp_holiday-1.0.4-py3-none-any.whl |
|---|---|
| Size | 2.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9108eacd34403e81b89ec0f0ec931f3cb9ad02b95ae735bb93cd0996d0c9910d
|
|
BLAKE2b-256 checksum How to use checksums |
ac479e41c388d7c771f1504f478d53f1e2ceaba4e99a660ccda27ad03b7bb963
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
|
Security for jp-holiday 1.0.4
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.