Python Basic foundation understanding – How to get help
3. Get documentation of built in methods => help (object.method)
Personally, I would recommend the beginner to familiarize themselves with below 4 frequently used python packages for data science:
1. Numpy – http://www.numpy.org/
Cheat Sheet – from DataCamp. One of the best place to learn data science skill, try it out at https://www.datacamp.com/
2. Scipy – https://www.scipy.org/
3. Matplotlib – https://matplotlib.org/
Cheat Sheet – from DataCamp. One of the best place to learn data science skill, try it out at https://www.datacamp.com/
4. Pandas – https://pandas.pydata.org/
Cheat Sheet 1 – from DataCamp. One of the best place to learn data science skill, try it out at https://www.datacamp.com/
Cheat Sheet 2 – from https://pandas.pydata.org/
-
Series
-
series = pd.Series ([1,-3,5,-7],index = [‘a’,’b’,’c’,’d’])
-
DataFrame
-
dataframe = pd.DataFrame({‘column_header1’:[‘column1_data1′,’column1_data2′,’column1_data3′],’column_header2’:[‘column2_data1′,’column2_data2′,’column2_data3′],’column_header3’:[‘column3_data1′,’column3_data2′,’column3_data3’] }, columns = [‘column_header1′,’column_header2′,’column_header3’])
-
CSV
-
pd.csv_read(‘file.csv’, header = none, nrows =5)
-
pd.to_csv(‘myDataFrame.csv’)
-
Excel
-
pd.read_excel(‘file.xlsx’)
-
pd.to_excel(‘dir/myDataFrame.xlsx’, sheet_name =’sheet1′)
Each of the packages already has its own perfectly written tutorial. Make good use of the type(), dir() and help() and practice with real data, this is how I get started in python.
Python – ETL
I have recently done a small project in a financial institution. The Oracle SQL query has became so complex and took very long query execution time due to the schema design and other restriction of the Oracle database configuration. Therefore, I used the python Pandas to do the ETL instead.
Below is just a simplified version of the original Python script for the project, but the thought process should be similar in general:
sql1 = “SELECT * from table ” [Note: if the sql query is very long, use “”” to wrap the sql to avoid syntax error.]
I like your blog, I read this blog please update more content on python, further check it once at python online course
Thanks for sharing valuable information. Your blogs were helpful to tableau learners. I request to update the blog through step-by-step. Also, find the tableau news at <a href="https://onlineitguru.com/tableau-online-training-placement.html" title="Tableau Online Training | Tableau Online Course in India | Online IT Guru\” rel=\”nofollow\”>Tableau Online Training Blog.