Copilot to supercharge your notebooks
Project description
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)
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
code_genie-0.3.1.tar.gz
(424.1 kB
view details)
Built Distribution
File details
Details for the file code_genie-0.3.1.tar.gz
.
File metadata
- Download URL: code_genie-0.3.1.tar.gz
- Upload date:
- Size: 424.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57ea1fc40b35fc954c69441b56db94554931b5cb1b1b27ba88d3c9b953ad127f |
|
MD5 | a59e8f08881167740103b0bb65e960be |
|
BLAKE2b-256 | 60d2a8ab3289821d5ebc2d8c815c38d60b4edc284da1d1c8e36f053f955fc3b9 |
File details
Details for the file code_genie-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: code_genie-0.3.1-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | baaf70d6779cb7f9895d3a329e15ed494042e3f8e7d13997427be71f4dd1e645 |
|
MD5 | a03b9b59455dbe822a1604d977d269ad |
|
BLAKE2b-256 | 1dc26a91a1f9b9493d3ad66249db79cc4d01e1313078927c683a0fe6a0879d14 |