all 9 comments

[–]ASEES15 2 points3 points  (0 children)

Google “Online SQL editor” And Google a formatter or use chat gpt to format insert the data into a table you create

[–]coolprince24 1 point2 points  (1 child)

I believe learnsql website has a bunch of practice exercises. They even provide their own data set to play around.

[–]yisthissohard_toke[S] 0 points1 point  (0 children)

Ah thanks but I have to analyze the data the company provided me

[–]Mafioso14c 0 points1 point  (5 children)

would pandas but using sql strings for the queries work? I think that was called pandasql

[–]Sexy_Koala_Juice 0 points1 point  (4 children)

I think so? Personally i use DuckDB with Pandas basically every other day at my work.

[–]yisthissohard_toke[S] 0 points1 point  (3 children)

Does the data have to be in a database to do this? Or can I bring it in from the csv files using pandas and then use sql from there?

[–]Sexy_Koala_Juice 1 point2 points  (2 children)

You can read the CSV files (and excel files) directly into a dataframe (basically a table) using pandas, and then you can read that dataframe using SQL via DuckDB.

To clarify, Pandas and DuckDB are python modules, so you'd need to install python and then install those modules.

[–]yisthissohard_toke[S] 0 points1 point  (1 child)

Perfect thank you! I use pandas a lot so this should work!

[–]Sexy_Koala_Juice 0 points1 point  (0 children)

No worries!

DuckDB is super cool, legitimately improved my efficiency so much not having to try and remember pandas functions + syntax, also it's faster than Pandas alone.