Skip to content

Commit

Permalink
Merge pull request #153 from Renumics/feature/sequence1d-as-fallback-…
Browse files Browse the repository at this point in the history
…for-arrays

Feature/sequence1d as fallback for arrays
  • Loading branch information
druzsan authored Jul 19, 2023
2 parents 3cbae55 + 7fe2f56 commit 2bcfc8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion renumics/spotlight/io/pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def infer_dtype(column: pd.Series) -> Type[ColumnType]:
try:
np.asarray(column.to_list(), dtype=float)
except (TypeError, ValueError):
return np.ndarray
return Sequence1D
return dtype_mode
return dtype_mode

Expand Down
2 changes: 1 addition & 1 deletion src/widgets/Inspector/store.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const StoreProvider = ({ children }: ProviderProps): JSX.Element => {
const allColumns = useDataset((d) => d.columns);
const lenses = useComponentsStore((d) => d.lensesByKey);
const defaultLenses = useMemo(() => {
const defaultColumns = allColumns.filter((c) => c.lazy).slice(0, 5);
const defaultColumns = allColumns.filter((c) => c.lazy && !c.isInternal);
return _.compact(
defaultColumns.map((column) => {
const lens = Object.values(lenses).filter((lens) =>
Expand Down

0 comments on commit 2bcfc8a

Please sign in to comment.