Excel_to_Python Profile
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
Don't wanna be here? Send us removal request.
@python_excel
Excel_to_Python
3 years
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
@python_excel
Excel_to_Python
3 years
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
@python_excel
Excel_to_Python
3 years
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
@python_excel
Excel_to_Python
3 years
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
@python_excel
Excel_to_Python
3 years
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
@python_excel
Excel_to_Python
3 years
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
@python_excel
Excel_to_Python
3 years
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
@python_excel
Excel_to_Python
3 years
For a comprehensive overview go to: https://t.co/G18AfAZlXj
0
0
0
@python_excel
Excel_to_Python
3 years
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
@python_excel
Excel_to_Python
3 years
Writing clean code in #Python is important because code is a communication tool between humans. Here is how you do it:
1
0
0
@python_excel
Excel_to_Python
3 years
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
@python_excel
Excel_to_Python
3 years
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
@python_excel
Excel_to_Python
3 years
How to make a twitter bot in Python 101:#pythonprogramming #TwitterBot 👇🏻
1
0
0
@python_excel
Excel_to_Python
3 years
It’s difficult to imagine how ChatGPT is not going to make google redundant. #chatgpt3
0
0
0