As you can see in the picture, when I print dataframe using df command, after running, it is showing data but after the 4th row, it shows (...) and it starts from 795 again. How can I get the full data?
CodePudding user response:
This should work:
data = load_iris()
df = pd.DataFrame(data.data,
columns = data.feature_names)
# Convert the whole dataframe as a string and display
display(df.to_string())
Alternatively, you could use this:
pd.set_option('display.max_rows', None)
CodePudding user response:
Try this, you can set the number of rows you want to see
import pandas as pd
pd.set_option('display.max_rows', None)
Alternatively you could use a different type of IDE. I like Spyder where you can view the whole frame