Pandas Dataframe through read_csv() - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Pandas Dataframe through read_csv() (/thread-18725.html) |
Pandas Dataframe through read_csv() - ift38375 - May-29-2019 Hi Experts, when i am trying to make dataframe through read_csv() function then it is not showing all columns of CSV file instead of that it is showing some columns as dotted (......). so how can i show all columns in output clearly ? >>> import pandas as pd >>> df = pd.read_csv("F:\KS Stuff\income_data.csv") >>> print(df) [5 rows x 11 columns]
RE: Pandas Dataframe through read_csv() - buran - May-29-2019 These dots are called ellipsis. In this case when pretty print the dataframe they replace rows/columns and truncated view is displayed Note that in fact dataframe has all data, that is just for visualisation. you can change that in the options https://pandas.pydata.org/pandas-docs/stable/user_guide/options.html https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.set_option.html#pandas.set_option e.g. set display.max_columns to None |