Python Forum
ANOVA: DataFrame ha no Attribute alpha
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ANOVA: DataFrame ha no Attribute alpha
#5
(Jul-14-2019, 09:22 AM)scidam Wrote: The main issue here, I think, is missing sep=';'. You need to call read_csv with a parameter sep=';', e.g.

data = pd.read_csv('C:\\Users\\Tesema\\Desktop\\PYTHON\\PYTHON3\\Deterent2.csv', sep=';')
If you do so, you will get a data frame, which has columns named Detergent_Brands, Cold, Hot without any semicolons.
These columns will include values top and alpha (without any semicolumns too), so you won't need to apply any cleaning up at all.
Try pass sep=';' and do df restructure as it is shown in #2.

As far as .apply is concerned, you can read about this method in official docs.

Thank you very much for further comments, I will take your solution into consideration. Usually, I practice Python in weekends, I will try it in the coming weekend.
Reply


Messages In This Thread
ANOVA: DataFrame ha no Attribute alpha - by Tese - Jul-13-2019, 09:01 PM
RE: ANOVA: DataFrame ha no Attribute alpha - by Tese - Jul-14-2019, 06:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python for Analysis of variance / Anova xxxlabradorxxx 1 797 Sep-25-2023, 07:11 PM
Last Post: jefsummers
  Why is my gradient descent algorithm requiring such a small alpha? JoeB 1 2,404 Dec-08-2017, 05:15 PM
Last Post: JoeB

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020