r/learnpython • • 2d 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

16 comments sorted by

1

u/conor-robertson 2d 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 1d ago

Thank you ๐Ÿ™

1

u/Correct_Rain_9438 2d 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 1d ago

Thank you ๐Ÿ™

1

u/geek_verma 2d ago

Hi I teach Python programming basics to advance and Data Analytics if you want a mentor to help you learn let get in touch

1

u/Top-Cauliflower-1808 1d 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 1d 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 1d 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 1d 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 19h 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.

0

u/pachura3 2d ago

Why not R ?

1

u/Better-Prior5988 1d 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 1d 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.