nomic 3.3.2__tar.gz → 3.3.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of nomic might be problematic. Click here for more details.
- {nomic-3.3.2 → nomic-3.3.3}/PKG-INFO +1 -1
- {nomic-3.3.2 → nomic-3.3.3}/nomic/dataset.py +13 -0
- {nomic-3.3.2 → nomic-3.3.3}/nomic.egg-info/PKG-INFO +1 -1
- {nomic-3.3.2 → nomic-3.3.3}/setup.py +1 -1
- {nomic-3.3.2 → nomic-3.3.3}/README.md +0 -0
- {nomic-3.3.2 → nomic-3.3.3}/nomic/__init__.py +0 -0
- {nomic-3.3.2 → nomic-3.3.3}/nomic/atlas.py +0 -0
- {nomic-3.3.2 → nomic-3.3.3}/nomic/aws/__init__.py +0 -0
- {nomic-3.3.2 → nomic-3.3.3}/nomic/aws/sagemaker.py +0 -0
- {nomic-3.3.2 → nomic-3.3.3}/nomic/cli.py +0 -0
- {nomic-3.3.2 → nomic-3.3.3}/nomic/data_inference.py +0 -0
- {nomic-3.3.2 → nomic-3.3.3}/nomic/data_operations.py +0 -0
- {nomic-3.3.2 → nomic-3.3.3}/nomic/embed.py +0 -0
- {nomic-3.3.2 → nomic-3.3.3}/nomic/pl_callbacks/__init__.py +0 -0
- {nomic-3.3.2 → nomic-3.3.3}/nomic/pl_callbacks/pl_callback.py +0 -0
- {nomic-3.3.2 → nomic-3.3.3}/nomic/settings.py +0 -0
- {nomic-3.3.2 → nomic-3.3.3}/nomic/utils.py +0 -0
- {nomic-3.3.2 → nomic-3.3.3}/nomic.egg-info/SOURCES.txt +0 -0
- {nomic-3.3.2 → nomic-3.3.3}/nomic.egg-info/dependency_links.txt +0 -0
- {nomic-3.3.2 → nomic-3.3.3}/nomic.egg-info/entry_points.txt +0 -0
- {nomic-3.3.2 → nomic-3.3.3}/nomic.egg-info/requires.txt +0 -0
- {nomic-3.3.2 → nomic-3.3.3}/nomic.egg-info/top_level.txt +0 -0
- {nomic-3.3.2 → nomic-3.3.3}/pyproject.toml +0 -0
- {nomic-3.3.2 → nomic-3.3.3}/setup.cfg +0 -0
|
@@ -12,6 +12,7 @@ from pathlib import Path
|
|
|
12
12
|
from typing import Dict, List, Optional, Tuple, Union
|
|
13
13
|
|
|
14
14
|
import numpy as np
|
|
15
|
+
import pandas as pd
|
|
15
16
|
import pyarrow as pa
|
|
16
17
|
import requests
|
|
17
18
|
from loguru import logger
|
|
@@ -1373,6 +1374,18 @@ class AtlasDataset(AtlasClass):
|
|
|
1373
1374
|
blobs: A list of image paths, bytes, or PIL Images. Use if you want to create an AtlasDataset using image embeddings over your images. Note: Blobs are stored locally only.
|
|
1374
1375
|
pbar: (Optional). A tqdm progress bar to update.
|
|
1375
1376
|
"""
|
|
1377
|
+
if isinstance(data, DataFrame):
|
|
1378
|
+
cols_before = set(data.columns)
|
|
1379
|
+
for col in cols_before:
|
|
1380
|
+
if col.startswith("_"):
|
|
1381
|
+
raise ValueError(
|
|
1382
|
+
f"You are attempting to upload a pandas dataframe with the column name {col}, but columns beginning with '_' are reserved for Atlas internal use. Please rename your column and try again."
|
|
1383
|
+
)
|
|
1384
|
+
data = pa.Table.from_pandas(data)
|
|
1385
|
+
for newcol in set(data.column_names).difference(cols_before):
|
|
1386
|
+
logger.warning(f"Dropping column {newcol} added in pandas conversion to pyarrow")
|
|
1387
|
+
data = data.drop([newcol])
|
|
1388
|
+
|
|
1376
1389
|
if embeddings is not None:
|
|
1377
1390
|
self._add_embeddings(data=data, embeddings=embeddings, pbar=pbar)
|
|
1378
1391
|
elif isinstance(data, pa.Table) and "_embeddings" in data.column_names: # type: ignore
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|