e2b-dev / e2b-dev/code-interpreter
Adding y_error to charts breaking data output
Aperta
@mishushakov ci sta già lavorando.
Dal 23/6/2025.
bug
Code Interpreter
- Lingua principale
- Python
- Stelle
- 2.4k
- Fork
- 228
- Merge medio
- 48m
- PR unite (30g)
- 5
Descrizione
Breaking example:
import matplotlib.pyplot as plt
import pandas as pd
# Create a simple DataFrame with an additional column for standard deviation (error)
data = {
"Category": ["A", "B", "C"],
"Value": [10, 15, 7],
"Std Dev": [1.5, 2.0, 0.8] # Example standard deviation values
}
df = pd.DataFrame(data)
# Create the bar plot with error bars (yerr)
plt.figure(figsize=(6, 4))
plt.bar(df["Category"], df["Value"], yerr=df["Std Dev"], capsize=5) # Added yerr and capsize
plt.xlabel("Category")
plt.ylabel("Value")
plt.title("Simplistic Bar Plot with Error Bars")
plt.tight_layout()
plt.show()
Working example:
import matplotlib.pyplot as plt
import pandas as pd
# Create a very simple DataFrame
data = {
"Category": ["A", "B", "C"],
"Value": [10, 15, 7]
}
df = pd.DataFrame(data)
# Create the bar plot without error bars
plt.figure(figsize=(6, 4))
plt.bar(df["Category"], df["Value"])
plt.xlabel("Category")
plt.ylabel("Value")
plt.title("Simplistic Bar Plot")
plt.tight_layout()
plt.show()
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.