Comments¶
A PySpark DataFrame can be converted to a pandas DataFrame by calling the method
DataFrame.toPandas
, and a pandas DataFrame can be converted to a PySpark DataFrame by callingSparkSession.createDataFrame
. Notice that when you callDataFrame.toPandas
to convert a Spark DataFrame to a pandas DataFrame, the whole Spark DataFrame is collected to the driver machine! This means that you should only call the methodDataFrame.toPandas
Reshape a pandas DataFrame
Reshape DataFrame¶
Conda Build Issue
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
I encountered an issue building the package sqlalchemy-teradata. There are a few related issues: issues/2790, issues/2826. It seems that the recipe uses an outdated URL. Change the URL to …
Connecting to Databases Using py4jdbc in Python
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Installation
apt-get install sbt
pip3 install py4jdbc
Python Developing in PyCharm
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Change Scheme
-
File -> Settings... -> Editor -> Colors & Fonts
-
Choose a scheme right to "Scheme name"
Change Font of Terminal
-
Search for Console Font
-
Set the desired font size.
-
Restart terminal (the font …
Tips on ANTLR4
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Install ANTLR4 in Ubuntu
wajig install antlr4
sudo pip3 install antlr4-python3-runtime==4.5