Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Series.apply + Lambda Function¶
DataFrame.apply + Lambda Function¶
axis=1: apply the lambda function on each row
List Comprehension¶
numpy.where¶
numpy.where is vectorized ifelse.
Python pandas Tips
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
pandas
Settings
Please refer to Options for the pandas Package in Python for discussions.
Tips and Traps
-
Do NOT use
DataFrame.iterrows
. Please refer to the issue for discussions on it …
Categorical Data in Pandas
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Get Location of Max Value in a Pandas Series
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
idxmax Return the row label of the maximum value.
argmax: Return int position of the largest value in the Series.
Python Modules for Visualization
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
The website The Python Graph Gallery displays hundreds of charts, always providing the reproducible python code! It aims to showcase the awesome dataviz possibilities of python and to help you benefit …
Cast Types of Columns in Pandas
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!