[Tutor] Why Doesn't the for loop Increment?
Stephen P. Molnar
s.molnar at sbcglobal.net
Wed Jan 13 16:00:12 EST 2021
On 01/13/2021 03:38 PM, Dennis Lee Bieber wrote:
> On Wed, 13 Jan 2021 11:28:14 -0500, "Stephen P. Molnar"
> <s.molnar at sbcglobal.net> declaimed the following:
>
> <SNIP>
>
> You have a tendency to jump around in describing things, but have yet
> to actually follow any suggestions given.
>
> You have been asked, at least three times, to PRINT DF and PRINT
> LIGAND! Until those have been verified, anything else is irrelevant.
>
> -=-=-=-
> #!/usr/bin/env python3
> # -*- coding: utf-8 -*-
> import pandas as pd
> import numpy as np
>
> df = pd.read_csv('ligands_3')
> print(df)
>
> for ligand in df:
> print(ligand)
> -=-=-=-
>
> Run ONLY that snippet and report with exactly what it prints.
>
>
df = pd.read_csv('ligands_3')
print(df)
for ligand in df:
print(df)
7-Phloroeckol
0 Aloeemodin
1 beta-Sitosterol
7-Phloroeckol
0 Aloeemodin
1 beta-Sitosterol
--
Stephen P. Molnar, Ph.D.
www.molecular-modeling.net
614.312.7528 (c)
Skype: smolnar1
More information about the Tutor
mailing list