Copilot to supercharge your notebooks
Project description
code-genie
This library is your copilot for jupyter notebooks
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.1.1.tar.gz
(5.3 kB
view hashes)
Built Distribution
Close
Hashes for code_genie-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10bd31cca1104242efaebe77c83d33c18ad34efee8eb906adc8aaa2fbf3f1f92 |
|
MD5 | 65e30b3bc2ff548b0bf7b5df1f0257ff |
|
BLAKE2b-256 | 98168073f70759e5be9a4b1a0a4ac2fea690f8140e88192af11348d1993d956e |