Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
omegaconf
can parse command-line options too. However, unlikeargparse
it does not enforce any constraint on command-line options.
Tips on Darglint
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Tips and Traps
-
It is suggested that you avoid using
darglint
directly, but instead you can useflake8
which will automatically calldarglint
if it exists. -
Improperly escaped
\n
causesdarglint …
Tips on Jinja
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Get the Dependencies of a Python Package Without Installing It
After installing a Python package,
you can use the command pip3 show pkg
to check detailed information about it.
What if you want to get information about a Python package without installing?
The RESTAPI https://pypi.org/pypi/pkg/json returns detailed information of the Python package pkg
.
Note: The recursive version of dependencies implemented bellow does not take into consideration of versions, so it might not return the correct dependencies of a Python packages.
Koalas is pandas API on PySpark
References¶
https://github.com/databricks/koalas
https://databricks.com/blog/2020/08/11/interoperability-between-koalas-and-apache-spark.html
https://spark.apache.org/docs/latest/api/python/pyspark.sql.html
https://spark.apache.org/docs/latest/api/python/pyspark.sql.html#pyspark.sql.DataFrame
https://spark.apache.org/docs/latest/api/python/pyspark.sql.html#pyspark.sql.Column
https://spark.apache.org/docs/latest/api/python/pyspark.sql.html#module-pyspark.sql.functions
Run Commands on Remote Machines
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
On a Sinsgle Machine
SSH
-
The pipeline command is run locally. If you want the pipeline command to run remotely, place the whole command to be run remotely in double/single …