r/learnpython • • 7d ago

New to python

Hello, Iโ€™m starting to learn how to use python. I do scientific research in my job and right now what Iโ€™m most interested in learning is how to use python to analyze data, perform statistical tests, data plotting and visualization, and later on maybe creating simple tools that might be helpful to automate some steps in data analysis. As Iโ€™m just starting I need some advice on good ways and resources to use for beginners to eventually be able to do these things. Perhaps some free courses or good youtube channels. Thank you ๐Ÿ˜Š

6 Upvotes

17 comments sorted by

1

u/conor-robertson 6d ago

Check out QueryCase if you want a fun way to learn Python, specifically pandas and statistics. It's a gamified platform where you learn python via solving detective cases!

1

u/Better-Prior5988 6d ago

Thank you ๐Ÿ™

1

u/Correct_Rain_9438 6d ago

Since you want to analyze data and plot it, Python for Data Analysis by Wes McKinney is free to read online in full. It's written by the creator of pandas and covers loading, cleaning and plotting data, so it fits the research side of what you described.

1

u/Better-Prior5988 6d ago

Thank you ๐Ÿ™

1

u/Top-Cauliflower-1808 6d ago

Start with Python for Data Analysis by Wes McKinney and the pandas documentation. For stats and plotting, the SciPy lectures and Seaborn tutorials cover most of what you need. Automating analysis steps comes naturally once you are comfortable with pandas functions and writing small scripts.

1

u/Timely-Bend2056 5d ago

get comfortable with basic data structures like lists and dictionaries first, then jump straight into reading and manipulating tabular data. you really dont need to master object-oriented programming or complex algorithms just to automate some lab workflows and plot results

1

u/Beneficial-Parsnip52 5d ago

The best way to learn Python is to build small projects while learning the basics. Start with variables, loops, functions, and lists, then try making simple things like a calculator or a number guessing game. Don't get stuck watching tutorials for hours without actually coding. You'll learn a lot more by making mistakes and figuring out how to fix them.

1

u/2daytrending 5d ago

Since you're doing research try learning with your actual datasets. kaggle learn has free pandas and visualization lesson, boot dev has data analyst path and scypi for stats too. no need to learn all of python before getting into the fun stuff.

1

u/peakpirate007 5d ago

been building https://www.runtime.school/ for learning and practicing python in one place. lessons, practice, projects and a few tools all use the same datasets, so it feels more connected than jumping between random examples. if youโ€™re learning python , might be useful.

1

u/nian2326076 3d ago

For getting started with Python for data analysis, "Python for Data Analysis" by Wes McKinney is a solid choice; it's available for free online and covers data manipulation and statistical tests. You can also find helpful tutorials on YouTube. To further enhance your skills, you might want to use PracHub for practice with Python and data science problems, which can reinforce what you learn.

0

u/pachura3 6d ago

Why not R ?

1

u/Better-Prior5988 6d ago

Based on my limited knowledge of python and R, I know that theyโ€™re both good for this purpose. Are there advantages to using R over python? Thank you ๐Ÿ™

1

u/Sufficient-Tale6131 6d ago

For pure stats R still has an edge. Most tests and models are built in (t.test, lm, glm), the output gives you the full summary table by default, and a lot of newer or niche methods show up as R packages first. ggplot2 is also really nice for publication figures.

Python wins once you want to automate steps or build small tools, which you mentioned too. Honestly I'd go with whatever people in your field or lab already use, so you can borrow their scripts. If you stay with Python, statsmodels gives you those R-style summary tables.