r/learnpython • • 2d ago

What's the best way to learn python for data analysis?

I want to learn python so I can do a data analysis capstone project to finish off high school. I took AP Computer Science A last year so I can code in Java and I understand the fundamentals of coding. What is the best way to learn python and what software would be best? I know nothing about the type of software I would need for this, I used JGrasp last year for CompSci, but it's a pain to work with.

7 Upvotes

9 comments sorted by

5

u/BranchLatter4294 2d ago

Kaggle.com/learn

You just need any code editor.

3

u/bra1n_gym 2d ago

there are many tools to learn for data collection, manipulation, visualization, and modeling: numpy, pandas, scikit-learn, scipy, matplotlib, plotly, seaborn, jupyter notebook, any IDE or text editor: vscode, spyder, etc  SQL: duckdb, sqlAlchemy.

2

u/Sure-Passion2224 2d ago

All of the coding methodology you learned for Java applies to Python. That means you can pay a little more attention to syntax and how the various collection structures (arrays, tuple, etc.) work. Define your data model and working logic up front and that will help to accelerate your coding work. That documentation is also part of your work to be submitted for grade.

2

u/TholosTB 2d ago

Literally the title of Wes's (free online) book. http://wesmckinney.com/book/

1

u/proton_25 2d ago

Is this up-to-date?

1

u/peakpirate007 22h 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/lasithajay 2d ago

My suggestion is to self-learn. Get the top-level idea of the language terminology using any AI tool to explore it first.

Then start building something simple on your own, and use Google Colab or VS Code with Jupyter so you don’t have to deal with setup headaches.

0

u/KingTreacherice 1d ago edited 1d ago

Everyone here is trying to be helpful but here is what i'm working on and i'm not an educator but the pitfall i see across this is stuck in teaching

You don't know syntax but you come into this knowing data struCture and types which are transferable across most domains you just don't realize this.....learn data struCture you inherently learn the data types inside the structure, how to loop and apply flow logic etc.....

If you can learn to read a json response which you already informally know how to the rest is history.....Your ability to structure family, daily activities, LIFE can be structured to resemble a JSON structure ...

That structure then serves as the starting point for the syntax of python, which for data analysis incorporates data frames via pandas or polars....Syntax becomes irrelevant onCe you understand the map beCause you can then learn syntax across damn near any "language"....the same JSON structure that can be used to construct a data rome can be used to create tables in SQL and Excel 😉🫡🙂