Comment¶
A Datetime object cannot be compared with a string directly.
However,
pandas Series of datetime objects can be compared with string date directly
(both by operators and methods).
The comparison is done by parsing the string to a datetime object.
An exception will be thrown if the string cannot be parsed into a datetime object.
Handling Timezone Correctly in Python
Date and Time in Python pandas
Date/time utilities in the pandas module are more flexible/powerful than that in the datetime module.
It is suggested that you use date/time utilities in the pandas module
when you use DataFrame/Series in the pandas module.
pandas.to_datetime works on an iterable object, handles missing values and nano seconds.
pandas.Series.dt.strftime
Tips on PySimpleGUI
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
http://www.blog.pythonlibrary.org/2019/10/23/a-brief-intro-to-pysimplegui/
https://pysimplegui.readthedocs.io/en/latest/
Issues in pip and Solutions
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Abort trap: 6 when using pip3 search
The issue is due to to pyopenssl using old dependencies.
It can be fixed by removing the Python package cryptography package
and then upgrading …
Get Coordinates of Points on a Screen or Image
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Get the Coordinate of a Pixle/Point on an Image
Most image editing software (e.g., GIMP) can tell you the coordinate of a point on an image.