Skip to content

Commit

Permalink
fix test for pandas 2 deviation
Browse files Browse the repository at this point in the history
make pandas bound more liberal
  • Loading branch information
timkpaine committed Jun 8, 2023
1 parent ee6c0a6 commit 323d7d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,8 @@ def test_table_read_nan_datetime_col(self):

def test_table_read_nat_datetime_col(self):
data = pd.DataFrame({"str": ["abc", "def"], "datetime": ["NaT", datetime(2019, 7, 11, 11, 0)]})
# datetime col is `datetime` in pandas<2, `object` in pandas>=2, so convert
data.datetime = pd.to_datetime(data.datetime)
tbl = Table(data)
assert tbl.schema() == {
"index": int,
Expand Down
2 changes: 1 addition & 1 deletion python/perspective/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"ipywidgets>=7.5.1,<9",
"future>=0.16.0,<1",
"numpy>=1.21.6,<2",
"pandas>=0.22.0,<2.1",
"pandas>=0.22.0,<3",
"python-dateutil>=2.8.0,<3",
"traitlets>=4.3.2,<6",
]
Expand Down

0 comments on commit 323d7d3

Please sign in to comment.