zhengruifeng commented on PR #36549:
URL: https://github.com/apache/spark/pull/36549#issuecomment-1126676744
lastest master:
```
pdf = pd.DataFrame(
{
"A": [1, -2, np.nan, -4, 5],
"B": [1.0, -2, np.nan, -4, 5],
"C": [-6.0, -7, -8, np.nan, 10],
"D": ["a", "b", "c", "d", np.nan],
"E": [True, np.nan, False, True, True],
}
)
psdf = ps.from_pandas(pdf)
In [9]: pdf.skew()
Out[9]:
A -0.091371
B -0.091371
C 1.426955
D 0.408657
dtype: float64
In [10]: psdf.skew()
Out[10]:
A -0.091279
B -0.091279
C 1.425527
D 0.408248
dtype: float64
In [11]: pser = pd.Series([1, 2, None], index=np.random.rand(3), name="a")
In [12]: pser.skew()
Out[12]: nan
In [13]: psser = ps.from_pandas(pser)
In [14]: psser.skew()
Out[14]: 0.0
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]