import matplotlib
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
data=pd.read_csv("/data/workspace_files/exp4/train.csv")
data.head()
The above code will lead to a ‘NoneType’ object is not subscriptable, but same code can run perfectly in Jupyter. I wonder what was wrong. Perhaps I didn’t switch to scientific mode?
Hello @DongYunhao, does your notebook have access to workspace files? What responce does os.path.exists("/data/workspace_files/exp4/train.csv")
produce?
It gives the same responce as the code above. In addition, print(data.head()) is available but data.head() is not.
1 Like
Sorry for the inconvenience and thank you for the report, it seems that there is a bug in the Reactive kernel, will fix it soon. You can switch to regular non-reactive kernel at the moment, it should work properly
2 Likes