Github user BryanCutler commented on the issue:
https://github.com/apache/spark/pull/20213
repro to get the warning (this is the non-Arrow code path)
```python
import numpy as np
import pandas as pd
pdf = pd.DataFrame(np.random.rand(100, 2))
df = spark.createDataFrame(pdf[:10])
'''
/home/bryan/git/spark/python/pyspark/sql/session.py:476:
SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
See the caveats in the documentation:
http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy
pdf[column] = s
'''
```
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]