Metadata-Version: 2.1
Name: code_genie
Version: 0.1.1
Summary: Copilot to supercharge your notebooks
Keywords: copilot,jupyter
Author-email: Aarshay Jain <aarshay.jain@columbia.edu>
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Dist: requests
Requires-Dist: pydantic>=1.10,<2
Requires-Dist: pandas>=1.3,<2
Requires-Dist: numpy>=1.20,<2
Requires-Dist: matplotlib>=3.4,<4
Requires-Dist: seaborn>=0.11,<1
Requires-Dist: coverage>=5,<6 ; extra == "build"
Requires-Dist: pytest>=6,<=7 ; extra == "build"
Requires-Dist: pytest-cov>=2.5,<3 ; extra == "build"
Requires-Dist: tox>=3.24,<4 ; extra == "build"
Requires-Dist: isort>=5.10,<6 ; extra == "build"
Requires-Dist: python-dotenv ; extra == "build"
Project-URL: Documentation, https://TBD
Project-URL: Source, https://github.com/thismlguy/code-genie
Provides-Extra: build

# code-genie
This library is your copilot for jupyter notebooks

## Installation

```bash
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](https://dodie819.preview.softr.app/?t=1682342288534)

## 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](https://github.com/theskumar/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.

```python
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)
```

