[BUG] `as_column` of pandas timestamps delivers different resolution datetime depending on whether we pass a scalar or list
Open
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
Assessment
This issue has not been assessed yet.