Skip to content

Panda is printing true and false values

I have written some code to extract data in pandas, however i am getting true and false values and not the ouput

extract data using groupby pandas

import pandas as pd
df = pd.read_csv("All.csv",encoding="ISO-8859-1")
CLO= df.groupby("CLO")

Input file

CLO Name   Points Fund
AE         100    ABSA
ME          50    FNB
AE          200   SB
MY          300   NED

Output file should look like

CLO Name       Points       Fund
AE             100          ABSA
AE             200          SB

Output file looks like

1. True
2. False
3. True

Goes on like this up to last line of data in input file


import pandas as pd

df = pd.read_csv(“All.csv”,encoding=”ISO-8859-1″) CLO=df.groupby(“CLO”)