drabastomek / learningpyspark Goto Github PK
View Code? Open in Web Editor NEWCode base for the Learning PySpark book (in preparation)
License: GNU General Public License v3.0
Code base for the Learning PySpark book (in preparation)
License: GNU General Public License v3.0
The code seems to not stop really...
I have a 6 node Spark Cluster running PySpark3. Perhaps the issue boils down to how I have births_train saved.
I saved the file to my storage as a .csv and not a .csv.gz
base_dir = 'adl://dasciencestorage.azuredatalakestore.net/clusters/dascience/data/open_data/'
births = spark.read.csv(base_dir + 'births_train.csv',
header=True,
schema=schema)
The exact code giving me issues is anything that tries to display what is in births births.describe().show() or even your code that ends with .take(5)
Thoughts?
data = sc.parallelize(
[('Amber', 22), ('Alfred', 23), ('Skye',4), ('Albert', 12),
('Amber', 9)])
You don't show any importing, contextualizing or anything of the sort. Came here after buying the book and looking to actually save my confusion only to be more confused.
The code is looking for births_train.csv.gz file but I can't find the data file.
This code fragment in Chapter 4 example code does not work with Python 2.7:
fields = [
*[
typ.StructField(h[1:-1], typ.IntegerType(), True)
for h in header.split(',')
]
]
It results in the SyntaxError: invalid syntax
error.
Looks like this code is Python 3.x specific. It can be fixed by removing the inner *[ ... ] brackets.
Chapter03.ipynb.
%sql
select * from swimmersJSON
symtaxError: invalid syntax.
I am using google colab notebook for this.
I have tried %sql with BigQuery. it worked. Did anything change?
Thanks.
http://tomdrabas.com/data/LearningPySpark/uber_tripdata_2016-06_3m_parititioned.csv.zip
The above link cannot download data。
Hi,
Chapter2 notebook is going about chapter 3. Etc.
So chapter2 is missing.
Please update this.
Kind regards,
Gertjan.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.