Bug: Make Python the first code example tab in the Spark documentation
Status: Resolved | Priority: Major | Resolution: Fixed
Created: 02/Mar/23 02:27
Affects Version/s: 3.5.0

Python is the most approachable and most popular language so it should be the default language in code examples so this makes Python the first code example tab consistently across the documentation, where applicable.

This is continuing the work started with:

https://issues.apache.org/jira/browse/SPARK-42493

where these two pages were updated:

[https://spark.apache.org/docs/latest/sql-getting-started.html]

[https://spark.apache.org/docs/latest/sql-data-sources-load-save-functions.html]

 

Pages being updated now:

[https://spark.apache.org/docs/latest/ml-classification-regression.html]

[https://spark.apache.org/docs/latest/ml-clustering.html]

[https://spark.apache.org/docs/latest/ml-collaborative-filtering.html]

[https://spark.apache.org/docs/latest/ml-datasource.html]

[https://spark.apache.org/docs/latest/ml-features.html]

[https://spark.apache.org/docs/latest/ml-frequent-pattern-mining.html]

[https://spark.apache.org/docs/latest/ml-migration-guide.html]

[https://spark.apache.org/docs/latest/ml-pipeline.html]

[https://spark.apache.org/docs/latest/ml-statistics.html]

[https://spark.apache.org/docs/latest/ml-tuning.html]

 

[https://spark.apache.org/docs/latest/mllib-clustering.html]

[https://spark.apache.org/docs/latest/mllib-collaborative-filtering.html]

[https://spark.apache.org/docs/latest/mllib-data-types.html]

[https://spark.apache.org/docs/latest/mllib-decision-tree.html]

[https://spark.apache.org/docs/latest/mllib-dimensionality-reduction.html]

[https://spark.apache.org/docs/latest/mllib-ensembles.html]

[https://spark.apache.org/docs/latest/mllib-evaluation-metrics.html]

[https://spark.apache.org/docs/latest/mllib-feature-extraction.html]

[https://spark.apache.org/docs/latest/mllib-frequent-pattern-mining.html]

[https://spark.apache.org/docs/latest/mllib-isotonic-regression.html]

[https://spark.apache.org/docs/latest/mllib-linear-methods.html]

[https://spark.apache.org/docs/latest/mllib-naive-bayes.html]

[https://spark.apache.org/docs/latest/mllib-statistics.html]

 

[https://spark.apache.org/docs/latest/quick-start.html]

 

[https://spark.apache.org/docs/latest/rdd-programming-guide.html]

 

[https://spark.apache.org/docs/latest/sql-data-sources-avro.html]

[https://spark.apache.org/docs/latest/sql-data-sources-binaryFile.html]

[https://spark.apache.org/docs/latest/sql-data-sources-csv.html]

[https://spark.apache.org/docs/latest/sql-data-sources-generic-options.html]

[https://spark.apache.org/docs/latest/sql-data-sources-hive-tables.html]

[https://spark.apache.org/docs/latest/sql-data-sources-jdbc.html]

[https://spark.apache.org/docs/latest/sql-data-sources-json.html]

[https://spark.apache.org/docs/latest/sql-data-sources-parquet.html]

sql-data-sources-protobuf.html

[https://spark.apache.org/docs/latest/sql-data-sources-text.html]

[https://spark.apache.org/docs/latest/sql-migration-guide.html]

[https://spark.apache.org/docs/latest/sql-performance-tuning.html]

[https://spark.apache.org/docs/latest/sql-ref-datatypes.html]

 

[https://spark.apache.org/docs/latest/streaming-kinesis-integration.html]

[https://spark.apache.org/docs/latest/streaming-programming-guide.html]

 

[https://spark.apache.org/docs/latest/structured-streaming-kafka-integration.html]

[https://spark.apache.org/docs/latest/structured-streaming-programming-guide.html]