e2b-dev / e2b-dev/code-interpreter

Adding y_error to charts breaking data output

Offen
#125 1 Kommentar 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@mishushakov arbeitet bereits daran.

Seit 23.6.2025.

bug Code Interpreter
Vorherrschende Sprache
Python
Sterne
2.4k
Forks
228
Ø Merge
48 Min.
Gemergte PRs (30 T.)
5

Beschreibung

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()

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.