Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- File "/path/cmd.py", line 4, in <module>
- sparkValues = SQLContext.read.parquet('/a/file/ranks.parquet');
- AttributeError: 'property' object has no attribute 'parquet'
- from pyspark import SparkConf, SparkContext
- from pyspark.sql import SQLContext
- sparkValues = SQLContext.read.parquet('/a/file/ranks.parquet');
- pandaValues = sparkValues.toPandas();
- pandaValues.to_csv('/a/file/ranks.csv');
Add Comment
Please, Sign In to add comment