<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mohammad Hasibur Rahman</title>
    <description>The latest articles on DEV Community by Mohammad Hasibur Rahman (@mohammad10).</description>
    <link>https://dev.to/mohammad10</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1207198%2F0a955671-9254-46de-8a3b-bf2e8944a119.jpeg</url>
      <title>DEV Community: Mohammad Hasibur Rahman</title>
      <link>https://dev.to/mohammad10</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mohammad10"/>
    <language>en</language>
    <item>
      <title>Quantum Properties</title>
      <dc:creator>Mohammad Hasibur Rahman</dc:creator>
      <pubDate>Wed, 20 Mar 2024 07:21:43 +0000</pubDate>
      <link>https://dev.to/mohammad10/quantum-properties-19bp</link>
      <guid>https://dev.to/mohammad10/quantum-properties-19bp</guid>
      <description>&lt;h2&gt;
  
  
  Superposition
&lt;/h2&gt;

&lt;p&gt;The way how qubits exist in the state of 0 and 1 at the same time is called Superposition. In definition, Superposition is the ability of a quantum object to be in multiple states at the same time, with probabilities of being measured in each state. All of the states in the superposition are valid and contribute solving a problem&lt;/p&gt;

&lt;h2&gt;
  
  
  Interference
&lt;/h2&gt;

&lt;p&gt;Interference is how qubits interfere with each other. The ability of waves and wavefunctions to add up or cancel each other out when they overlap is called Interference.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnt286b76csliawgmnw1n.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnt286b76csliawgmnw1n.jpg" alt="Image description" width="455" height="360"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Measurement
&lt;/h2&gt;

&lt;p&gt;The process of forcing a superposition to pick what state the object will be in. This is irreversible and destroys the superposition. The process requires the object to stay in only one of the states. After measuring multiple times, you can also find out at which state the object has the most probability to be in.&lt;/p&gt;

&lt;h2&gt;
  
  
  Entanglement
&lt;/h2&gt;

&lt;p&gt;Two objects are entangled when one object's state depends on the other object's state.&lt;/p&gt;

&lt;p&gt;When two objects are entangled, they have a defined relationship. When you know one object's state, you know something about the other. Entanglement does not mean that two states are the same, it could mean that two states are opposite and it also does not have to be 100% entanglement.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnduus0drighfwwj9euli.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnduus0drighfwwj9euli.jpeg" alt="Image description" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Wavefunction
&lt;/h2&gt;

&lt;p&gt;The wavefunction is how physicists describe what state a quantum object is in, or in other words, everything we can possibly know about it.&lt;/p&gt;

&lt;p&gt;For example, here is a visual of the electron's wavefunction at different points in the double slit experiment&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F33b7ix9gk852ncu2k7ed.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F33b7ix9gk852ncu2k7ed.png" alt="Image description" width="800" height="177"&gt;&lt;/a&gt;&lt;br&gt;
[Image taken from Qubit by Qubit course]&lt;/p&gt;

&lt;h2&gt;
  
  
  Amplitude
&lt;/h2&gt;

&lt;p&gt;The height or size of a wave is called the amplitude. The amplitude of a quantum wavefunction determines how likely it is to be measured.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6lzgzfqhaclu0xa4udkz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6lzgzfqhaclu0xa4udkz.png" alt="Image description" width="800" height="334"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;[Taken from Qubit by Qubit course]&lt;/p&gt;

&lt;h2&gt;
  
  
  Phase
&lt;/h2&gt;

&lt;p&gt;The phase of a wave is how shifted it is relative to another wave. The phase of a quantum wavefunction plays an important role in interference.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Quantum Computing: Grover's Algorithm</title>
      <dc:creator>Mohammad Hasibur Rahman</dc:creator>
      <pubDate>Mon, 19 Feb 2024 06:10:45 +0000</pubDate>
      <link>https://dev.to/mohammad10/quantum-computing-grovers-algorithm-49ae</link>
      <guid>https://dev.to/mohammad10/quantum-computing-grovers-algorithm-49ae</guid>
      <description>&lt;p&gt;Think if you have a problem set of unordered list and you have many combinations of solutions, how would you solve the problem? &lt;/p&gt;

&lt;p&gt;This is where &lt;strong&gt;Grover's search Algorithm&lt;/strong&gt; comes into play. Basically, this algorithm helps you to minimize the combinations of solutions and cut out the ones that are not a part of solution. So you input all the problem set in the Grover's algorithm and it uses a oracle function to process that input and gives you the output. If the output is 1, then you got your solution. If it's 1, then you keep giving your input again and again until you find the result 1. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;About "Oracle" function&lt;/strong&gt;: Amplitude amplification is a general purpose quantum algorithm, or subroutine, that can be used to obtain a quadratic speedup over a handful of classical algorithms. Grover’s algorithm was the first to demonstrate this speedup on unstructured search problems. Formulating a Grover's search problem requires an oracle function that marks one or more computational basis states as the states we are interested in finding, and an amplification circuit that increases the amplitude of marked states, consequently suppressing the remaining states.&lt;/p&gt;

&lt;h2&gt;
  
  
  Example
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzmmm8d0dgqkwwhmklhw7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzmmm8d0dgqkwwhmklhw7.png" alt="Image description" width="800" height="411"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The circuit above has a string of 3 bits as an input for a certain problem. The output given depends on whether the input string is a solution to the problem or not.&lt;/p&gt;

&lt;p&gt;The result of this checking computation will still be either &lt;strong&gt;True or False&lt;/strong&gt;, but the behaviour of this circuit is slightly different to how you might expect. To use this circuit with &lt;strong&gt;Grover's algorithm&lt;/strong&gt;, we want the oracle to &lt;strong&gt;change the phase of the output state by 180° (i.e. multiply by -1)&lt;/strong&gt; if the state is a &lt;strong&gt;solution&lt;/strong&gt;. This is why Qiskit calls the class 'PhaseOracle'.&lt;/p&gt;

&lt;p&gt;Note: PhaseOracle means the Oracle function shifts the phase of the output state by multiplying -1 to the output.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flqmncob16gj3wjux16rw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flqmncob16gj3wjux16rw.png" alt="Image description" width="800" height="342"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As it shows in the picture, if the output is a solution there is a minus (-) sign in the front of the state. Otherwise, there is not.&lt;/p&gt;

&lt;p&gt;Looking at the matrix above, we can see that the rows/columns corresponding to the binary strings 000, 011, and 101 have -1 entries on the diagonal. This means that when the quantum state corresponding to these strings is input into the oracle, the oracle flips the phase of the state (multiplies it by -1), which is a key step in Grover's algorithm for marking the solutions.&lt;/p&gt;

&lt;p&gt;The matrix is an 8x8 matrix, which means it can represent all 2^3 (or 8) possible combinations of 3-bit strings. The positions of the -1s in the matrix would be:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;000 corresponds to the first position (row 1, column 1),&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;011 corresponds to the fourth position (row 4, column 4),&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;101 corresponds to the sixth position (row 6, column 6).&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Overview of Grover's algorithm
&lt;/h2&gt;

&lt;p&gt;Now we understand the problem, we finally come to Grover’s algorithm. Grover’s algorithm has three steps:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8ae0k3xuq2n6unk3lq2n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8ae0k3xuq2n6unk3lq2n.png" alt="Image description" width="800" height="472"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Here's a quick rundown of my experiment with Grover's Algorithm (Refer to Qiskit documentation if you want to learn more)
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjwxha3ehjef28pd84kyy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjwxha3ehjef28pd84kyy.png" alt="Image description" width="800" height="390"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here I initiated the marked states and set the variable "oracle" by calling "grover_oracle" and setting marked_states inside of it.&lt;/p&gt;

&lt;p&gt;Next, we can again use Qiskit's tools to create a circuit that does steps 2 &amp;amp; 3 for us.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs8jnl8gy048i84l99hva.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs8jnl8gy048i84l99hva.png" alt="Image description" width="800" height="257"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we implement the oracle function in the circuit&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxbq53dt23q13wx9fkv86.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxbq53dt23q13wx9fkv86.png" alt="Image description" width="800" height="710"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here the marked states means the combinations we are trying on the ciruit to see if it's the solution or not. Here, the marked states are 101,100 &amp;amp; 110. So you can see on the histogram that these states has the highest bars. Quantum computers can have randomness in their results, so it's common to repeat the circuit a few times. This circuit was repeated 1024 times, which is the default number of times to repeat a circuit in Qiskit.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fct95kie8ww0se311onbv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fct95kie8ww0se311onbv.png" alt="Image description" width="800" height="792"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hope you enjoyed this short blog on grover's algorithm. Leave a comment to support.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Pandas Beginner's Guide</title>
      <dc:creator>Mohammad Hasibur Rahman</dc:creator>
      <pubDate>Thu, 11 Jan 2024 10:34:41 +0000</pubDate>
      <link>https://dev.to/mohammad10/pandas-beginners-guide-part-1-e89</link>
      <guid>https://dev.to/mohammad10/pandas-beginners-guide-part-1-e89</guid>
      <description>&lt;p&gt;Import the libraries&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import numpy as np
import pandas as pd
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Series&lt;/strong&gt;&lt;br&gt;
A Series is very similar to a NumPy array but the only difference is that a Series can have axis labels, meaning it can be indexed by a label, instead of just a number location&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Creating a Series&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;labels = ['a', 'b', 'c']
my_list = [10,20,30]
arr = np.array([10,20,30])
d = {'a':10,'b':20,'c':30}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the first line of code, I am calling my_list and using the variable data and it prints my_list in a column with indexes from 0 to 2.&lt;/p&gt;

&lt;p&gt;In the same way, second line is setting variable data, index for my_list, labels respectively. This specifies the indexes to be the elements of my_list and setting the values to the indexes to labels.&lt;/p&gt;

&lt;p&gt;Similarly, you can call the elements from the code cell above without using variables.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--bilHxskI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7u14rwu08kgal5lys6jy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bilHxskI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7u14rwu08kgal5lys6jy.png" alt="Image description" width="800" height="517"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Using an Index&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The key to using a Series is understanding its index. Pandas makes use of these index names or numbers by allowing for fast look ups of information (works like a hash table or dictionary).&lt;/p&gt;

&lt;p&gt;In the first line of code, named the variable "&lt;strong&gt;ser1&lt;/strong&gt;". Then called the Series function where we can add multiple elements. So I added index to the country names and set values to the names 1,2,3,4. In the second line, we called the ser1 variable to print the elements inside the variable.&lt;/p&gt;

&lt;p&gt;Same way, we name the variable "&lt;strong&gt;ser2&lt;/strong&gt;" and print the elements inside.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fifth line&lt;/strong&gt;: You can call a specific element by calling the name of the element followed by the variable name.&lt;/p&gt;

&lt;p&gt;In the last line, you can see I have added both variables &lt;strong&gt;ser1 and ser2&lt;/strong&gt; to add the eleements together. But when it prints the output, it shows that values for the indexes &lt;strong&gt;Italy and USSR&lt;/strong&gt; has NaN values because they were only elements of either the variable &lt;strong&gt;ser1&lt;/strong&gt; or &lt;strong&gt;ser2&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Lq5ugSIr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qnfpngwwy2nsokqxdlde.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Lq5ugSIr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qnfpngwwy2nsokqxdlde.png" alt="Image description" width="800" height="708"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;DataFrames&lt;/strong&gt;&lt;br&gt;
We can think of a DataFrame as a bunch of Series objects put together to share the same index. &lt;/p&gt;

&lt;p&gt;Import the randn to load dataset. Name variable &lt;strong&gt;df&lt;/strong&gt; and call the Dataframe function. Inside the function &lt;strong&gt;DataFrame&lt;/strong&gt; I specified the number of&lt;br&gt;
rows(5) and columns(4) and set the indexes to 'A B C D E' and columns to 'W X Y Z'. &lt;/p&gt;

&lt;p&gt;Here the &lt;strong&gt;split()&lt;/strong&gt; method is used to split a column into multiple columns in Pandas. &lt;/p&gt;

&lt;p&gt;Then we call " df" to print the DataFrame.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--nAueHv5L--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lyph1vnkvzogqsu6olwj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--nAueHv5L--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lyph1vnkvzogqsu6olwj.png" alt="Image description" width="800" height="347"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Selection and Indexing&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You can select each indexes by mentioning the indexes that you want to select followed by the "df" variable. "You may name the variable to something else instead of df. Here df is short for DataFrame."&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--gEd45VTK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ectidjh249yfgkyzf2fy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--gEd45VTK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ectidjh249yfgkyzf2fy.png" alt="Image description" width="800" height="909"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Creating a new column&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Here you can see, a new column has been created where the column name is 'new'. However, the new column is addition of column "W" and "Y", added them together using "+".&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Removing Columns&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Use df.drop() to drop a column and set the axis to 1. Axis = 1 means you are dropping a column, not a row.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ifzD0X2G--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/85ec3jeltcufzau039a8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ifzD0X2G--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/85ec3jeltcufzau039a8.png" alt="Image description" width="800" height="1006"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Removing Rows&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Similarly, use df.drop() but set the axis = 0 to specify that you are dropping a row. Here, 'E' is the column that you are dropping.&lt;/p&gt;

&lt;p&gt;On the second line of code, is another way how you can drop a row. here &lt;strong&gt;iloc&lt;/strong&gt; is short for index location. Specified the row number 2 and dropped it.&lt;/p&gt;

&lt;p&gt;On the third line of code is how you can select multiple rows and drop it.&lt;/p&gt;

&lt;p&gt;On the fourth line of code, you can select multiple rows and columns. Then you can drop all of them together.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; When you are dropping a column, make sure that it won't affect your accuracy rate of the dataset you are working on. There are many ways of handling such columns and rows which has null values.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3XGHQlEx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cybjkr8s1amkk5x73873.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3XGHQlEx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cybjkr8s1amkk5x73873.png" alt="Image description" width="800" height="813"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conditional Selection&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;First line: Selected the values greater than 0 which shows the boolean (True or False) values&lt;/p&gt;

&lt;p&gt;Second line: Returns the values that are greater than 0 and values lesser than 0 shows NaN.&lt;/p&gt;

&lt;p&gt;Third line: Specifies column "W" and drop the values in W that are less than 0. Here you can see, the row "C" has value less than 0. So it dropped row "C".&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--zigUHEVG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eww5iulpz4sy6tx7vu03.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--zigUHEVG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eww5iulpz4sy6tx7vu03.png" alt="Image description" width="800" height="765"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>pandas</category>
    </item>
    <item>
      <title>Microsoft Azure: Cloud concepts and the shared responsibility model</title>
      <dc:creator>Mohammad Hasibur Rahman</dc:creator>
      <pubDate>Mon, 13 Nov 2023 01:08:15 +0000</pubDate>
      <link>https://dev.to/mohammad10/microsoft-azure-cloud-concepts-and-the-shared-responsibility-model-4l9p</link>
      <guid>https://dev.to/mohammad10/microsoft-azure-cloud-concepts-and-the-shared-responsibility-model-4l9p</guid>
      <description>&lt;h2&gt;
  
  
  What is cloud computing?
&lt;/h2&gt;

&lt;p&gt;Cloud computing is the delivery of computing services over the internet. Cloud computing services are provided using the internet so it is not depended on physical infrastructure as a physical datacenter. &lt;/p&gt;

&lt;h2&gt;
  
  
  Shared Responsibility Model
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--PtcIHj0S--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/frfhjfstezuanpxsvvcf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--PtcIHj0S--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/frfhjfstezuanpxsvvcf.png" alt="Image description" width="302" height="167"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The shared responsibility model shares the responsibilities of maintaining the infrastructure and software needed to keep the datacenter working between its provider and the consumer. Physical security, power, cooling, and network connectivity are the responsibility of the cloud provider and consumer is responsible for the data and information stored in the cloud.&lt;br&gt;
The consumer is also responsible for access security, meaning you only give access to those who need it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cloud service types&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;IAAS (Infrastructure as a service)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;PAAS (Platform as a service)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;SAAS (Software as a service)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Note: Based on the cloud service types the "Shared responsibility model" varies&lt;/p&gt;

&lt;p&gt;The consumer is always responsible for the following: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The information and data stored in the cloud&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Devices that are allowed to connect to your cloud (cell phones, computers, and so on)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The accounts and identities of the people, services, and devices within your organization&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The provider is always responsible for the following: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The physical datacenter&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The physical network&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The physical hosts&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Depending on the service type responsibility shared:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Operating systems&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Network controls&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Applications&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Identity and infrastructure&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
  </channel>
</rss>
