Excel_to_Python
@python_excel
Followers
14
Following
13
Media
1
Statuses
56
Use Python for your Excel tasks to be quicker and more efficient
Joined July 2022
I think this is a good overview of pytjon books! https://t.co/rFCfhYKHqI
sitepoint.com
All the books you need to get started with Python or improve your programming knowledge are included in this extensive list.
0
0
0
8. Remove duplicate rows df.drop_duplicates() 9. Create a pivot table df.pivot_table(index='col_1', columns='col_2', values='col_3’) 10. Save to CSV file https://t.co/wQFgEBH2kC_csv('new_data.csv', index=False) That’s it! #pythonprogramming #pythonlearning
0
0
0
5. Filter rows based on specific values df.loc[df['col'] == 'value'] 6. Sort a DataFrame by a specific column df.sort_values(by='col_name', ascending=False) 7. Fill all null values df.fillna(0)
1
0
0
3. Create new columna based on existing columns df['new_col'] = df.apply(lambda x: x['col_1'] * x['col_2'], axis=1) 4. Group and calculate the mean of columns df.groupby('group_col').mean()
1
0
0
One liner for pandas to manipulate data: 1. Read data from a CSV df = https://t.co/aUb4Coxu4W_csv('data.csv') 2. Remove columns with null values df.drop(df.columns[df.isnull().sum() > 0], axis=1, inplace=True)
1
0
0
I find this pretty cool: A tutorial that converts an image into a scetch using python! Check it out:#pythonprogramming
https://t.co/eZsczuyBHg
makeuseof.com
You may not be able to pass yourself off as a great artist with this program, but you can still use it to produce some impressive-looking imagery.
0
0
0
I used: import os for file in os.listdir(folder path): if not file.startswith("~") and file.endswith(".xlsx"): print(file) And this solved it for me! #pythonprogramming #Python
0
0
1
Most answeres on the Internet will tell you to close all hidden files in the folder. However, that didn’t solve it for me. I kept receiving the error. Instead I think the best way is to “ignore” all hidden files.
1
0
0
Ever since I started using python 3.9 I received the following error when reading xlsx files: “Excel file format cannot be determined, you must specify an engine manually.” Here is how you solve it:
1
0
0
For a comprehensive overview go to: https://t.co/G18AfAZlXj
0
0
0
1) Use Docstrings 2) Know PEP 8 (Python Enhancement Proposal) 3) Read Google Python Style Guide 4) Linters help to find small coding mistakes. Use them. 5) There are automatic code formatters that do the styling for you.
1
0
0
Writing clean code in #Python is important because code is a communication tool between humans. Here is how you do it:
1
0
0
Good overview of combining lists and getting a password from a user: #pythonprogramming
https://t.co/V3D7IbcoWw
opensourceforu.com
Python is the most popular programming language and has retained its popularity for almost three years now.
0
0
0
4. The following link will show you how to program a basic bot in python: https://t.co/PM4DHAOrVW 5. For a simple “like” bot in python, head to:
0
0
0
1.Get a developer account, a ‘project’ and an ‘app’ to register your bot with Twitter. 2. Twitter will give you several keys that your bot will use to access its API. 3. Once you have those you can start programming:
1
0
0
How to make a twitter bot in Python 101:#pythonprogramming #TwitterBot 👇🏻
1
0
0
It’s difficult to imagine how ChatGPT is not going to make google redundant. #chatgpt3
0
0
0
If you have Excel spreadsheets where you need to address certain values in a cell here is how you do that with Python openpyxl: #Python3 #openpyxl #exceltopython
https://t.co/c77MpWMVRk
geeksforgeeks.org
Your All-in-One Learning Portal: GeeksforGeeks is a comprehensive educational platform that empowers learners across domains-spanning computer science and programming, school education, upskilling,...
0
0
0