solution for Udacity Data Analysis Professional Nanodegree Program (project #1)
Data structures and algorithms on python.
- Think Python
- Problem Solving with Algorithms and Data Structures using Python
- Data Structures and Algorithms in Python
- this one is my favorite, it is about solving hard mathematical problems via programming languages. You really need to know how to play with data types : https://projecteuler.net
When I run the code, columns are collapsed, and only some of them are shown. You can prevent this situation by adding this to your code:
pd.set_option('display.max_columns',200)
- another method
from tabulate import tabulate
while True:
display_data = input('\nWould you like to see 5 lines of raw data? Enter yes or no.\n')
if display_data.lower() != 'yes':
break
print(tabulate(df_default.iloc[np.arange(0+i,5+i)], headers ="keys"))
i+=5