Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Exploring Data [3/3] | Reading and Exploring Data
Introduction to pandas [track]

bookExploring Data [3/3]

Summary of DataFrame' columns

If you need additional information about DataFrame, i.e., memory usage, number of non-null values in addition to the considered in the previous chapter, use the .info() method.

1234567
# Importing library import pandas as pd # Reading csv file df = pd.read_csv('https://codefinity-content-media.s3.eu-west-1.amazonaws.com/67798cef-5e7c-4fbc-af7d-ae96b4443c0a/audi.csv') # DataFrame' columns information print(df.info())
copy

Numerical columns' summary

For numerical columns you can get the mean, minimal, maximal values, 25%, 50%, 75% quantiles, standart deviation using the .describe() method.

1234567
# Importing library import pandas as pd # Reading csv file df = pd.read_csv('https://codefinity-content-media.s3.eu-west-1.amazonaws.com/67798cef-5e7c-4fbc-af7d-ae96b4443c0a/audi.csv') # Numerical columns' summary print(df.describe())
copy

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 6

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

Awesome!

Completion rate improved to 3.33

bookExploring Data [3/3]

Swipe um das Menü anzuzeigen

Summary of DataFrame' columns

If you need additional information about DataFrame, i.e., memory usage, number of non-null values in addition to the considered in the previous chapter, use the .info() method.

1234567
# Importing library import pandas as pd # Reading csv file df = pd.read_csv('https://codefinity-content-media.s3.eu-west-1.amazonaws.com/67798cef-5e7c-4fbc-af7d-ae96b4443c0a/audi.csv') # DataFrame' columns information print(df.info())
copy

Numerical columns' summary

For numerical columns you can get the mean, minimal, maximal values, 25%, 50%, 75% quantiles, standart deviation using the .describe() method.

1234567
# Importing library import pandas as pd # Reading csv file df = pd.read_csv('https://codefinity-content-media.s3.eu-west-1.amazonaws.com/67798cef-5e7c-4fbc-af7d-ae96b4443c0a/audi.csv') # Numerical columns' summary print(df.describe())
copy

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 6
some-alt