<?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 Bistdinesh on Medium]]></title>
        <description><![CDATA[Stories by Bistdinesh on Medium]]></description>
        <link>https://medium.com/@bistdinesh56?source=rss-fabf54df2a97------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*xEwCiugf3XXZKDHl</url>
            <title>Stories by Bistdinesh on Medium</title>
            <link>https://medium.com/@bistdinesh56?source=rss-fabf54df2a97------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 07:38:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bistdinesh56/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[Mastering Pandas: My Hands-On Journey into Python Data Analysis]]></title>
            <link>https://medium.com/@bistdinesh56/mastering-pandas-my-hands-on-journey-into-python-data-analysis-f1931edbf0f7?source=rss-fabf54df2a97------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1931edbf0f7</guid>
            <dc:creator><![CDATA[Bistdinesh]]></dc:creator>
            <pubDate>Wed, 25 Jun 2025 04:34:36 GMT</pubDate>
            <atom:updated>2025-06-25T04:34:36.876Z</atom:updated>
            <content:encoded><![CDATA[<p>Introduction:</p><p>As I advanced from basic Python programming and NumPy fundamentals, I stepped into one of the most powerful and widely-used libraries in the data science ecosystem — Pandas.</p><p>Pandas is an open-source Python library built to offer flexible and efficient data structures designed to work seamlessly with structured data. It simplifies data manipulation, cleaning, exploration, and analysis. Whether you’re working with spreadsheets, databases, or large datasets, Pandas becomes an indispensable tool.</p><p>This article captures the essential concepts, functions, and insights I gained during my foundational exploration of Pandas.</p><p>To use Pandas, we first import the library:</p><pre>import pandas as pd</pre><p>Pandas works primarily with two data structures:</p><ol><li>Series :A one-dimensional labeled array</li></ol><pre>import pandas as pd<br>s = pd.Series([1, 2, 3, 4])</pre><p>2.DataFrame :A two-dimensional table consisting of rows and columns — similar to an Excel sheet or SQL table.</p><pre>data = {<br>    &#39;Name&#39;: [&#39;Dinesh&#39;, &#39;Ramesh&#39;],<br>    &#39;Cast&#39;: [&#39;Bist&#39;, &#39;Thapa&#39;]<br>}<br>df = pd.DataFrame(data)</pre><p>Creating a DataFrame : Besides dictionaries, I explored other ways to create DataFrames, especially using NumPy arrays</p><p>Exploring DataFrame :</p><pre>df = pd.DataFrame(np.arange(0,20).reshape(5,4),<br>index=[&#39;Row 1&#39;,&#39;Row 2&#39;,&#39;Row 3&#39;,&#39;Row 4&#39;,&#39;Row 5&#39;]<br>,columns=[&#39;column 1&#39;,&#39;column 2&#39;,&#39;column 3&#39;,&#39;column 4&#39;])<br>df.head() – Shows the first 5 rows<br>df.tail(n) – Shows the last n rows<br>df.shape – Returns (rows, columns)<br>df.columns – Lists all column names<br>df.info() – Summary including data types and non-null counts</pre><p>Acessing Data:</p><p>Pandas offers multiple ways to access specific rows and columns.</p><pre>df = pd.DataFrame(np.arange(0,20).reshape(5,4),<br>index=[&#39;Row 1&#39;,&#39;Row 2&#39;,&#39;Row 3&#39;,&#39;Row 4&#39;,&#39;Row 5&#39;],<br>columns=[&#39;column 1&#39;,&#39;column 2&#39;,&#39;column 3&#39;,&#39;column 4&#39;])<br>df.head()<br><br>df.loc[[&#39;Row 1&#39;,&#39;Row 2&#39;]] (for acessing row )<br>df[[&#39;column 2&#39;,&#39;column 3&#39;]](for acessing column)<br><br>#using iloc<br>df.iloc[:,:]<br>df.iloc[0:2,0:2]</pre><p>For reading the CSV file:</p><pre>df =pd.read_csv(&#39;mercedesbenz.csv&#39;)<br>df.info()#it  provide the total values in the data like row and coumn data type<br>df[&#39;X0&#39;].value_counts()#counts and give value of the column we given eg(&#39;X0&#39;)<br>df[df[&#39;y&#39;]&lt;100]#show the value where value of y is less then 100</pre><p>Descriptive Statistics:</p><p>Pandas simplifies statistical summaries using just a few functions:</p><pre>df.mean()        # Mean of each column<br>df.max()         # Maximumvalue<br>df.min()         # Minimum value<br>df.std()         # Standard deviation<br>df.describe()    # Summary of all numeric columns</pre><h3>Summary of Key Takeaways</h3><ul><li>Pandas makes working with structured data in Python both powerful and intuitive.</li><li>DataFrames offer high-level access to data while maintaining flexibility for low-level operations.</li><li>Pandas integrates smoothly with NumPy, Matplotlib, and Seaborn for end-to-end data analysis.</li><li>It’s the core toolkit for data science workflows — from data loading to visualization.</li></ul><p>Conclusion:</p><p>Pandas has opened up a whole new world of working with data. With just a few lines of code, I can clean, transform, and explore data in ways that would otherwise require complicated tools or lengthy processes. This journey is just the beginning, and I’m excited to keep building on this foundation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1931edbf0f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning NumPy: A Beginner’s Journey into Numerical Python]]></title>
            <link>https://medium.com/@bistdinesh56/learning-numpy-a-beginners-journey-into-numerical-python-532dfc1ff93b?source=rss-fabf54df2a97------2</link>
            <guid isPermaLink="false">https://medium.com/p/532dfc1ff93b</guid>
            <category><![CDATA[numpy]]></category>
            <dc:creator><![CDATA[Bistdinesh]]></dc:creator>
            <pubDate>Tue, 24 Jun 2025 18:34:58 GMT</pubDate>
            <atom:updated>2025-06-24T18:34:58.051Z</atom:updated>
            <content:encoded><![CDATA[<h4>Introduction:</h4><p>As a data science and analytics learner, one of the first foundational tools I encountered after mastering basic Python was <strong>NumPy</strong> — short for <em>Numerical Python</em>. NumPy is a powerful Python library that helps manage and perform high-performance mathematical operations on large arrays and matrices.</p><p>In this article, I’ll walk you through what I’ve learned from the basics of NumPy, covering key functions, concepts, and hands-on code examples</p><h3><strong>What is NumPy?</strong></h3><p>NumPy stands for Numerical Python and is used for:</p><ul><li>Efficient handling of arrays and matrices.</li><li>Performing mathematical and logical operation<strong>.</strong></li><li>Backend support for libraries like Pandas, Matplotlib, Scikit-learn,etc.</li></ul><h4>To use NumPy:</h4><p>First we must import as :</p><pre>import numpy as np</pre><h4>Creating Arrays:</h4><p>Creating arrays is the starting point in NumPy, and these arrays are used with NumPy’s powerful tools to handle and analyze data easily and efficiently</p><p>For 1D Array:</p><pre>arr = np.array([1, 2, 3])</pre><p>For 2D Array:</p><pre>matrix = np.array([[1, 2], [3, 4]])</pre><p>Using arrange():</p><pre>arr = np.arange(0, 10, 2)</pre><p>Array Reshaping:</p><p>Reshaping is the ability to change the structure of an array without changing its data</p><pre>arr = np.arange(12)<br>reshaped = arr.reshape(3, 4)</pre><p>Some Mathematical Operations:</p><pre>a=np.array([[1,2],[3,4]])<br>b=np.array([[4,4],[8,9]]) <br>print(&quot;addition&quot;,a+b)<br>print(&quot;dot product:\n&quot;,np.dot(a,b))</pre><p>Statistical Functions:</p><p>I used functions like .min(), .max() , and .mean() with axis to calculate along rows or columns.</p><pre>marks = np.array([[59,67,34],[56,65,76],[45,88,98],[98,76,78]])<br>print(marks)<br>print(&quot;average marks:&quot;,np.mean(marks,axis=1))</pre><pre>temps = np.array([[30,46,44,55,65],[98,78,98,56,45],[33,65,67,88,66]])<br>print(temps)<br>print(&quot;max temp per city is :\n&quot;,temps.max(axis=1))<br>print(&quot;max temp:\n&quot;,temps.max(axis=0))</pre><p>Sorting and Indexing:</p><pre>np.sort(arr)<br>arr.argsort() (returns index position that would short array)  </pre><p>Indexing and Slicing:</p><pre>temps = np.array([[30,46,44,55,65],[98,78,98,56,45],[33,65,67,88,66]])<br>print(temps)<br>temps[0:2](slice the 3rd array)<br>temps[:, 1] (provide value of Second column )</pre><p>Conclusion:</p><p>Learning NumPy gave me the tools to manipulate data quickly, efficiently, and with less code. It’s now clear why NumPy is considered the foundation of data science in Python.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=532dfc1ff93b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Compressing and Representing Information]]></title>
            <link>https://medium.com/intern-elite/compressing-and-representing-information-69c22e0849ce?source=rss-fabf54df2a97------2</link>
            <guid isPermaLink="false">https://medium.com/p/69c22e0849ce</guid>
            <dc:creator><![CDATA[Bistdinesh]]></dc:creator>
            <pubDate>Sun, 22 Jun 2025 16:32:56 GMT</pubDate>
            <atom:updated>2025-06-22T16:32:56.857Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>In today’s world of machine learning , handling huge amounts of data — like images, videos, and text — is a big challenge. One of the most important tasks is to find ways to represent and compress this data efficiently, so that we only keep the essential information and reduce the computational resources needed for storage and processing</p><h4>Why Efficient Data Representation Matters</h4><p>Efficient data representations allow ML models to:</p><p>1.Use less memory and computing power.<br>2.Train faster, even with large datasets.<br>3.Focus on the most important features of the data, rather than every single detail.</p><p>For example, instead of using every pixel in an image, a model can summarize the image as a short list of numbers (an embedding), which can be just as useful for tasks like classification or searching.</p><h4>Traditional Compression vs. ML-based Compression</h4><p>Traditional methods like ZIP and JPEG use fixed, hand-crafted algorithms:</p><p>1.ZIP is good for general data and keeps everything (lossless).<br>2.JPEG is designed for images and removes details humans don’t notice (lossy).</p><p>However, these methods can’t adapt to new types of data or tasks. They don’t learn from the data — they just follow preset rules. ML-based methods, on the other hand, can learn the best way to compress data for different needs</p><h4>AutoEncoders</h4><p>AutoEncoders are special ML models that learn to compress and then reconstruct data:</p><p>Encoder: Compresses the input (like an image) into a small, dense representation.</p><p>Decoder: Reconstructs the original input from this compressed form.</p><p>If the decoder can accurately recreate the input, it means the encoder has learned a good summary of the important information.</p><h4>How AutoEncoders Work</h4><p>1.The encoder and decoder are trained together.<br>2.The goal is for the decoder to make its output as close as possible to the original input.<br>3.This process doesn’t need labeled data — just the raw data itself. This is called self-supervised learning</p><h4><strong>Applications of AutoEncoders</strong></h4><p>AutoEncoders are useful for:</p><ul><li><strong>Compression:</strong> Making data smaller and easier to store.</li><li><strong>Feature Extraction:</strong> Using the encoder’s output as input for other ML tasks, like classification.</li><li><strong>Generative Modeling:</strong> Creating new data by sampling from the compressed space (used in Variational AutoEncoders, or VAEs).</li><li><strong>Multimodal Learning:</strong> Connecting different types of data, like matching images to text descriptions</li><li>Example: AutoEncoder with MNIST Digits</li></ul><p>The chapter gives an example using the MNIST dataset — images of handwritten digits:</p><ul><li>The encoder uses convolutional layers to turn 28x28 pixel images into 16-number vectors.</li><li>The decoder takes these vectors and tries to recreate the original images.</li><li>The model is trained using batches of images, and the process is self-supervised (no need for labels)<a href="https://ppl-ai-file-upload.s3.amazonaws.com/web/direct-files/attachments/73888006/c4f9e39f-cffa-4f98-bed5-ba45b534e6f0/paste.txt">1</a>.</li></ul><h4><strong>Building the Encoder</strong></h4><ul><li>The encoder uses several convolutional layers to reduce the image’s size and increase the number of features.</li><li>It finally outputs a 16-dimensional vector for each image, which is a much smaller representation than the original 784 pixels<a href="https://ppl-ai-file-upload.s3.amazonaws.com/web/direct-files/attachments/73888006/c4f9e39f-cffa-4f98-bed5-ba45b534e6f0/paste.txt">1</a>.</li></ul><h4><strong>Building the Decoder</strong></h4><ul><li>The decoder starts with the 16-dimensional vector and uses transposed convolutional layers to reconstruct the image back to its original size (28x28 pixels).</li><li>The decoder doesn’t have to be a perfect mirror of the encoder, but it must be able to “understand” the compressed representation and turn it back into an image<a href="https://ppl-ai-file-upload.s3.amazonaws.com/web/direct-files/attachments/73888006/c4f9e39f-cffa-4f98-bed5-ba45b534e6f0/paste.txt">1</a>.</li></ul><h4><strong>Conclusion</strong></h4><p>Machine learning models like AutoEncoders provide powerful, flexible ways to compress and represent data. These learned representations can make ML tasks faster and more efficient, and they can be used for everything from compression and classification to generating new data and linking different types of information</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69c22e0849ce" width="1" height="1" alt=""><hr><p><a href="https://medium.com/intern-elite/compressing-and-representing-information-69c22e0849ce">Compressing and Representing Information</a> was originally published in <a href="https://medium.com/intern-elite">Intern Elite</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>