Closed fmannhardt closed 1 year ago
Dear Felix,
Yes I am aware of that warning. The only thing the row do is to replace the content of the column with itself typed as string. Actually I am not aware of a better method within Pandas.
In release 2.2.30 we deprecated the method format_dataframe though, in favor of a bigger freedom to the user, that needs to format manually the timestamp columns. Also the methods are always accepting the case, activity and timestamp column (so no need to coerce them into case:concept:name, concept:name and time:timestamp )
Do you have a link on the best practice on how to use Pandas data frames from version 2.2.30?
Sorry my mistake. I meant the upcoming version 2.3.0 (of which we released the rc2)
First we will complete the release process of 2.3.0 and then update the documentation. For some time, documentation in the web site will be overlapping (so every method reported should work for both 2.2.x and 2.3.x). Then it will be more specialized. For the first times, it will be still suggested to use the format_dataframe method even if deprecated.
Ok, then I keep using the method since the course starts in a week. Not a Pandas expert but I found this information:
https://stackoverflow.com/questions/20625582/how-to-deal-with-settingwithcopywarning-in-pandas
So, maybe the method could avoid the warning by locally using pd.options.mode.chained_assignment = None
:-)
I am trying to import a CSV file (sepsis.csv) using the following approach:
The following warnings show up:
The sepsis file is attached but nothing special in there. I am using Python 3.8 and the packages versions installed are: