Skip to content

Commit 403b66f

Browse files
committed
post merge edits
1 parent b240f9c commit 403b66f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

bigframes/series.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1193,7 +1193,8 @@ def rdivmod(self, other) -> Tuple[Series, Series]: # type: ignore
11931193
return (self.rfloordiv(other), self.rmod(other))
11941194

11951195
def dot(self, other):
1196-
return (self * other).sum()
1196+
if isinstance(other, Series):
1197+
return (self * other).sum()
11971198

11981199
# At this point other must be a DataFrame
11991200
if len(other.columns.names) == 1:
@@ -1203,6 +1204,7 @@ def dot(self, other):
12031204
[(self * other[col]).sum() for col in other.columns],
12041205
index=other.columns,
12051206
name=self.name,
1207+
session=self._session,
12061208
)
12071209
result = mul_df.mask(na_df)
12081210
else:

tests/system/small/test_series.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3187,7 +3187,11 @@ def test_dot_df_with_na(scalars_dfs):
31873187
)
31883188

31893189
pd.testing.assert_series_equal(
3190-
bf_result.to_pandas(), pd_result, check_index_type=False, check_dtype=False
3190+
bf_result.to_pandas(),
3191+
pd_result,
3192+
check_index_type=False,
3193+
check_dtype=False,
3194+
check_exact=False,
31913195
)
31923196

31933197

0 commit comments

Comments
 (0)