code-genie
This library is your copilot for jupyter notebooks
Latest version: 0.3.1
Documentation
Installation
pip install code-genie
Access Token
You need your unique access token to use this library. You can get your access token by signing up here here
Usage
Setting environment variables
On the top of your notebook, set an environment variable called CODE_GENIE_TOKEN as your access token. This can
be done in a couple of ways:
Using env magic
%env CODE_GENIE_TOKEN=xxxkeyxxx
Using dotenv
You can use the python-dotenv package.
from dotenv import load_dotenv
load_dotenv("path-to-.env-file")
Pandas data processing
Following is an example to get the number of missing values in each column of a dataframe.
from code_genie import PandasGenie
genie = PandasGenie(instructions=[
"create a new dataframe which contains the number of missing values in each column",
"add a column to this dataframe representing the percentage of total points which are missing",
"sort dataframe in descending order of number of missing items",
"filter out columns which have no missing values"
])
df_missing = genie(df)
Metadata
Release files for code_genie 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| code_genie-0.3.1.tar.gz | 424.1 kB | Without provenance | Details for code_genie-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| code_genie-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for code_genie-0.3.1-py3-none-any.whl |
Total release size: 431.9 kB
Release files / code_genie-0.3.1.tar.gz
| Download URL | code_genie-0.3.1.tar.gz |
|---|---|
| Size | 424.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
57ea1fc40b35fc954c69441b56db94554931b5cb1b1b27ba88d3c9b953ad127f
|
|
BLAKE2b-256 checksum How to use checksums |
60d2a8ab3289821d5ebc2d8c815c38d60b4edc284da1d1c8e36f053f955fc3b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.28.2
|
Release files / code_genie-0.3.1-py3-none-any.whl
| Download URL | code_genie-0.3.1-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
baaf70d6779cb7f9895d3a329e15ed494042e3f8e7d13997427be71f4dd1e645
|
|
BLAKE2b-256 checksum How to use checksums |
1dc26a91a1f9b9493d3ad66249db79cc4d01e1313078927c683a0fe6a0879d14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.28.2
|
Security for code_genie 0.3.1
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.