<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Nahuel Navales on Medium]]></title>
        <description><![CDATA[Stories by Nahuel Navales on Medium]]></description>
        <link>https://medium.com/@navalesnahuel?source=rss-e194bd58b7e2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Q9nFGKLOxYpwsoVsDlKFpQ.png</url>
            <title>Stories by Nahuel Navales on Medium</title>
            <link>https://medium.com/@navalesnahuel?source=rss-e194bd58b7e2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 23:02:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@navalesnahuel/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Database Management System for Bedsheets Store]]></title>
            <link>https://medium.com/@navalesnahuel/database-management-system-for-bedsheets-store-454165648d7c?source=rss-e194bd58b7e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/454165648d7c</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[management]]></category>
            <category><![CDATA[application]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[Nahuel Navales]]></dc:creator>
            <pubDate>Wed, 14 Feb 2024 01:46:40 GMT</pubDate>
            <atom:updated>2024-02-14T01:46:40.275Z</atom:updated>
            <content:encoded><![CDATA[<p>This Python-based application provides a user-friendly interface for managing customers, orders, and product stock related to a imaginary bedsheets store.</p><p>Below you will find an overview of the project and instructions for setting it up.</p><h3>Overview</h3><p>The Management System for Bedsheets offers the following features:</p><ul><li>Adding new customers to the database.</li><li>Placing new orders for bedsheets.</li><li>Managing stock levels by adding stock to existing products.</li><li>Dummies Functionality to populate the tables with ‘Fake Data’</li><li>Reset functionality to initialize database tables and populate them with predefined data.</li></ul><h3>Setup Instructions</h3><ol><li>Database Configuration: Before running the application, ensure that you have PostgreSQL installed and you have a Database. Additionally, make sure to configure the connection.txt file witch is in the folder Configs your PostgreSQL connection details.</li><li>Initial Setup: Run the bedsheets.py file to initialize database tables and populate them with predefined data. Please make sure to have the connection.txt file configured correctly before running the executable.</li></ol><h3>Usage</h3><p>Once the initial setup is complete, you can run the bedsheets.py file to start the Management System. Follow the on-screen instructions to navigate through the menu and perform various actions, such as adding customers, placing orders, and managing stock.</p><p><em>Sample Schema:</em></p><p>After executing the program and running the initialize option, your schema should resemble the desired structure. You can then interact with the database as needed to achieve your desired table configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*yd8QhxAu14je2j_ZDDSBtw.png" /></figure><p>You can then interact with the database as needed to achieve your desired table configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*thz3wBbDFXn6UC0ctwHJTA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*10v96p7csqwQOEpgaRSucg.png" /></figure><p>For the full codebase, visit the GitHub repository <a href="https://github.com/navalesnahuel/bedsheets-db-management">here</a>. Explore more of my projects on <a href="https://medium.com/@navalesnahuel">Medium</a>.</p><p>Thank you for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=454165648d7c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pipeline Project for You: Building a Crypto Data Pipeline]]></title>
            <link>https://medium.com/@navalesnahuel/pipeline-project-for-you-building-a-crypto-data-pipeline-4c7652cd2eba?source=rss-e194bd58b7e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c7652cd2eba</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[airflow]]></category>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Nahuel Navales]]></dc:creator>
            <pubDate>Mon, 22 Jan 2024 23:34:11 GMT</pubDate>
            <atom:updated>2024-01-22T23:34:11.410Z</atom:updated>
            <content:encoded><![CDATA[<h3>Objective</h3><p>The goal of this project is to develop a robust data pipeline that extracts data from a cryptocurrency API, performs necessary transformations, and loads the processed data into a designated data warehouse.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*d1JxobB5lQufUNScUKfE2A.jpeg" /></figure><h4>Services Utilized:</h4><ul><li><strong>Apache Airflow: </strong>Creation of Directed Acyclic Graphs (DAGs).</li><li><strong>Google Cloud Storage:</strong> Data Storage.</li><li><strong>Google Cloud Composer: </strong>Data orchestration.</li><li><strong>Google Cloud DataProc: </strong>Data transformation using PySpark.</li><li><strong>Google Cloud Big Query: </strong>Data Warehouse.</li></ul><h3>Workflow:</h3><h4>Extracting Data from the API</h4><p>We start by creating an Get_data() function to retrieve historical price data for a list of asset IDs from the CoinCap API.</p><pre># Create a exception<br>class ResponseError(Exception):<br>    def __init__(self, message):<br>        self.message = message<br>        super().__init__(message)<br><br><br># This retrieves historical price data for<br># a list of asset IDs from the CoinCap API. It creates a dictionary to store<br># the historical prices for each asset and then converts this dictionary into<br># a pandas DataFrame.<br><br>def get_data(n):<br>    url = &#39;https://api.coincap.io/v2/assets&#39;<br>    response = requests.get(url)<br><br>    if response.status_code == 200:<br>        data = response.json()<br>        ids = []<br><br>        for asset in data[&#39;data&#39;]:<br>            asset_rank = asset.get(&quot;rank&quot;)<br><br>            if asset_rank is not None and int(asset_rank) &lt;= n:<br>                asset_id = asset.get(&quot;id&quot;)<br>                ids.append(asset_id)<br><br>                if len(ids) &gt;= n:<br>                    break<br>            else:<br>                continue<br>    else:<br>        logging.error(f&quot;Error fetching top assets: {response.text}&quot;)<br>        raise ResponseError(f&quot;API request failed: {response.status_code}\n{response.text}&quot;)<br>    <br># Part Two.<br>    asset_data_dict = {}<br><br>    for asset_id in ids:<br>        url = f&#39;https://api.coincap.io/v2/assets/{asset_id}/history?interval=d1&#39;<br>        response = requests.get(url)<br><br>        if response.status_code == 200:<br>            data = response.json()<br>            time_prices = {}<br><br>            for entry in data[&#39;data&#39;]:<br>                time = datetime.fromtimestamp(int(entry.get(&quot;time&quot;)) // 1000, timezone.utc)<br>                price = round(float(entry.get(&quot;priceUsd&quot;)), 3)<br>                time_prices[time.strftime(&#39;%Y-%m-%d&#39;)] = price<br><br>            asset_data_dict[asset_id] = time_prices<br>        else:<br>            logging.error(f&quot;Error fetching data for asset {asset_id}: {response.text}&quot;)<br>            raise ResponseError(f&quot;API request failed: {response.status_code}\n{response.text}&quot;)<br><br>    df = pd.DataFrame.from_dict(asset_data_dict, orient=&#39;index&#39;)<br><br>    with StringIO() as csv_buffer:<br>        df.to_csv(csv_buffer, index_label=&#39;Asset&#39;)<br>        csv_data = csv_buffer.getvalue()<br>    return csv_data</pre><h4>Uploading Data to Google Cloud Storage</h4><p>The extracted data is then uploaded to a Google Cloud Storage bucket called “Raw Data” using a function that writes the data into a CSV file and uploads it to the specified bucket.</p><pre>def upload_to_gcs(**kwargs):<br>    ti = kwargs.get(&#39;ti&#39;)<br>    if ti is not None:<br>        output_data = ti.xcom_pull(task_ids=&#39;get_data_task&#39;)<br><br>        if not output_data:<br>            raise ValueError(&quot;Output data not found in XCom from get_data_task.&quot;)<br><br>        current_dag_directory = os.path.dirname(os.path.abspath(__file__))<br>        relative_save_path = &#39;raw-data/&#39;<br>        csv_file_name = &#39;crypto_raw_{}.csv&#39;.format(datetime.now().strftime(&#39;%Y%m%d%H&#39;))<br>        local_csv_path = os.path.join(current_dag_directory, relative_save_path, csv_file_name)<br>        os.makedirs(os.path.join(current_dag_directory, relative_save_path), exist_ok=True)<br><br><br>        with open(local_csv_path, &#39;w&#39;) as csv_file:<br>            csv_file.write(output_data)<br><br>        gcs_conn_id = os.getenv(&#39;GOOGLE_CLOUD_STORAGE_CONN_ID&#39;, &#39;google_cloud_storage_default&#39;)<br>        gcs_hook = GCSHook(gcs_conn_id)<br><br>        bucket_name = &#39;data-bucket-crypto&#39;<br>        destination_path = os.path.join(relative_save_path, csv_file_name)<br><br>        gcs_hook.upload(bucket_name=bucket_name,<br>                        object_name=destination_path,<br>                        filename=local_csv_path,<br>                        mime_type=&#39;text/csv&#39;) <br>    else:<br>        raise ValueError(&quot;Output data not found in XCom from get_data_task.&quot;)</pre><h4>PySpark Transformation</h4><p>A PySpark function is implemented to transform the raw data, facilitating easier analysis. The transformation involves calculating daily, weekly, and monthly percentage changes in asset values, creating a more insightful dataset for analysis.</p><pre>from pyspark.sql import SparkSession<br>from pyspark.sql.functions import initcap<br>from pyspark.sql.types import *<br>from pyspark.sql.functions import col, round<br>from google.cloud import storage<br>from datetime import datetime<br><br>def run_pyspark():<br>    bucket_name = &#39;data-bucket-crypto&#39;<br>    directory_path = &#39;raw-data/&#39;<br><br>    # Get the CSV Name (The last one created)<br>    client = storage.Client()<br>    bucket = client.get_bucket(bucket_name)<br>    blobs = list(bucket.list_blobs(prefix=directory_path))<br>    csv_files = [blob.name for blob in blobs if blob.name.endswith(&#39;.csv&#39;)]<br>    full_paths = [f&#39;gs://{bucket_name}/{file}&#39; for file in csv_files]<br>    latest_file = max(full_paths, key=lambda file: bucket.get_blob(file[len(f&#39;gs://{bucket_name}/&#39;):]).time_created)<br>    latest_file_name = latest_file.split(&quot;/&quot;)[-1]<br><br><br>    current_date = datetime.now().strftime(&#39;%Y-%m-%d&#39;)<br><br>    file_path = f&#39;gs://data-bucket-crypto/raw-data/{latest_file_name}&#39;<br>    output_path = f&#39;gs://data-bucket-crypto/transformed-data/&#39;<br><br>    # Create Session:<br>    from pyspark.sql import SparkSession<br>    spark=SparkSession.builder.appName(&#39;Transform&#39;).getOrCreate()<br><br>    # Import DF<br>    no_schema_df = spark.read.csv(file_path, header=True)<br>    base_columns = no_schema_df.columns<br><br>    # Create Schema<br>    base_fields = StructType([<br>            StructField(&quot;Asset&quot;, StringType(), True)])<br><br>    date_fields = [StructField(date, FloatType(), True) for date in base_columns[1:]]<br><br>    for field in date_fields:<br>        base_fields.add(field)<br><br>    schema = base_fields<br><br>    # Import DF with schema<br>    df = spark.read.csv(file_path, header=True, schema=schema)<br><br>    # Transform DF<br>    Value = base_columns[-1]<br>    Yesterday_value = base_columns[-2]<br>    Week_ago = base_columns[-7]<br>    Month_ago = base_columns[-29]<br><br>    df = df.withColumn(&quot;Day&quot;, round(((col(Value) - col(Yesterday_value)) / col(Yesterday_value)) * 100, 2)<br>                ).withColumn(&#39;Value&#39;, col(Value)<br>                ).withColumn(&#39;Week&#39;, round(((col(Value) - col(Week_ago)) / col(Week_ago)) * 100, 2)<br>                ).withColumn(&#39;Month&#39;, round(((col(Value) - col(Month_ago)) / col(Month_ago)) * 100, 2))<br><br>    df = df.select(&#39;Asset&#39;, &#39;Value&#39;, &#39;Day&#39;, &#39;Week&#39;, &#39;Month&#39;)<br><br>    df = df.withColumn(&quot;Day&quot;, df[&quot;Day&quot;].cast(FloatType())<br>        ).withColumn(&quot;Week&quot;, df[&quot;Week&quot;].cast(FloatType())<br>        ).withColumn(&quot;Month&quot;, df[&quot;Month&quot;].cast(FloatType())<br>        ).withColumn(&quot;Asset&quot;, initcap(&quot;Asset&quot;))<br><br>    df.write.mode(&#39;overwrite&#39;).parquet(output_path)<br><br>if __name__ == &quot;__main__&quot;:<br>    run_pyspark()</pre><h4>DAG Creation</h4><p>All functions are integrated into a Directed Acyclic Graph (DAG) using Apache Airflow. The DAG orchestrates the entire workflow, including data extraction, storage, transformation (DataProc Cluster) , and loading into the BigQuery data warehouse.</p><pre>from airflow import DAG<br>from datetime import datetime, timedelta<br>from airflow.operators.dummy import DummyOperator<br>from airflow.operators.python_operator import PythonOperator<br>from airflow.utils.dates import days_ago<br>from functions_crypto_dag import get_data, ResponseError, upload_to_gcs<br>from airflow.providers.google.cloud.operators.dataproc import  DataprocCreateClusterOperator<br>from airflow.providers.google.cloud.operators.dataproc import DataprocSubmitJobOperator<br>from airflow.providers.google.cloud.operators.dataproc import DataprocDeleteClusterOperator<br>from airflow.providers.google.cloud.transfers.gcs_to_bigquery import GCSToBigQueryOperator<br><br>CLUSTER_NAME = &#39;dataproc-airflow-cluster&#39;<br>REGION=&#39;southamerica-east1&#39;<br>PROJECT_ID=&#39;crypto-data-411618&#39; <br>PYSPARK_URI = &quot;gs://data-bucket-crypto/URI/pyspark_transformation.py&quot;<br><br>CLUSTER_CONFIG = {<br>    &quot;master_config&quot;: {<br>        &quot;num_instances&quot;: 1,<br>        &quot;machine_type_uri&quot;: &quot;n1-standard-2&quot;, <br>        &quot;disk_config&quot;: {&quot;boot_disk_type&quot;: &quot;pd-standard&quot;, &quot;boot_disk_size_gb&quot;: 100},<br>    },<br>    &quot;worker_config&quot;: {<br>        &quot;num_instances&quot;: 2,<br>        &quot;machine_type_uri&quot;: &quot;n1-standard-2&quot;, <br>        &quot;disk_config&quot;: {&quot;boot_disk_type&quot;: &quot;pd-standard&quot;, &quot;boot_disk_size_gb&quot;: 100},<br>    }<br>}<br><br>PYSPARK_JOB = {<br>    &quot;reference&quot;: {&quot;project_id&quot;: PROJECT_ID},<br>    &quot;placement&quot;: {&quot;cluster_name&quot;: CLUSTER_NAME},<br>    &quot;pyspark_job&quot;: {&quot;main_python_file_uri&quot;: PYSPARK_URI} }<br><br>default_args = {<br>    &#39;owner&#39;: &#39;airflow&#39;,<br>    &#39;depends_on_past&#39;: False,<br>    &#39;start_date&#39;: datetime(2024, 1, 19),<br>    &#39;email&#39;: [&#39;navalesnahuel@gmail.com&#39;],<br>    &#39;email_on_failure&#39;: False,<br>    &#39;email_on_retry&#39;: False,<br>    &#39;retries&#39;: 1,<br>    &#39;retry_delay&#39;: timedelta(minutes=5),<br>}<br><br>with DAG(&quot;CryptoAPI_dag&quot;,<br>         default_args=default_args,<br>         description=&#39;Dag for my Crypto Project&#39;,<br>         schedule_interval=timedelta(days=1),<br>         catchup=False) as dag:<br><br>    start = DummyOperator(task_id=&#39;start&#39;, dag=dag)<br><br>    get_data = PythonOperator(<br>        task_id=&#39;get_data_task&#39;,<br>        python_callable=get_data,<br>        op_args=[50], <br>        provide_context=True,<br>        dag=dag<br>    )<br><br>    upload_to_gcs_task = PythonOperator(<br>        task_id=&#39;upload_to_gcs_task&#39;,<br>        python_callable=upload_to_gcs,<br>        provide_context=True, <br>        dag=dag,<br>    )<br><br>    create_cluster = DataprocCreateClusterOperator(<br>        task_id=&quot;create_cluster&quot;,<br>        project_id=PROJECT_ID,<br>        cluster_config=CLUSTER_CONFIG,<br>        region=REGION,<br>        cluster_name=CLUSTER_NAME,<br>        )<br><br>    pyspark_transform = DataprocSubmitJobOperator(<br>        task_id=&quot;pyspark_task&quot;, <br>        job=PYSPARK_JOB, <br>        region=REGION, <br>        project_id=PROJECT_ID<br>        )<br>    <br>    delete_cluster = DataprocDeleteClusterOperator(<br>        task_id=&quot;delete_cluster&quot;, <br>        project_id=PROJECT_ID, <br>        cluster_name=CLUSTER_NAME, <br>        region=REGION<br>    )<br><br>    gcs_to_gbq = GCSToBigQueryOperator(<br>        task_id=&quot;transfer_data_to_bigquery&quot;,<br>        bucket=&quot;data-bucket-crypto&quot;,<br>        source_objects=[&quot;transformed-data/part-*.snappy.parquet&quot;],<br>        destination_project_dataset_table=&quot;crypto_dataset.crypto{}&quot;.format(datetime.now().strftime(&#39;%Y-%m-%d&#39;)),<br>        source_format=&quot;PARQUET&quot;,<br><br>        write_disposition=&quot;WRITE_TRUNCATE&quot;, <br>        create_disposition=&quot;CREATE_IF_NEEDED&quot;,  <br>    )<br><br>    end = DummyOperator(task_id=&#39;end&#39;, dag=dag)<br><br>    start &gt;&gt; get_data &gt;&gt; upload_to_gcs_task &gt;&gt; create_cluster &gt;&gt; pyspark_transform &gt;&gt; delete_cluster &gt;&gt; gcs_to_gbq &gt;&gt; end</pre><h3>GCP Console Showcase</h3><p>This is how your GCP console should look like after the execution of the pipeline:</p><ul><li>Google Cloud Storage:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*iutDXT_sV4YeeYNXj1ZLvw.png" /></figure><ul><li>Google Cloud Composer:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*hOhHpibNMww8fzvBDRMysQ.png" /></figure><ul><li>Google Cloud Big Query:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/277/1*YtjUIqLwm_Yf2sV6m1EAAA.png" /></figure><ul><li>DataProc:</li></ul><p>We dont have images for Google Cloud DataProc because we remove the cluster right after the use in the DAG</p><h3>Power BI</h3><p>Utilizing the robust data warehouse created by our cryptocurrency data pipeline, we can craft an engaging Power BI dashboard that simplifies the exploration of every cryptocurrency effortlessly.</p><p><em>See the Power BI dashboard in action:</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FNgGU4Qu0UGY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DNgGU4Qu0UGY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FNgGU4Qu0UGY%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/4916ff229e334352a70a6045c13b81b5/href">https://medium.com/media/4916ff229e334352a70a6045c13b81b5/href</a></iframe><p>Thanks for Reading!</p><p>I appreciate your interest in my Cryptocurrency Data Pipeline. For more details, access the project’s code on GitHub:</p><ul><li><a href="https://github.com/navalesnahuel/crypto-pipeline/tree/main">Pipeline Code</a></li></ul><p>Check out my portfolio to discover more of my projects:</p><ul><li><a href="https://navalesnahuel.wixsite.com/nahuel-navales">Portfolio</a></li></ul><p>Connect with me on LinkedIn for professional networking and collaboration:</p><ul><li><a href="https://www.linkedin.com/in/navalesnahuel/">LinkedIn</a></li></ul><p>Feel free to explore, learn, and innovate with our cryptocurrency data pipeline. I will be looking forward to share more exciting projects in the future!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c7652cd2eba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Olympic Data Engineering and Analysis using Azure Services]]></title>
            <link>https://medium.com/@navalesnahuel/olympic-data-engineering-and-analysis-using-azure-services-fdd0f4a33433?source=rss-e194bd58b7e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/fdd0f4a33433</guid>
            <category><![CDATA[pyspark]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Nahuel Navales]]></dc:creator>
            <pubDate>Wed, 10 Jan 2024 20:41:05 GMT</pubDate>
            <atom:updated>2024-01-10T20:41:05.906Z</atom:updated>
            <content:encoded><![CDATA[<h3>Objective:</h3><p>To leverage Azure services for data engineering, transformation, and analysis of Olympic data.</p><h4>Services Utilized:</h4><ul><li><strong>Azure Storage Account:</strong> Raw and transformed data storage.</li><li><strong>Azure Data Factory: </strong>Data movement and orchestration.</li><li><strong>Azure Databricks: </strong>Data transformation using PySpark.</li><li><strong>Azure Synapse Analytics</strong>: Final data analysis using SQL queries.</li></ul><h3>Workflow:</h3><h4>Azure Storage Account Setup:</h4><ul><li>Create two folders: raw-data and transformed-data within the storage account.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*jfjnWV08ppI6dnwC3inHEQ.png" /></figure><h4>Azure Data Factory (ADF):</h4><ul><li>Configure ADF pipelines to copy raw data into the raw-data folder, treating it as a data lake.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*65N1yKQQnX6CDLg-Tfq9zg.png" /></figure><h4>Azure Databricks for Data Transformation:</h4><ul><li>Utilize PySpark in Azure Databricks to transform specific tables:</li></ul><pre># We check wich of the tables we will <br># be using and import them from the folder (Raw data)<br><br>athletes_bio = spark.read.csv(&#39;dbfs:/mnt/olympics/raw-data/athletes_bio.csv&#39;, header=True, inferSchema=True)<br># countries = spark.read.csv(&#39;dbfs:/mnt/olympics/raw-data/country.csv&#39;, header=True, inferSchema=True)<br>games = spark.read.csv(&#39;dbfs:/mnt/olympics/raw-data/games.csv&#39;, header=True, inferSchema=True)<br>medals = spark.read.csv(&#39;dbfs:/mnt/olympics/raw-data/medals.csv&#39;, header=True, inferSchema=True)<br>events_results = spark.read.csv(&#39;dbfs:/mnt/olympics/raw-data/result_events.csv&#39;, header=True, inferSchema=True)<br># general_results = spark.read.csv(&#39;dbfs:/mnt/olympics/raw-data/results.csv&#39;, header=True, inferSchema=True)</pre><p><strong>Athletes table:</strong></p><ul><li><em>Fix NaN values, change data types, and drop irrelevant columns.</em></li></ul><pre>from pyspark.sql.functions import when, col<br>from pyspark.sql.types import *<br>from pyspark.sql.functions import date_format<br><br><br>for column in athletes_bio.columns:<br>    athletes_bio = athletes_bio.withColumn(column,<br>        when((col(column) == &#39;null&#39;) | (col(column) == &#39;na&#39;),None).otherwise(col(column))<br>    )<br><br>athletes_bio = athletes_bio.withColumn(&quot;born&quot;,col(&quot;born&quot;).cast(TimestampType()))\<br>    .withColumn(&quot;height&quot;,col(&quot;height&quot;).cast(DoubleType()))\<br>    .withColumn(&quot;weight&quot;,col(&quot;weight&quot;).cast(DoubleType()))\<br>    .drop(&#39;description&#39;).drop(&#39;special_notes&#39;)<br><br>display(athletes_bio)<br>athletes_bio.printSchema()</pre><p><strong>Games table:</strong></p><ul><li><em>Drop unnecessary columns.</em></li></ul><pre>games = games.drop(&#39;country_flag_url&#39;).drop(&#39;edition_url&#39;).drop(&#39;start_date&#39;).drop(&#39;end_date&#39;).drop(&#39;end_date&#39;).drop(&#39;competition_date&#39;).drop(&#39;isHeld&#39;)<br>display(games)<br>games.printSchema()</pre><p><strong>Medals table:</strong></p><ul><li><em>Data is already clean</em></li></ul><pre>display(medals)<br>medals.printSchema()</pre><p><strong>Events Results table:</strong></p><ul><li><em>Drop columns and handle NaN values.</em></li></ul><pre>events_results.printSchema()<br>events_results = events_results.drop(&#39;pos&#39;)<br><br>for column in events_results.columns:<br>    events_results = events_results.withColumn(column,<br>        when((col(column) == &#39;null&#39;) | (col(column) == &#39;na&#39;),None).otherwise(col(column))<br>    )<br>    <br>display(events_results)</pre><h4>Storage Update:</h4><ul><li>Save cleaned tables into the transformed-data folder in the Azure Storage Account.</li></ul><pre>athletes_bio.repartition(1).write.csv(&#39;/mnt/olympics/trasformed-data/athletes&#39;, header=True, mode=&#39;overwrite&#39;)<br>games.repartition(1).write.csv(&#39;/mnt/olympics/trasformed-data/games&#39;, header=True, mode=&#39;overwrite&#39;)<br>medals.repartition(1).write.csv(&#39;/mnt/olympics/trasformed-data/medals&#39;, header=True, mode=&#39;overwrite&#39;)<br>events_results.repartition(1).write.csv(&#39;/mnt/olympics/trasformed-data/events_results&#39;, header=True, mode=&#39;overwrite&#39;)</pre><h4>Azure Synapse Analytics Analysis:</h4><ul><li>Import Tables:</li></ul><p>— — Create a Lake Database in Azure Synapse Analytics.</p><p>— — Import cleaned tables from the transformed-data folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IHta5JDnhVtT2RXO9NUNGw.png" /></figure><h4>SQL Queries for Analysis:</h4><p><strong>Top 10 Countries with the Most Medals:</strong></p><ul><li>Summarize medals per country.</li></ul><pre>select top 10 country, sum(gold) as gold, <br>sum(silver) as silver, sum(bronze) as bronze, sum(total) as total<br>from medals<br>group by country<br>order by sum(total) DESC;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xCprikxGbGwYoabjqvzYNA.jpeg" /></figure><p><strong>Top 10 Countries with the Most Participants:</strong></p><ul><li>Count athlete participations per country.</li></ul><pre>select top 10 country, count(athlete_id) as athletes_participations from athletes<br>group by country<br>order by count(athlete_id) desc;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IPTmnpkOE7IQMVXVXy3qEw.jpeg" /></figure><p><strong>Top 10 Cities Hosting the Most Events:</strong></p><ul><li>Count of events hosted per city.</li></ul><pre>select top 10 city ,count(edition_id) hosted_events from games<br>group by city<br>order by count(edition_id) desc</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mOplNVjf7QCHXj7s6DIxfA.jpeg" /></figure><p><strong>Top 10 Athletes by Medals:</strong></p><ul><li>Aggregate medals won per athlete.</li></ul><pre>select top 10 athlete,<br>    sum(case when medal = &#39;Gold&#39; then 1 else 0 end) as Gold_medals,<br>    sum(case when medal = &#39;Silver&#39; then 1 else 0 end) as Silver_medals,<br>    sum(case when medal = &#39;Bronze&#39; then 1 else 0 end) as Bronze_medals,<br>    sum(case <br>            when medal = &#39;Gold&#39; then 1 <br>            when medal = &#39;Silver&#39; then 1 <br>            when medal = &#39;Bronze&#39; then 1 <br>            else 0 end) as total_medals<br>from events<br>group by athlete<br>order by total_medals DESC</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*raxHsJYMdbR0R6lLGFVecQ.jpeg" /></figure><h3>Conclusion:</h3><p>This project harnesses Azure services to manage Olympic data from storage to analysis. It involves ADF for data movement, Databricks for transformations, and Synapse Analytics for insightful SQL-based analysis.</p><p>This ensures data accuracy, efficiency, and valuable insights.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fdd0f4a33433" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mitron Bank Data Analysis]]></title>
            <link>https://medium.com/@navalesnahuel/mitron-bank-data-analysis-5b02f2dcc9e0?source=rss-e194bd58b7e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b02f2dcc9e0</guid>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[excel]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Nahuel Navales]]></dc:creator>
            <pubDate>Tue, 02 Jan 2024 23:50:12 GMT</pubDate>
            <atom:updated>2024-01-02T23:50:12.027Z</atom:updated>
            <content:encoded><![CDATA[<h4>Mitron Bank’s data journey through Python, SQL, and Power BI.</h4><p><strong>Explore Mitron Bank’s data journey through Python, SQL, and Power BI. From meticulous data cleaning to powerful queries and an engaging dashboard, uncover insights that shape a credit card campaign.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*Yw3TSpc4R-DL_goeR-ezhQ.gif" /><figcaption>Final Dashboard — Power BI</figcaption></figure><p>The aim of this project is to analyze a sample dataset provided by a financial institution interested in launching a new line of credit cards. The task falls on a data analyst responsible for examining online spending patterns across various cities. The goal is to extract insights that will guide the institution in tailoring their credit card offerings to suit customer needs and market trends. Success relies on delivering data-driven recommendations to the institution’s strategy team, showcasing the power of informed decision-making based on thorough data analysis.</p><h3>Data Cleaning with Python:</h3><blockquote>When we received the financial institution’s data, our first step was to ensure its cleanliness for in-depth analysis, using Python’s Pandas library.</blockquote><ol><li><strong>Handling Duplicates: </strong>We carefully checked for and removed any identical entries in the dataset. This ensured our data was accurate and reliable for further analysis.</li><li><strong>Managing Missing Values (NaN):</strong> Recognizing the impact of missing data, we checked for any empty or missing values. Using Pandas, we filled in missing data or removed these entries to maintain the dataset’s quality.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BMrdPBuAjoBRtj5fJ1UP6Q.png" /></figure><p><strong>Fortunately, the dataset we received was already very clean, with no duplicate or missing values. This allowed us to swiftly move to the next stage of preparing the data for deeper analysis while keeping its quality intact.</strong></p><h3>SQL for Data Querying:</h3><blockquote>Crafting Queries for In-Depth Data Analysis with SQL</blockquote><p>In our quest for deeper understanding, we turned to SQL to dissect the dataset. Through targeted queries, we uncovered crucial details about customer demographics and spending habits.</p><p>Our SQL analysis focused on key aspects like the number of clients, their spending categories, and preferred payment methods. By segmenting data based on age, city, occupation, marital status, and gender, we revealed fascinating behavioral trends among different groups.</p><p>Additionally, we delved into detailed customer profiles, identifying top credit card users and exploring spending categories. These insights painted a vivid picture of customer preferences and financial behaviors.</p><h4>Demographic Classification Queries:</h4><p><strong>Age</strong>: Queries revealed customer counts, average monthly income, preferred payment methods, and top spending categories across different age groups</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RFXa8ADx6apzNaemjw8UhQ.png" /></figure><p><strong>City</strong>: Unveiled spending behaviors, income averages, prevalent payment methods, and major spending categories specific to various cities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H-fpU6mASa0oC5hRCxs8bQ.png" /></figure><p><strong>Occupation</strong>: Exposed spending patterns, income averages, popular payment methods, and significant spending categories among diverse occupational categories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RjqJg2BCuESameUEtDoIpg.png" /></figure><p><strong>Marital Status: </strong>Disclosed spending trends, income averages, favored payment methods, and primary spending categories based on marital status.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gEeK7iSOXXNToM3fZWdI_w.png" /></figure><p><strong>Gender</strong>: Exposed spending habits, income averages, predominant payment methods, and major spending categories distinguishing between genders.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*izIxbfr0oeQ1p2HVC5w0kw.png" /></figure><h4>Detailed Customer Information Queries:</h4><p><strong>Identifying Top Credit Card Users:</strong> Drawing from demographic insights, we pinpointed customers demonstrating ideal credit card usage.</p><p>By integrating data on age, city, occupation, marital status, and gender, we precisely profiled these users based on spending habits, preferred payments, and income. This strategic analysis facilitates targeted marketing or service enhancements for maximum impact.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DNVqH8TuCDw4XCagr-zRJw.png" /></figure><p><strong>Information from Spend Categories: </strong>Our analysis provided intricate details on spending categories, including specifics like average bill spends in certain months and credit card expenditures on bills.</p><p>This level of detail unveiled nuanced insights into customer spending behaviors within specific categories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uSiYIVnCey0a_HajTrTIUQ.png" /></figure><p><strong>Thorough Customer Profile Analysis: </strong>Our queries facilitated a meticulous examination of individual customers, offering detailed and comprehensive profiles.</p><p>This thorough search encompassed diverse aspects, allowing for an in-depth understanding of each customer’s preferences, spending patterns, and behaviors, enabling a detailed and nuanced analysis for personalized insights.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lDbTWzMoNABndkTP7DJLqg.png" /></figure><h4><strong>Bringing Data to Life with Power BI</strong></h4><p>We transferred our enriched dataset into Power BI, where the data’s visual magic happens! This step readies our detailed customer profiles and spending insights for a dynamic and user-friendly dashboard, making complex data easy to grasp and explore visually.</p><h3><strong>Unveiling Data Magic with Power BI</strong></h3><blockquote>Transforming Complex Data into Intuitive Visual Narratives</blockquote><h4>Dashboard Sections:</h4><ul><li>Demographic Classification Page</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FCKyk3LRiB2Vr_l9o-AazQ.png" /></figure><ul><li>Detailed Customer Information Page</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DJ2sPV2bhRIiPsgpOXZeLw.png" /></figure><p><em>Plus, a Video Preview:</em></p><p>A visual journey through our Power BI Dashboard, showcasing its interactive features and insights in action!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FrrNktQYnbtE%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DrrNktQYnbtE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FrrNktQYnbtE%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/534950b421c297831288a214025dc22b/href">https://medium.com/media/534950b421c297831288a214025dc22b/href</a></iframe><h3><strong>Crafting Credit Card Success:</strong></h3><p><strong>Elite Rewards Program:</strong><br>Credit card users who spend a lot get special discounts on apparel, entretainment, and more. <br>The more they spend, the bigger the discount.</p><blockquote>Minimum Spend from Top 35% Spenders: 23.5k</blockquote><p><strong>Luxury Membership Tier (Above 60K):<br></strong>Premium Credit Card Tier for High-Income Earners<br>Luxury Experiences: Access exclusive events, VIP experiences, or premium lifestyle offerings tailored for high-income cardholders.</p><blockquote>Minimum Income from Top 20% Incomes: 61k</blockquote><p><strong>Generation Benefits (Age 25–45)<br></strong>Rewards on daily needs like groceries, special deals on electronics, and travel perks for journeys.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/1*KLTGSXmJZbSOFs3OXUuZyg.png" /></figure><p><strong>Career-Specific Rewards:<br></strong>IT Employees: Discounts on tech purchases and better rewards for grocery spending.<br>Business Owners: Tailored rewards for business expenses and electronics benefits for operational needs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*iSllNqi84i0X05Uyh1bvHQ.png" /></figure><p><strong>Health &amp; Wellness Specials in Delhi and Mumbai: </strong>Exclusive discounts and memberships for gyms, spas, and health services as a credit card user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/280/1*p5XNT08r8S6lmLNhXLe3mg.png" /></figure><p><strong>Bill Payer Bonanza: </strong>Extra rewards or higher cashback for using the card to pay bills, encouraging timely payments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/1*q8viUqUe7ie9RP_jwEEQyw.png" /></figure><h3>Conclusion: Embrace Insights, Elevate Experiences</h3><p>Our data-driven journey unearthed captivating insights, unveiling demographic behaviors and detailed spending trends through captivating visuals.</p><p>Explore these insights to empower informed decisions and enrich your credit card journey. Delve into the nuances of customer behaviors, paving the way for personalized benefits and wiser financial choices.</p><p>Seize the opportunity to align your credit card experience with your lifestyle.</p><p>Thank you for embarking on this insightful journey with us.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b02f2dcc9e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Property Data Scraping, Cleaning, Analysis, and Visualization using Python, SQL, and Power BI]]></title>
            <link>https://medium.com/@navalesnahuel/property-data-scraping-cleaning-analysis-and-visualization-using-python-sql-and-power-bi-cec4a29c08f0?source=rss-e194bd58b7e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/cec4a29c08f0</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[visualization]]></category>
            <dc:creator><![CDATA[Nahuel Navales]]></dc:creator>
            <pubDate>Wed, 20 Dec 2023 03:05:38 GMT</pubDate>
            <atom:updated>2023-12-20T03:05:38.202Z</atom:updated>
            <content:encoded><![CDATA[<p><em>In today’s data-driven world, extracting valuable insights from vast amounts of information is crucial. This article aims to guide you through a comprehensive process of data scraping, cleaning, analysis, and visualization specifically tailored for property data using Python, SQL, and Power BI.</em></p><h4>Data Scrapping — Python</h4><p>The first step involves scraping data from property websites. Python offers powerful libraries like BeautifulSoup and Scrapy, enabling us to extract structured information from web pages efficiently. By leveraging these tools, we can gather property details such as prices, locations, amenities, and more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ekaXOg9XBWrd8jspit9rFw.png" /></figure><h4>Data Cleaning — Python</h4><p>Data Cleaning with Python: Raw data often requires thorough cleaning before analysis. Python’s Pandas library is instrumental in handling datasets, allowing us to remove duplicates, handle missing values, standardize formats, and perform transformations to ensure accuracy and consistency in the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6iENS0J4H02JwIuMxGUq8A.png" /></figure><h4>Data Proccessing — SQL</h4><p>SQL Queries for Data Processing: Once the data is cleaned, SQL comes into play for robust data processing. Structured Query Language (SQL) enables us to manipulate and manage datasets within databases effectively. We can perform various operations, including filtering, joining tables, aggregating data, and creating views or stored procedures to streamline analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I-QI2-7CWsbmsKg5v0GgXQ.png" /></figure><h4>Visualizations — Power BI</h4><p>Power BI for Visualizations: With the prepared dataset, Power BI, a powerful business analytics tool, helps create insightful visualizations. It offers a user-friendly interface to generate interactive dashboards and reports, allowing stakeholders to comprehend trends, patterns, and correlations within property data efficiently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*setuOir3WzzLO13zPfYdZg.png" /></figure><h4>Conclusion:</h4><p>This holistic approach demonstrates the synergy between Python for scraping and cleaning data, SQL for data processing, and Power BI for visualization. By amalgamating these technologies, one can extract actionable insights from property datasets, aiding decision-making processes in real estate, investment, or market analysis.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cec4a29c08f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“How Data Insights Drive E-commerce Success: A Comprehensive Analysis”]]></title>
            <link>https://medium.com/@navalesnahuel/commerce-analysis-2048621c3417?source=rss-e194bd58b7e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/2048621c3417</guid>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[visualization]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Nahuel Navales]]></dc:creator>
            <pubDate>Wed, 20 Dec 2023 01:52:16 GMT</pubDate>
            <atom:updated>2023-12-20T01:54:33.021Z</atom:updated>
            <content:encoded><![CDATA[<h3>Understanding Customer Transactions:</h3><h3>A Database Overview</h3><p>In the world of customer-centric platforms, a database serves as the backbone, housing crucial information about customers, their transactions, and preferences. Let’s delve into the key components of this database, shedding light on the diverse facets captured within its structure:</p><ul><li><strong>CustomerID</strong>: Unique identifier for each customer.</li><li><strong>Gender</strong>: Gender of the customer (e.g., Male, Female).</li><li><strong>Location</strong>: Location or address information of the customer.</li><li><strong>Tenure_Months</strong>: Number of months the customer has been associated with the platform.</li><li><strong>Transaction_ID</strong>: Unique identifier for each transaction.</li><li><strong>Transaction_Date</strong>: Date of the transaction.</li><li><strong>Product_SKU</strong>: Stock Keeping Unit (SKU) identifier for the product.</li><li><strong>Product_Description</strong>: Description of the product.</li><li><strong>Product_Category</strong>: Category to which the product belongs.</li><li><strong>Quantity</strong>: Quantity of the product purchased in the transaction.</li><li><strong>Avg_Price</strong>: Average price of the product.</li><li><strong>Delivery_Charges</strong>: Charges associated with the delivery of the product.</li><li><strong>Coupon_Status</strong>: Status of the coupon associated with the transaction.</li><li><strong>GST</strong>: Goods and Services Tax associated with the transaction.</li><li><strong>Date</strong>: Date of the transaction (potentially redundant with Transaction_Date).</li><li><strong>Offline_Spend</strong>: Amount spent offline by the customer.</li><li><strong>Online_Spend</strong>: Amount spent online by the customer.</li><li><strong>Month</strong>: Month of the transaction.</li><li><strong>Coupon_Code</strong>: Code associated with a coupon, if applicable.</li><li><strong>Discount_pct</strong>: Percentage of discount applied to the transaction.</li></ul><h3>Cleaning the data with Python</h3><p>Utilize Pandas library to clean the dataset, handling missing values, inconsistent formatting, and outliers</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5aRVHHmiqHDcWOEudN3HIg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s328e9MZXM6EwImSPuh35g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ED2OOIbYQQFupC0bMjAA0A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*orIXPtwVmAVzSl-t_gHn1w.png" /></figure><h3>Using SQL Queries to answer questions:</h3><h4>Customer Analysis:</h4><ul><li>Gender Distribution</li><li>Tenure Months Count</li><li>Purchase Count by CustomerID</li></ul><h4>Sales Analysis:</h4><ul><li>Product Sales per Category</li><li>Total Sales Quantity by Month</li><li>Total Spend by Month</li><li>Online Spend by Month</li><li>Offline Spend by Month</li></ul><h4>Transactional Insights:</h4><ul><li>Amount of Purchases by Location</li><li>Monthly Online Shopping Activity</li><li>Highest Price Purchase by CustomerID</li><li>Average Products Price</li></ul><h4>Coupon Utilization:</h4><ul><li>Coupon Analysis</li><li>Coupon List</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*Wfnqpqn71FsnLJdVEP9icw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*GAIBdEKxnOktCxY0mGHfyg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*nuvOukZmhW5oG1eAGYunbw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*mq6UcaCPfdffkrZ4VeNlnA.png" /></figure><h3>Power BI Visualizations:</h3><p>From top-selling categories to customer locations, this e-commerce analytics dashboard reveals the key metrics driving your online business.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c0NQX9l9lujJluEQ0Fscgw.png" /><figcaption>Commerce Analysis</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gEi4OkGRMpsPkDxaonpnJg.png" /><figcaption>Customer &amp; Coupons</figcaption></figure><h4>Conclusion:</h4><p>Understanding customer behavior and sales trends through database analysis is pivotal for businesses.</p><p>The data revealed insights into customer demographics, purchase patterns, and the effectiveness of promotional strategies. Leveraging these insights can aid in targeted marketing, personalized customer experiences, and optimizing promotional campaigns for improved sales and customer satisfaction.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2048621c3417" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scraping Data from Wikipedia Using Python]]></title>
            <link>https://medium.com/@navalesnahuel/scraping-data-from-wikipedia-using-python-3af11679ccc8?source=rss-e194bd58b7e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/3af11679ccc8</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[wikipedia]]></category>
            <category><![CDATA[scrapping]]></category>
            <category><![CDATA[pandas]]></category>
            <category><![CDATA[scraping]]></category>
            <dc:creator><![CDATA[Nahuel Navales]]></dc:creator>
            <pubDate>Wed, 20 Dec 2023 01:25:10 GMT</pubDate>
            <atom:updated>2023-12-20T01:25:10.231Z</atom:updated>
            <content:encoded><![CDATA[<p>In the world of data collection, web scraping is a powerful technique. This project will walk you through how to extract data from Wikipedia using Python. Wikipedia is a treasure trove of information, and Python, with its robust libraries, makes scraping its pages an accessible task.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mds4D6CgTO4tBbWkyJVnNQ.png" /></figure><h4>Cleaning and Structuring the Data:</h4><p>After scraping, clean and structure the data as needed, transforming it into a usable format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WsUaB8Pa22uKp87LGR-L1g.png" /></figure><h4>Conclusion:</h4><p>Scraping data from Wikipedia using Python opens doors to a wealth of information. Remember to scrape responsibly, adhere to Wikipedia’s terms of use, and avoid overloading servers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3af11679ccc8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unveiling Shopping Trends: A Data Analysis Perspective]]></title>
            <link>https://medium.com/@navalesnahuel/unveiling-shopping-trends-a-data-analysis-perspective-9479b8746d01?source=rss-e194bd58b7e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/9479b8746d01</guid>
            <category><![CDATA[dataset]]></category>
            <category><![CDATA[pandas]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[visualization]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Nahuel Navales]]></dc:creator>
            <pubDate>Wed, 20 Dec 2023 01:16:10 GMT</pubDate>
            <atom:updated>2023-12-20T01:16:10.060Z</atom:updated>
            <content:encoded><![CDATA[<p>In the dynamic world of retail, delving into shopping trends offers a panoramic view of consumer behavior. Here, we explore data-driven insights that illuminate the nuances of customer preferences and purchasing patterns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*1FZZCqiYSybtvt9XorR8KQ.png" /></figure><h4>Gender Dynamics in Shopping</h4><p>Understanding the gender distribution among our customers is crucial. Analyzing purchase frequencies based on gender unravels distinctive buying habits and sheds light on preferences that drive purchasing decisions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*1-zbxswK5jRxmHm3uWgHvg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/1*41a9kRoZUVZmkwK3pcgTTA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*hL58imPd0sON8-2S6hGl_A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*PfJCNrEMMujs57dXplprTQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vKTJQHa5lPKEKUQuY5akIg.png" /></figure><h4>Item Preferences Across Locations</h4><p>Different locations often exhibit unique inclinations towards specific products. Examining item purchases across various locations unveils regional preferences, highlighting the diversity in consumer choices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*Wa_3YFwf4ebvtpmcNHF-gQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*HbW2v_xr1OWWTp2Pr_3O2A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f3C1bdv-6dXf_xHYtdKNBA.png" /></figure><h4>Seasonal Dynamics in Category Preferences</h4><p>The connection between seasons and shopping preferences is intriguing. Categorizing purchases by seasons elucidates trends, showcasing how consumer choices vary with changing seasons and weather patterns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pTqp4v049PNpJWBqvscTkg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BZu31Z2AmMZziFExa1FXqw.png" /></figure><h4>Insights into Purchase Amounts by Category</h4><p>Analyzing purchase amounts across different categories provides a comprehensive understanding of consumer spending behavior. This information helps in strategizing pricing, promotions, and product placement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*xKFFv_tsYLSukUhQXLQ-ug.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mfYEB5wMSEVuNryy_DC-qA.png" /></figure><h3>Conclusion:</h3><h4>Understanding Shopping Trends for Business Success</h4><p>Analyzing shopping trends reveals valuable insights:</p><ul><li>Gender Insights: Learning what different genders prefer.</li><li>Location Preferences: Understanding what sells best where.</li><li>Seasonal Changes: Noting how seasons affect what people buy.</li><li>Spending Patterns: Knowing how much people spend on different items.</li></ul><p>These insights help businesses sell smarter: by catering to specific preferences, adapting to changing seasons, and pricing products right. Staying on top of these trends means happier customers and better business.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9479b8746d01" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unveiling Insights from IBM HR Data: Exploring Job Satisfaction, Income, and Attrition]]></title>
            <link>https://medium.com/@navalesnahuel/unveiling-insights-from-ibm-hr-data-exploring-job-satisfaction-income-and-attrition-091ed4c42641?source=rss-e194bd58b7e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/091ed4c42641</guid>
            <category><![CDATA[ibm]]></category>
            <category><![CDATA[dataset]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[pandas]]></category>
            <dc:creator><![CDATA[Nahuel Navales]]></dc:creator>
            <pubDate>Wed, 20 Dec 2023 01:03:57 GMT</pubDate>
            <atom:updated>2023-12-20T01:03:57.915Z</atom:updated>
            <content:encoded><![CDATA[<p>This analysis aims to delve into key aspects of job satisfaction across roles, income disparities by age, and the impact of distance from home on attrition. By unraveling these facets, we seek to uncover valuable insights that can guide HR strategies and enhance workplace dynamics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w3xG5BSnlNMSk7t6jaTu1A.png" /></figure><p>Job Satisfaction by Role</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*buGDo5weWEWfj1yRS9uI2A.png" /></figure><blockquote>Income by Age Groups</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2hmqnwTq_woEQni-oCeBfw.png" /></figure><blockquote>Average Distance from Home and Atrition Percentage by Job Role</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CMh3c4TMyuQGNigCQFE72Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SPkSOVVbD9zrHImNB_g_Cg.png" /></figure><blockquote>Average Monthly Income by education level and attrition</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nVsbsuqC0DTogVd-bGSXQQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ObptQ_Zi3l4QYIof45-_IQ.png" /></figure><h4>Conclusion:</h4><p>The exploration of the IBM HR dataset has unveiled crucial insights into employee dynamics. From the nuances of job satisfaction across diverse roles to income distributions by age groups and the influence of proximity on attrition, this analysis offers actionable intelligence for HR professionals and organizational leaders. Understanding these patterns presents an opportunity to tailor strategies that bolster employee satisfaction, address income disparities, and mitigate attrition rates, ultimately contributing to a more engaged and productive workforce.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=091ed4c42641" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unveiling Insights from Spotify Data: A Data Cleaning and Exploratory AnalysisData cleaning and EDA]]></title>
            <link>https://medium.com/@navalesnahuel/unveiling-insights-from-spotify-data-a-data-cleaning-and-exploratory-analysisdata-cleaning-and-eda-62514f4b44d5?source=rss-e194bd58b7e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/62514f4b44d5</guid>
            <category><![CDATA[spotify]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[pandas]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Nahuel Navales]]></dc:creator>
            <pubDate>Wed, 20 Dec 2023 00:19:23 GMT</pubDate>
            <atom:updated>2023-12-20T00:19:23.567Z</atom:updated>
            <content:encoded><![CDATA[<p>The initial state of the dataset revealed a mix of attributes, ranging from track names, artist information, release dates, to streaming statistics.</p><p>To ensure accuracy in analysis, several steps were undertaken for data cleaning / transforming</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ATjpsrYNiqS7wSRUAki8sg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r5qr_HPn-AZ-BLC2TuR86A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QS9VXw0x9-RBMhML2aHfjA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I-7HjLFdmZkGNgy_txkgyw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6D0Ecy8nYY3p_2uWuMsxdw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UXx0k8uH406uSbPdTZ-H7Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L2-krW0haWY7j1ChGgY2Ow.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OGtPoxnIWnGRc0VKjK5-3Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e_U8LoxNuL3gT4q4CBpTuQ.png" /></figure><p>Visualizations and Analysis:</p><p>Most Danceable Songs:</p><ul><li>Visualize and discuss the songs with the highest danceability scores.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V_Nkrgc_T1B2anPCQTtVjQ.png" /></figure><p>Songs by Valance:</p><ul><li>Show the songs ranked by valence and discuss their impact.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*GhGvjn7YIa7Ox2u4qJb0SQ.png" /></figure><p>Songs by Energy:</p><ul><li>Visualize songs by their energy levels and delve into their significance.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*vwqvouQlZC5GInSwaN3C4A.png" /></figure><p>Songs by Quality:</p><ul><li>Combine danceability, valence, and energy to analyze the overall quality of songs.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*eW7FvKaL2TuXrTEJ8bhtPA.png" /></figure><p>Songs by BPM:</p><ul><li>Present insights on songs categorized by their BPM (beats per minute).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pdBIpVKg2XInd5926Xdzug.png" /></figure><p>Most Reproduced Songs:</p><ul><li>Display and discuss the songs that are highly reproduced across platforms.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ht4Y41He_vdTHv8Fvv0ZHw.png" /></figure><p>Artists Rank by Streams:</p><ul><li>Explore the top-ranking artists based on the total number of streams.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*Mva08s3ghy--G2D_NNckOQ.png" /></figure><p>The King of the Playlists:</p><ul><li>Identify and discuss the artist dominating Spotify playlists.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*czc_h-E1vgyrE1_HKtDjJA.png" /></figure><h4>Conclusion:</h4><p>This examination not only unveils the popularity of certain genres or styles but also illuminates the evolving preferences of music enthusiasts. These insights can offer valuable guidance to artists and even marketers aiming to understand consumer behavior in the music domain.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62514f4b44d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>