Closed DereckZhang closed 2 years ago
Thanks for the bug, do you have the example code that causes the issue?
I tried this example I found. There was no crash however:
import pandas as pd
course = ["DBMS", "DSA", "OOPS",
"System Design", "CN", ]
# pass the period and starting index
webinar_date = pd.period_range('2020-08-15', periods=5)
# Determine Period Index and Column
# for DataFrame
df = pd.DataFrame(course, index=webinar_date, columns=['Course'])
@rchiodo I have tried your code and error repeats again. I slightly change your code as follow:
import pandas as pd
course = ["DBMS", "DSA", "OOPS",
"System Design", "CN", ]
# pass the period and starting index
webinar_date = pd.period_range('2020-08-15', periods=5)
# Determine Period Index and Column
# for DataFrame to compare
df1 = pd.DataFrame(course, index=webinar_date, columns=['Course'])
df2 = pd.DataFrame(course, columns=['Course'])
df2 can be viewed properly, but df1 shows error as described. Is there any other info I could provide?
What is the version of python and pandas in use? I'm using 3.9.7 and pandas 1.3.4
Error code 3221225477 is an access violation so I'd guess pandas is crashing for some reason.
@rchiodo You are right! I use conda to manager enviroment and set pandas=1.3.4(with python 3.9.7), then df1 can be viewed as: It seems that index can't show properly.
What version of pandas and python were you using before?
PeriodIndex showing an object is expected at the moment. We really only support simple data types for viewing in a column.
@rchiodo I used pandas 1.4.2 and python 3.10.4 before, and every env is mananged by conda separately.
Thanks I can repro the crash with those versions. Probably a bug in pandas.
Weird part is I tried doing the same thing by executing our dataframe parsing code in cells and it didn't crash.
Closing this down as an issue with pandas.
Applies To
What happened?
I got a simple dataframe with period index, and it can be calculated correctly. But click
show variable in data viewer
in jupyter-variables panel, kernel crashed and notification like: Then, I remove its period index, and now it can be viewed properly.VS Code Version
Version: 1.68.0 Commit: 4af164ea3a06f701fe3e89a2bcbb421d2026b68f Date: 2022-06-08T11:44:16.822Z Electron: 17.4.7 Chromium: 98.0.4758.141 Node.js: 16.13.0 V8: 9.8.177.13-electron.0 OS: Windows_NT x64 10.0.19044
Jupyter Extension Version
v2022.5.1001601848
Jupyter logs
Coding Language and Runtime Version
Python v.3.10.4
Language Extension Version (if applicable)
v2022.8.0
Anaconda Version (if applicable)
miniconda 4.13.0
Running Jupyter locally or remotely?
Local