Closed anandithaaa closed 5 years ago
Thanks for reporting this! Please could you let me know what version of pandas you are running?
import pandas
print(pandas.__version__)
0.23.4! :)
I'm able to run the the demo notebook (https://github.com/tompollard/tableone/blob/master/tableone.ipynb) using Pandas 0.23.4 without error, so I think something else is going on here. Please could you add code to reproduce the error, perhaps using the sample dataset from the notebook?:
from tableone import TableOne
import pandas as pd
# load sample data into a pandas dataframe
url="https://raw.githubusercontent.com/tompollard/tableone/master/data/pn2012_demo.csv"
data=pd.read_csv(url)
# next steps here
Here you are:
Thanks. Please could copy and paste the output of pandas.show_versions()
?
Would be a good idea to start from a clean notebook too.
-- Jesse Raffa
On October 8, 2018 at 13:09:09, Tom Pollard (notifications@github.commailto:notifications@github.com) wrote:
Thanks. Please could copy and paste the output of pandas.show_versions()?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/tompollard/tableone/issues/72#issuecomment-427910582, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AIO5sUSAtDoJBGDogtVtuOJfBu7pok7qks5ui4a1gaJpZM4XNE_u.
Ahh restarting the kernel fixed the problem! Thank you, sorry for the trouble.
It's rather odd though.. I've only been working for a few hours today and I reproduced the error 4 or 5 times, the first time being really early on in the session.
The above error occurs when trying to create a table, I think it may have something to with a pandas update that no longer requires the sort keyword.
TypeError Traceback (most recent call last)