> ## Documentation Index
> Fetch the complete documentation index at: https://arize-ax.mintlify.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Client

<img className="inline m-0" src="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/9e9834e4-image.jpeg" />[View Source on Github](https://github.com/Arize-ai/client_python/blob/main/src/arize/pandas/logger.py#L32)

Arize class to begin logging predictions and actuals from a Pandas.DataFrame.

Import and initialize Arize Client from `arize.pandas.logger`

```python theme={null}
from arize.pandas.logger import Client
```

```python theme={null}
class Client(
    api_key: str #from Arize platform
    space_id: str
    uri: Optional[str] = "https://api.arize.com/v1"
)
```

| Argument   | Data Type | Description                                                                                                                                           |
| ---------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| `api_key`  | str       | (Required) Arize-provided api key associated with your service/space. Click "Show API Key" in the "Upload Data" page in the Arize UI to copy the key. |
| `space_id` | str       | (Required) Arize-provided identifier for relating records to spaces. Click "Show API Key" in the "Upload Data" page in the Arize UI to copy the key.  |
| `uri`      | str       | (Optional) URI endpoint required for on-prem customers. Defaults to "[https://api.arize.com/v1](https://api.arize.com/v1)"                            |

### Code Example

```python theme={null}
from arize.pandas.logger import Client, Schema
from arize.utils.types import ModelTypes, Environments, Schema, Metrics
import pandas as pd

SPACE_ID = "SPACE_ID" #  update value here with your Space ID
API_KEY = "API_KEY"  # update value here with your API key

arize_client = Client(space_id=SPACE_ID, api_key=API_KEY)

if SPACE_ID == "SPACE_ID" or API_KEY == "API_KEY":
    raise ValueError("❌ NEED TO CHANGE SPACE_ID AND/OR API_KEY")
else:
    print(
        "✅ Import and Setup Arize Client Done! Now we can start using Arize!"
    )
```
