Fix Python – Pandas: Setting no. of max rows

I have a problem viewing the following DataFrame:
n = 100
foo = DataFrame(index=range(n))
foo[‘floats’] = np.random.randn(n)

The problem is that it does not print all rows per default in ipython notebook, but I have to slice to view the resulting rows. Even the following option does not change the output:
pd.set_option(‘display.max_rows’, 50….

Fix Python – How to Customize the time format for Python logging?

I am new to Python’s logging package and plan to use it for my project. I would like to customize the time format to my taste. Here is a short code I copied from a tutorial:
import logging

# create logger
logger = logging.getLogger(“logging_tryout2”)

# create console handler and set level to debug
ch = logging.Stre….