Home > Back-end >  How to use pandas .describe()
How to use pandas .describe()

Time:02-12

I have used pandas in the past but I have recently run into a problem where my code is not displaying the .head() or the .describe() function. I have copied my code below from another website and it is still not displaying. Any help is appreciated.

import pandas as pd
import tensorflow as tf
from matplotlib import pyplot as plt

pd.options.display.max_rows = 10
pd.options.display.float_format = "{:.1f}".format

training_df = pd.read_csv(filepath_or_buffer="california_housing_train.csv")

training_df["median_house_value"] /= 1000.0


training_df.describe(include = 'all')

CodePudding user response:

Your answer will work in a notebook or REPL, but doesn't actually print. Make sure to call the print() function to output while running.

  • Related