reneshbedre / bioinfokit

Bioinformatics data analysis and visualization toolkit
MIT License
334 stars 77 forks source link

read csv #18

Closed kyawwh closed 3 years ago

kyawwh commented 3 years ago

How can i read my own csv file?

reneshbedre commented 3 years ago

@kyawwh check this out https://reneshbedre.github.io/blog/pandas.html#import-data-from-file

kyawwh commented 3 years ago

Thank you. Sir

reneshbedre commented 3 years ago

Did you solve your issue?

kyawwh commented 3 years ago

Yes. But I can't use t test(type3, paired t test) . There is error in paired ttest.

reneshbedre commented 3 years ago

Can you please send error details?

kyawwh commented 3 years ago

IMG_20201014_164018.jpg

This is my data frame.

IMG_20201014_164029.jpg

This is error.

Can you tell me, how can I sent you message from github?

reneshbedre commented 3 years ago

@kyawwh

You need to keep only Ewt and Twt in the dataframe. You can do that like this way

df = df[['Ewt', 'Twt']]

Then again run the ttest on this updated dataframe.

Let me know if you still have trouble. You can also send me an email at reneshbe@gmail.com

kyawwh commented 3 years ago

IMG_20201015_174314.jpg

There is still problem sir.

reneshbedre commented 3 years ago

@kyawwh

You have saved the dataframe in the y variable.

Update your code as res.ttest(df=y, res=['Twt', 'Ewt'], test_type=3)

kyawwh commented 3 years ago

Sorry, sir. Yesterday, I uploaded 2 pic, but one was uploaded. IMG_20201015_174325.jpg This is another pic. I tried y variable. But, still error.

reneshbedre commented 3 years ago

@kyawwh

Follow the docs carefully https://reneshbedre.github.io/blog/ttest.html#paired-t-test-dependent-t-test

You need to import the stat class as from bioinfokit.analys import stat and then run the test again with correct dataframe

kyawwh commented 3 years ago

Thank you