I am sub setting several columns from gapminder data using code:
df_2000 = df.loc[(df['year']>2000) & (df['country'] == 'United States') , ['year' ,'country', 'population', 'life_exp']]
I get the output but I need to make it more visual by separating values in different columns with 2 spaces or more so the code will be much prettier.
So for example instead of
Year Country Population Life
100 AS 100000 0.6
I need something like
Year Country Population Life
100 AS 100000 0.6
Thank you