Code: Alles auswählen
import pandas as pd
# Load data from CSV
data = pd.read_csv('data.csv')
# Perform groupby operation
grouped = data.groupby('category')['value'].sum()
Code: Alles auswählen
import pandas as pd
# Load data from CSV
data = pd.read_csv('data.csv')
# Perform groupby operation
grouped = data.groupby('category')['value'].sum()