Open caitlynachen opened 3 years ago
Describe the bug Without self.code += f”df = pd.DataFrame({str(self.data.to_dict())})\n”, exported BarChart, LineChart and ScatterChart that contain computed data throw an error.
self.code += f”df = pd.DataFrame({str(self.data.to_dict())})\n”
To Reproduce
df = pd.read_csv('https://github.com/lux-org/lux-datasets/blob/master/data/hpi.csv?raw=true') df
vis = df.recommendation["Occurrence"][0] vis print (vis.to_code("matplotlib"))
Expected behavior Should render single BarChart
Screenshots
Expected:
Describe the bug Without
self.code += f”df = pd.DataFrame({str(self.data.to_dict())})\n”
, exported BarChart, LineChart and ScatterChart that contain computed data throw an error.To Reproduce
Expected behavior Should render single BarChart
Screenshots
Expected: