NVIDIA / NVIDIA/cudf

[BUG] `as_column` of pandas timestamps delivers different resolution datetime depending on whether we pass a scalar or list

Open
#14,627 3 comments 0 reactions 0 assignees View on GitHub
bug Python
Dominant language
C++
Stars
9.8k
Forks
1.1k
Avg merge
3d 6m
Merged PRs (30d)
278

Description

**Describe the bug**

```
import pandas as pd
from cudf.core.column import as_column

data = pd.Timestamp("2000-01-01")

from_scalar = as_column(data)
from_list = as_column([data])

assert from_scalar.dtype == from_list.dtype # False
```

**Expected behavior**

The resolution should be inferred consistently. Note that `cudf.Scalar(data)` infers the same (nanosecond) resolution as `as_column([data])`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.