SEO Analysis of a post ranking first in Google – Ανάλυση SEO ενός άρθρου και κατάταξή του ως πρώτο αποτέλεσμα στην Google χωρίς κόστος διαφήμισης Video and Python SEO Analyzer script credit: Tryfon Papadopoulos YouTube link: https://www.youtube.com/watch?v=e50wmaWDDJk FB Tags: #seo_analysis #python_script #python_coding #google_ranking #keywords #blogging / www.mindstorm.gr
Εισαγωγή άρθρων σε ιστοσελίδα WORDPRESS από αρχείο WORD με τη βοήθεια της PYTHON και του Ultimate CSV Importer Free Θα εισάγετε καλύτερο περιεχόμενο (άρθρα) και θα το κάνετε πολύ πιο γρήγορα. Δείτε το σχετικό βίντεο που έφτιαξα για να καταλάβετε περισσότερα . . . YouTube link: https://www.youtube.com/watch?v=5DHl8frSj2A #mindstormGR #python #blogging #automation #word_to_csv #csv_to_wordpress
Common Marketing Problems in the Food Industry Customer Awareness and Brand Recognition: Many food brands struggle with building customer awareness and brand recognition, especially in highly competitive markets. Challenge: How to differentiate the brand and make it stand out among competitors. Possible Scenario: Low customer engagement, low social media interaction, and low brand recall. Pricing Strategy: Determining the right pricing strategy can be tricky, especially with the fluctuating costs of ingredients and the pressure from competitors. Challenge: Balancing between competitive pricing and maintaining profit margins. Possible Scenario: Competitor price drops, increases in production costs, or demand sensitivity to pricing. Product Distribution and Reach: Ensuring that products reach the target market efficiently is crucial, and many companies face issues with distribution logistics. Challenge: Expanding distribution channels while managing logistics costs and maintaining product quality. Possible Scenario: Limited shelf space, issues with supply chain efficiency, or new market entry. Changing Consumer Preferences:…
Embedding an HTML file directly into a WordPress post Upload the HTML File and Embed it with an iframe If you have a complete HTML file that you want to display within a WordPress post, you can upload the file to your server and then embed it using an iframe. 1. Upload the HTML File: You can upload the HTML file to your WordPress media library, but WordPress doesn’t support HTML file uploads by default. You can enable this by adding the following code to your theme’s functions.php file: function add_upload_mime_types($mimes) { $mimes[‘html’] = ‘text/html’; return $mimes; } add_filter(‘upload_mimes’, ‘add_upload_mime_types’); Alternatively, you can upload the HTML file to your web hosting server via FTP or use the file manager in your hosting control panel. 2. Get the File URL: Once the HTML file is uploaded, get the URL of the file. If you uploaded it via the media library,…
In summary, this Python script extracts product information from a Word document, processes it to create entries suitable for WordPress/WooCommerce (including variations), and saves the data as a CSV file you can import immediately to your eshop. In more detail, the script performs the following tasks: Imports necessary libraries: It imports pandas for data manipulation, Document from docx for handling Word documents, and uuid for generating unique identifiers. Defines a function to generate unique SKUs: The generate_unique_sku function creates a unique SKU by combining a base name with a short UUID (a unique identifier) and an optional suffix. Extracts product information from a Word document: The extract_product_info_from_word function reads a Word document and extracts product details such as title, description, type, SKU, colors, sizes, brand, and prices. It organizes this data into a list of dictionaries, where each dictionary represents a product. Processes product information: The script iterates over the…
Websites Hellenic-land.com Το Hellenic-Land.com είναι μία ηλεκτρονική δίγλωσση πλατφόρμα στα ελληνικά και στα αγγλικά που ξεκίνησε το 2015 με σκοπό την υποστήριξη και την προώθηση όσο το δυνατόν περισσότερων νέων δημιουργών & προμηθευτών ελληνικών και κυπριακών προϊόντων καθώς και παρόχων υπηρεσιών σε έδαφος Ελλάδας και Κύπρου, οι οποίοι επιθυμούν να αναδείξουν, να διαφημίσουν και να προωθήσουν τα προϊόντα τους ή/και τις υπηρεσίες τους όχι μόνο στην Ελλάδα και στην Κύπρο, αλλά και στο εξωτερικό. Wordpress What is CMS (Content Management System)? https://mindstorm.gr/what-is-cms-content-management-system/ Woocommerce – Compare different sheets and then Add New or Update Existing Products from CSV files https://mindstorm.gr/woocommerce-compare-different-sheets-and-then-add-new-or-update-existing-products-from-csv-files/ Python Read and extract text from a PDF file Excel and Python work great together – VBA Macro and Python script Data Analysis Creation of SKU QR Codes, SKU Barcodes and SKU Product URL QR Codes with VBA https://mindstorm.gr/creation-of-sku-qr-codes-sku-barcodes-and-sku-product-url-qr-codes-with-vba/ Microsoft Access Tips Microsoft Excel Tips Automate Workflow Everywhere
This is the PDF file. Download “demo_ten_page_document_with_paragraphs.pdf” This is the extracted text from the PDF file. Download “1.docx” Here is the python code to read and extract text from a PDF file: import tkinter as tk import pdfplumber from PIL import Image, ImageTk from tkinter.filedialog import askopenfile from docx import Document from docx.shared import Inches import os root = tk.Tk() canvas = tk.Canvas(root, width=600, height=200) canvas.grid(columnspan=3, rowspan=3) # logo try: logo = Image.open(‘logo.png’) logo = ImageTk.PhotoImage(logo) logo_label = tk.Label(image=logo) logo_label.image = logo logo_label.grid(column=1, row=0) except FileNotFoundError: print(“Logo file not found. Please ensure logo.png is in the same directory as the script.”) # instructions instructions = tk.Label(root, text=”Select a PDF file on your computer to extract all its text / Διαλέξτε ένα αρχείο PDF από τον υπολογιστή σας για να γίνει εξαγωγή κειμένου”, font=”Calibri”) instructions.grid(columnspan=3, column=0, row=1) instructions2 = tk.Label(root, text=”Select 1.docx file on your computer to use all extracted text / Διαλέξτε το αρχείο 1.docx από τον υπολογιστή σας για να χρησιμοποιήσετε το εξαχθέν κείμενο”, font=”Calibri”) instructions2.grid(columnspan=3, column=0, row=6) # instructions3 instructions3 = tk.Label(root, text=”Version 1.0 | Created by Tryfon Papadopoulos”, font=”Calibri”) instructions3.grid(columnspan=3, column=0, row=7) def open_file(): browse_text.set(“loading…”) file = askopenfile(parent=root, mode=’rb’, title=”Choose a file / Διαλέξτε ένα αρχείο”, filetypes=[(“Pdf file”, “*.pdf”)]) if file: with pdfplumber.open(file) as pdf: page_content = “” has_text = False …
Excel and Python work great together. See how you can use them to create and analyze data, and make your life easier. Excel & Python code credit : Trifonas Papadopoulos Thank you, Sven Bo, for making me understand with your videos, how Excel and Python can work together. Excel File Creation Video Language / Γλώσσα : Greek / Ελληνικά
Python & Excel Αυτόματη δημιουργία των αρχείων data_excel2.xlsx με γράφημα και data_excel3.xlsx (pivot table) από το αρχείο data_excel.xlsx (πηγή δεδομένων) με χρήση γλώσσας python. Το μόνο που έχετε να κάνετε είναι να γράψετε το όνομα του προγράμματος μας στη γραμμή εντολών και τα αρχεία data_excel2 και data_excel3 θα δημιουργηθούν αυτόματα. Αν πρέπει να επεξεργάζεστε συχνά δεδομένα και σας παίρνει χρόνο, μπορούμε να σας βοηθήσουμε να το κάνετε γρήγορα και χωρίς λάθη. Email : info@softexperia.com #office_automation #python #softexperia / fb : Softexperia.com
Use ‘Sheet1’ (data) in excel file: sales_jan_feb_mar_2021_d.xlsx and do the following: 1) Read all columns of the excel file: sales_jan_feb_mar_2021_d.xlsx – 9 columns 2) Read specific columns of the excel file (Month, Actual_Sales, Customer, Salesperson): sales_jan_feb_mar_2021_d.xlsx – 4 columns 3) Create new excel file: Actual_Sales Mean by Salesperson.xlsx 4) Create new excel file: Actual_Sales Mean by Customer.xlsx 5) Create new excel file: Actual_Sales Mean by Month.xlsx 6) Create new tab: ActSalesMean by Salesperson in existing excel file: sales_jan_feb_mar_2021_d.xlsx and find actual sales mean by salesperson 7) Create new tab: ActSalesMean by Customer in existing excel file: sales_jan_feb_mar_2021_d.xlsx and find actual sales mean by customer 8) Create new tab: ActSalesMean by Month in existing excel file: sales_jan_feb_mar_2021_d.xlsx and find actual sales mean by month 9) Plot Actual_Sales Mean for 3, 4 and 5 10) Change styling of columns (font, alignment) for tabs: ‘ActSalesMean by Salesperson’, ‘ActSalesMean by Customer’, ‘ActSalesMean by Month’…
Use of chatGPT and YouTube to become a Data Analyst – Χρήση του chatGPT και του YouTube για να κάνει κάποιος ανάλυση δεδομένων Code file: app.py Folder: C:\PythonPrograms\data_analysis_with_chatGPT 1) Merge multiple excel files – Συγχώνευση πολλών αρχείων excel data1.xlsx data2.xlsx data3.xlsx data4.xlsx 2) Clean data – Καθαρισμός δεδομένων 3) Create two excel reports (Total Revenue, Expenses and Profit by Category) and (Total Revenue, Expenses and Profit by Country) – Δημιουργία δύο αρχείων excel (category_report.xlsx and country_report.xlsx) 4) Add a chart to category_report.xlsx – Προσθήκη γραφήματος στο αρχείο excel category_report.xlsx 5) Add a chart to country_report.xlsx – Προσθήκη γραφήματος στο αρχείο excel country_report.xlsx 6) Build two interactive plots (category_chart.html and country_chart.html) 7) Create a streamlit dashboard with 2 graphs – Δημιουργία ενός πίνακα προβολής και διαχείρισης streamlit με 2 γραφήματα με τη βοήθεια της γλώσσας Python – with Python. Changed code by Trifonas Papadopoulos: #Code starts…
Scenario for using Python and Excel Request 1 Take the following 3 excel files: sales_jan_2022.xlsx sales_feb_2022.xlsx sales_mar_2022.xlsx and create a new excel: sales.xlsx and a new csv file: sales.csv with all the records from these 3 excel files. Request 2 Take the following 3 excel files: sales_jan_2022.xlsx sales_feb_2022.xlsx sales_mar_2022.xlsx and create a new excel: total_sales.xlsx and a new csv file: total_sales.csv with total of Actual_Quantity for each month. Request 3 Take the following 3 excel files: sales_jan_2022.xlsx sales_feb_2022.xlsx sales_mar_2022.xlsx and create a new excel: total_sales_by_salesperson.xlsx and a new csv file: total_sales_by_salesperson.csv with total of Actual_Sales per month for each salesperson. Request 1, 2 and 3 are completed with python script: main.py. See it in action . . . (watch the video below) Request 4 Take the following excel files: sales.xlsx total_sales_by_salesperson.xlsx and change the styling so it is easier to read them. Request 4 is…
Did you know you can use Python code to create an Excel Data Entry Form and avoid duplicate records? Πως να δημιουργήσετε μια φόρμα εισαγωγής δεδομένων σε 10 λεπτά με τη γλώσσα προγραμματισμού PYTHON (No VBA) Πως να διασφαλίσετε ότι δεν θα κάνετε διπλοεγγραφές Excel fields : Name, City, Favorite Color, German, Spanish, English, Children Excel before data entry Data entry form Excel after data entry ‘Python code starts here. import PySimpleGUI as sg import pandas as pd # Add some color to the window sg.theme(‘DarkTeal9’) EXCEL_FILE = ‘data_entry.xlsx’ df = pd.read_excel(EXCEL_FILE) layout = [ [sg.Text(‘Please fill out the following fields:’)], [sg.Text(‘Name’, size=(15,1)), sg.InputText(key=’Name’)], [sg.Text(‘City’, size=(15,1)), sg.InputText(key=’City’)], [sg.Text(‘Favorite Color’, size=(15,1)), sg.Combo([‘Green’, ‘Blue’, ‘Red’], key=’Favorite Color’)], [sg.Text(‘I speak’, size=(15,1)), sg.Checkbox(‘German’, key=’German’), sg.Checkbox(‘Spanish’, key=’Spanish’), sg.Checkbox(‘English’, key=’English’)], [sg.Text(‘No. of Children’, size=(15,1)), sg.Spin([i for i in range(0,16)], initial_value=0, key=’Children’)], [sg.Submit(), sg.Button(‘Clear’), sg.Exit()] ] window = sg.Window(‘Simple data entry form’, layout) def clear_input(): for key…
Πως να επιλέγετε γραμμές και στήλες με τη βιβλιοθήκη pandas της γλώσσας προγραμματισμού Python See below the data and the code for the result shown on image . . . How to select rows and columns in pandas # Credit : Trifonas Papadopoulos, Oct 4th, 2022, Version 2.0 # start of code —————————————————————————————– import pandas as pd import numpy as np # data data = [[‘A0001′,”,”,”,0,’variable’,0,0], [‘A0001′,’WHITE’,’S’,’Small’,1,’variation’,0,0], [‘A0001′,’WHITE’,’M’,’Medium’,2,’variation’,0,0], [‘A0001′,’WHITE’,’L’,’Large’,3,’variation’,0,0], [‘A0001′,’WHITE’,’XL’,’Extra Large’,4,’variation’,0,0], [‘A0001′,’BLACK’,’L’,’Large’,5,’variation’,0,0], [‘A0003′,”,”,”,6,’variable’,0,0], [‘A0003′,’BLACK’,’XL’,’Extra Large’,7,’variation’,0,0], [‘A0002′,”,”,”,8,’variable’,0,0], [‘A0002′,’BLACK’,’L’,’Large’,9,’variation’,0,0], [‘A0002′,’BLACK’,’XL’,’Extra Large’,10,’variation’,0,0], [‘A0004′,”,”,”,12,’variable’,0,0], [‘A0004′,’WHITE’,’S’,’Small’,12,’variation’,0,0], [‘A0004′,’RED’,’S’,’Small’,13,’variation’,0,0], [‘A0004′,’RED’,’M’,’Medium’,14,’variation’,0,0], [‘A0001′,’WHITE’,’XXL’,’2 Extra Large’,15,’variation’,0,0], ] # print list of columns print(‘–list of columns———————————————————–‘) cols = list(df.columns.values) print(cols) # dataframe with defined column names df = pd.DataFrame(data, columns=[‘parent’, ‘color’, ‘size’, ‘size_desc’, ‘order’, ‘type’, ‘quantity’,’price’]) print(”) print(‘–dataframe with defined column names—————————————‘) print(df) # end of code —————————————————————————————– If you want to see more ways to select rows and columns in pandas (Python), read my code (Version…
Let’s assume that you have 2 excel files : product_data_excel.xlsx (99 rows x 5 columns, A2: E100) product_data_excel_2.xlsx (107 rows x 5 columns, A2:E108) The 5 columns of the two excel files are : product_id, product_description, quantity, regular_price and category.product_data_excel.xlsx You have changed quantity and price values for existing product_ids : “A0001” and “A0003” (column : “product_id”) and you have added 8 new products in excel file : product_data_excel_2.xlsx. product_data_excel_2.xlsx Now you want to compare product_data_excel.xlsx and product_data_excel_2.xlsx and create a new excel file : product_data_excel_changed_and_new_records.xlsx and csv file : product_data_excel_changed_and_new_data.csv with the 2 existing products you have changed and the 8 new ones you have added. product_data_excel_changed_and_new_records.xlsx Download product_data_excel.xlsx, product_data_excel_2.xlsx, product_data_excel_changed_and_new_records.xlsx, product_data_excel_changed_and_new_records.csv Click comparing_data_values_between_2_excel_files to see the code (html format) . . .
Let’s assume that you got three csv files from the sales department : “_sales_january_2021_d.csv” “_sales_feb_2021_d.csv”“_sales_mar_2021_d.csv” and you want : to join them in one new csv file : “sales_jan_feb_mar_2021_d.csv” to find actual sales sum per month, actual sales sum (quantity) per month and actual sales mean per month to save actual sales by person per month in csv file : “sales_by_person.csv”and in excel file : “sales_by_person.xlsx” to save “sales_by person.csv” as “sales_by_person_modified.csv” with different english headers to save “sales_by person.csv” as “sales_by_person_modified_gr.csv” with different greek headers to find actual sales sum, actual sales mean and actual sales total for salesperson : “Trifon Papadopoulos” to create a graph(bar) for Actual Sales total per Salesperson to create a graph(bar) for Actual Sales total per Month_ref to join “sales_jan_feb_mar_2021_d.csv” with “sales_january_2021_d_products_orders.csv” and save the output to excel file : “output1.xlsx” to improve styling of excel files : “sales_jan_feb_mar_2021_d.xlsx” and “output1.xlsx” Results of…
Comparison of Budget and Actual Sales / Jan 21 – Jun 21 Results 1) Budget Sales VS Actual Sales – Graph (line) 2) Budget Sales sum 3) Actual Sales sum 4) Difference between Budget Sales sum and Actual Sales sum – Euro 5) Actual Sales sum is X % of Budget Sales sum 6) Creation of new data source file (format : csv) with 2 new columns 7) Budget Sales VS Actual Sales – Graph (bar) Photo 1 8) Budget Sales VS Actual Sales – Graph (line), selection of certain columns to plot and different graph dimensions (photo 1) 9) Budget Sales mean (photo 1) 10) Actual Sales mean (photo 1) Click the html file data_visualization_with_python_5 to view the project . . . Data source file : sample_data_sales.csv Columns in data source file : month, budget_sales, actual_sales New data source file : sample_data_sales_with_difference.csv New columns calculated and added with…
Αυτόματη εισαγωγή δεδομένων πίνακα δεδομένων και τριών γραφημάτων σε αρχείο excel και αποθήκευση αυτού σε προκαθορισμένο φάκελο με χρήση γλώσσας προγραμματισμού python. Μπορούμε να αναλύσουμε και να μετατρέψουμε σε γραφήματα, οποιοδήποτε πίνακα δεδομένων. Το μόνο που πρέπει να κάνετε εσείς, είναι να τρέξετε το πρόγραμμα που θα σας δώσουμε και το αρχείο θα δημιουργηθεί στον προκαθορισμένο φάκελο. Products 1 to 6 Comparison of Sales (Units) for year 2020 and 2021 Products, Sales Score 2020, Sales Score 2021 Product 1, 90, 45 Product 2, 78, 39 Product 3, 60, 30 Product 4, 80, 40 Product 5, 60, 30 Product 6, 90, 60 FB Tags : #softexperia #analysis #graphs #python / fb : Softexperia.com / www.softexperia.com