I am working with a very big data set (18000 rows of data) which I only want to show a couple of rows such as 5 or 10 first rows. I was trying to use pandas.DataFrame().head(10)
method but I am doing some styling and formatting and I receive the following error:
AttributeError: 'Styler' object has no attribute 'head'
This is how the styling looks like:
df.style.set_table_styles([{'props': [('font-size', '9pt'),
('line-height', '100%')]}])
What is the best solution to this?