Hi Andrea,

"format" was moved to another location with pandas 0.18. This issue was
fixed in RDKit, you just need to update.
https://github.com/rdkit/rdkit/commit/18b40822b22189bcc0d69a9f3dd5cdbcbf6f322a#diff-e87a869ec98a98d154043410f44fe94e

Cheers,
Samo

On Thu, Mar 9, 2017 at 9:31 AM, Volkamer, Andrea <andrea.volka...@charite.de
> wrote:

> Dear all,
>
> I have trouble showing a table including a ROMol column.
>
> # Add column to dataframe
> PandasTools.AddMoleculeColumnToFrame(df, smilesCol='smiles')
> # Remove compounds that couldn't be built
> df = df[~df.ROMol.isnull()]
>
> This works fine, but when I want to display it (df.head()), I get the
> following error:
>
> AttributeError: 'module' object has no attribute 'format'
>
> The first few columns are printed and have some image encoding in the
> respective column like:
>
> <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAI
> AAAAiOjnJAAAG8UlEQVR4nO3d23bbIBRFUdTR//9l+qBYJSDJCNhwQGu+tMlIHdtaRn
> e6ee8d0Nqf0U8AayIsSBAWJAgLEoQFCcKCBGFBgrAgQViQICxIEBYkCAsShAUJwoIEY
> UGCsCBBWJAgLEgQFiQICxKEBQnCggRhQYKwIEFYkCAsSBAWJAgLEoQFCcKCBG .....
>
> Displaying single molecules or GridImages works fine. Am I missing something?
> I'm using rdkit version: 2016.03.1 and python 2.7.12, pandas 0.19.2.
>
> Thanks,
> Andrea
>
>
>
> ----
>
> Prof. Dr. Andrea Volkamer
>
> In-silico Toxicology Group
> Institute of Physiology, Charité Universitätsmedizin Berlin
> https://physiologie-cbf.charite.de/en/institute/workgroups/team_volkamer/
>
> Campus Mitte: Virchowweg 6, 10117 Berlin/ Philippstraße 13, Haus 18,
> 10115 Berlin
>
>
> Phone: +49 30 - 450 528 554 <030%20450528554> / 209 347 938
> E-Mail: andrea.volka...@charite.de
>
> ------------------------------------------------------------
> ------------------
> Announcing the Oxford Dictionaries API! The API offers world-renowned
> dictionary content that is easy and intuitive to access. Sign up for an
> account today to start using our lexical data to power your apps and
> projects. Get started today and enter our developer competition.
> http://sdm.link/oxford
> _______________________________________________
> Rdkit-discuss mailing list
> Rdkit-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rdkit-discuss
>
>
------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to