Skip to content

Commit

Permalink
Enable doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
garawalid committed Aug 23, 2019
1 parent 68433c7 commit 9d89391
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions databricks/koalas/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -3594,8 +3594,8 @@ def pivot_table(self, values=None, index=None, columns=None,
>>> table = df.pivot_table(values='D', index=['A', 'B'],
... columns='C', aggfunc='sum')
>>> table # doctest: +SKIP
C large small
>>> table # doctest: +NORMALIZE_WHITESPACE
large small
A B
foo one 4.0 1
two NaN 6
Expand All @@ -3606,8 +3606,8 @@ def pivot_table(self, values=None, index=None, columns=None,
>>> table = df.pivot_table(values='D', index=['A', 'B'],
... columns='C', aggfunc='sum', fill_value=0)
>>> table # doctest: +SKIP
C large small
>>> table # doctest: +NORMALIZE_WHITESPACE
large small
A B
foo one 4 1
two 0 6
Expand All @@ -3619,8 +3619,8 @@ def pivot_table(self, values=None, index=None, columns=None,
>>> table = df.pivot_table(values = ['D'], index =['C'],
... columns="A", aggfunc={'D':'mean'})
>>> table # doctest: +SKIP
A bar foo
>>> table # doctest: +NORMALIZE_WHITESPACE
bar foo
C
small 5.5 2.333333
large 5.5 2.000000
Expand Down

0 comments on commit 9d89391

Please sign in to comment.