Spaces:
Sleeping
Sleeping
File size: 352 Bytes
a7bac1c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
df = pd.DataFrame({
'Category': ['B', 'B', 'B', 'C', 'A', 'B', 'A', 'D'],
'Value': [10, 20, 30, 40, 50, 60, 70, 80]
})
null_data = df.isnull().sum()
print(f"The shape of this dataframe is {str(df.shape)} \n {df.describe()} \n Null data: \n {null_data}")
|