Q:

How can we parse DataFrame.describe()?

How can we parse the output from DataFrame.describe()? When we print the result of DataFrame.describe() as shown in examples, it is in string format, which is why it is difficult to parse it.
I understand that the print function might be converting the output into a displayable and readable form. However, it is not easily parseable. How can we achieve this?

A:

the output of describe() is a dataframe so you can do:
df = x.describe()

df is a standard DataFrame

