<?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: Kirpal Export</title>
    <description>The latest articles on DEV Community by Kirpal Export (@kirpal_export).</description>
    <link>https://dev.to/kirpal_export</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3739434%2F371a4cd2-7b9c-41ea-9f97-606b802cd0a9.jpg</url>
      <title>DEV Community: Kirpal Export</title>
      <link>https://dev.to/kirpal_export</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kirpal_export"/>
    <language>en</language>
    <item>
      <title>Stop Sorting by Price: Normalize Supplier Quotes With pandas First</title>
      <dc:creator>Kirpal Export</dc:creator>
      <pubDate>Mon, 30 Nov 2026 09:31:20 +0000</pubDate>
      <link>https://dev.to/kirpal_export/stop-sorting-by-price-normalize-supplier-quotes-with-pandas-first-1k8i</link>
      <guid>https://dev.to/kirpal_export/stop-sorting-by-price-normalize-supplier-quotes-with-pandas-first-1k8i</guid>
      <description>&lt;p&gt;`&lt;strong&gt;Stop Sorting by Price: Normalize Supplier Quotes With pandas First&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Procurement spreadsheets have a quiet bug. You paste three quotes into three rows, sort the price column, and the top row looks like the winner. But the rows are not measuring the same thing, so the sort is meaningless.&lt;/p&gt;

&lt;p&gt;This post shows a small pandas pattern for fixing that. The example data is bulk &lt;strong&gt;henna powder&lt;/strong&gt; quotes, because the problem is easy to see there, but the same approach works for any commodity where "same product" hides real differences: spices, tea, resins, packaging film.&lt;/p&gt;

&lt;p&gt;All prices below are invented for the demo.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem in one table
&lt;/h2&gt;

&lt;p&gt;Say four suppliers reply to your request for henna powder:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;supplier&lt;/th&gt;
&lt;th&gt;price per kg&lt;/th&gt;
&lt;th&gt;shipping term&lt;/th&gt;
&lt;th&gt;pack&lt;/th&gt;
&lt;th&gt;batch document&lt;/th&gt;
&lt;th&gt;sifting stated&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Mill A&lt;/td&gt;
&lt;td&gt;4.10&lt;/td&gt;
&lt;td&gt;FOB&lt;/td&gt;
&lt;td&gt;bulk bag&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Mill B&lt;/td&gt;
&lt;td&gt;4.60&lt;/td&gt;
&lt;td&gt;CIF&lt;/td&gt;
&lt;td&gt;lined bag&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Trader C&lt;/td&gt;
&lt;td&gt;3.80&lt;/td&gt;
&lt;td&gt;EXW&lt;/td&gt;
&lt;td&gt;plain bag&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Mill D&lt;/td&gt;
&lt;td&gt;4.35&lt;/td&gt;
&lt;td&gt;FOB&lt;/td&gt;
&lt;td&gt;lined bag&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Sort by price and Trader C wins. But EXW means you pay for everything after the factory gate, while CIF already includes freight and insurance to a named port. And two of the four rows have no batch document and no stated sifting, so you do not know what you would receive.&lt;/p&gt;

&lt;p&gt;Two fixes are needed: put prices on a common shipping basis, and filter out rows that are missing required information before ranking anything.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: load the data
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;&lt;/code&gt;`python&lt;br&gt;
import io&lt;br&gt;
import pandas as pd&lt;/p&gt;

&lt;p&gt;raw = """supplier,price_per_kg,incoterm,pack,batch_doc,sifting_stated&lt;br&gt;
Mill A,4.10,FOB,bulk bag,no,no&lt;br&gt;
Mill B,4.60,CIF,lined bag,yes,yes&lt;br&gt;
Trader C,3.80,EXW,plain bag,no,no&lt;br&gt;
Mill D,4.35,FOB,lined bag,yes,yes&lt;br&gt;
"""&lt;br&gt;
df = pd.read_csv(io.StringIO(raw))&lt;br&gt;
`&lt;code&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;In real use you would read a CSV that you fill in from each supplier's written reply. Keep one row per supplier, and one column per question you asked every supplier.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: bring prices to one shipping basis
&lt;/h2&gt;

&lt;p&gt;Shipping terms split cost and risk at different points. To compare prices fairly you need an estimate of what each term leaves for you to pay. The numbers in this dict are placeholders. Replace them with real quotes from a freight forwarder for your route.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;code&gt;python&lt;br&gt;
adder = {"EXW": 0.55, "FOB": 0.35, "CIF": 0.0}&lt;br&gt;
df["adj_price"] = df["price_per_kg"] + df["incoterm"].map(adder)&lt;br&gt;
&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;A &lt;code&gt;map&lt;/code&gt; call returns &lt;code&gt;NaN&lt;/code&gt; for any term that is not in the dict, which is useful here. If a supplier writes a term you did not plan for, the adjusted price goes blank instead of silently pretending to be comparable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: flag rows that are missing required answers
&lt;/h2&gt;

&lt;p&gt;Decide which fields are non-negotiable, then mark each row as comparable only if every one of them is a clear "yes".&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;code&gt;python&lt;br&gt;
required = ["batch_doc", "sifting_stated"]&lt;br&gt;
df["comparable"] = df[required].eq("yes").all(axis=1)&lt;br&gt;
&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Anything other than "yes" counts as a miss, including blanks and typos, which is the safe direction to fail in.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: rank, but only among comparable rows
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;code&gt;python&lt;br&gt;
print(df.sort_values("adj_price")[["supplier", "adj_price", "comparable"]])&lt;br&gt;
print(df[df["comparable"]].sort_values("adj_price")[["supplier", "adj_price"]])&lt;br&gt;
&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Output from the run:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;/code&gt;`plaintext&lt;br&gt;
  supplier  adj_price  comparable&lt;br&gt;
2  Trader C       4.35       False&lt;br&gt;
0    Mill A       4.45       False&lt;br&gt;
1    Mill B       4.60        True&lt;br&gt;
3    Mill D       4.70        True&lt;/p&gt;

&lt;p&gt;supplier  adj_price&lt;br&gt;
1   Mill B        4.6&lt;br&gt;
3   Mill D        4.7&lt;br&gt;
`&lt;code&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Notice what happened. Trader C was the cheapest sticker price and is still the cheapest adjusted one, but it is not comparable, because the batch document and the sifting details are missing. Among the rows you can fairly compare, Mill B comes first.&lt;/p&gt;

&lt;h2&gt;
  
  
  Choosing the required fields
&lt;/h2&gt;

&lt;p&gt;The field list is the part that takes domain knowledge. For botanical powders, a decent starting set is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ingredient list (single ingredient or blend)&lt;/li&gt;
&lt;li&gt;intended use&lt;/li&gt;
&lt;li&gt;sifting or fineness, confirmed by a physical sample&lt;/li&gt;
&lt;li&gt;moisture handling and stated shelf life&lt;/li&gt;
&lt;li&gt;a batch-level analysis for the lot you will receive&lt;/li&gt;
&lt;li&gt;complaint route&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I modeled these on the kind of detail producers publish on their own pages. Kirpal Export Overseas, for instance, &lt;strong&gt;keeps &lt;a href="https://kirpalexport.com/frequently-asked-questions/" rel="noopener noreferrer"&gt;a published producer FAQ&lt;/a&gt;&lt;/strong&gt;, which is handy for seeing how a producer words these answers. Disclosure: the author's team works with that company.&lt;/p&gt;

&lt;h2&gt;
  
  
  Gotchas
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Text fields drift.&lt;/strong&gt; "Yes", "yes ", "Y" and "yes (on request)" are four different strings. Normalize with &lt;code&gt;str.strip().str.lower()&lt;/code&gt; first, and decide up front what counts as a yes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Currency and units.&lt;/strong&gt; If one supplier quotes per pound or in another currency, convert before the adjustment step. Do not hide that conversion in a spreadsheet cell.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Samples beat columns.&lt;/strong&gt; A column can say "sifted" and still describe a coarse powder. Keep a field for what you observed on a sample, and treat it as the tie-breaker.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where to take it next
&lt;/h2&gt;

&lt;p&gt;Add a &lt;code&gt;lead_time_weeks&lt;/code&gt; column and weight it. Log the date of each quote, since prices move. Keep the CSV in version control, so you can see what changed between rounds.&lt;/p&gt;

&lt;p&gt;None of this replaces judgment. It only stops the first sort from deciding the question before you have looked at what is being compared.`&lt;/p&gt;

</description>
      <category>python</category>
      <category>pandas</category>
      <category>datascience</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How to Use Natural Ingredients to Dye Hair Light Brown — What Works and What Does Not</title>
      <dc:creator>Kirpal Export</dc:creator>
      <pubDate>Tue, 02 Jun 2026 11:03:26 +0000</pubDate>
      <link>https://dev.to/kirpal_export/how-to-use-natural-ingredients-to-dye-hair-light-brown-what-works-and-what-does-not-p7a</link>
      <guid>https://dev.to/kirpal_export/how-to-use-natural-ingredients-to-dye-hair-light-brown-what-works-and-what-does-not-p7a</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faz0igyibeomtvw2ar8x4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faz0igyibeomtvw2ar8x4.png" alt=" " width="800" height="671"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Light brown is one of the trickiest shades to hit with natural ingredients. Go too heavy on henna and you end up with red. Skip it entirely and you lose the depth. The good news is that there is a method that works — and it has been used across different cultures for a very long time. Here is what people in France need to know before they start.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Honest Truth About Getting Light Brown Naturally&lt;/strong&gt;&lt;br&gt;
Natural ingredients do not work like synthetic dyes. There is no developer. No oxidation. The colour builds gradually and the final result depends heavily on your starting shade, the quality of the ingredients, and how long you leave the treatment on.&lt;/p&gt;

&lt;p&gt;For light brown specifically, the goal is to add warmth and depth without going too red or too dark. That balance comes from mixing the right plants in the right ratios — not from using a single ingredient at full strength.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Best Natural Combination for Light Brown Hair&lt;/strong&gt;&lt;br&gt;
The most reliable natural route to light brown uses three ingredients together:&lt;/p&gt;

&lt;p&gt;Henna (a small amount): Adds warm undertones and conditions the hair shaft.&lt;br&gt;
Cassia obovata (the larger portion): Dilutes the red in henna and adds golden warmth without going auburn.&lt;br&gt;
Amla powder: Cools the tone slightly and adds depth and shine.&lt;br&gt;
A good starting ratio is 1 part henna to 3 parts cassia, with a tablespoon of amla stirred in. Mix with warm water to a yogurt consistency. Apply to clean, dry hair. Leave for 90 minutes to two hours. Rinse thoroughly. The result on medium brown hair is a warm, golden-light-brown that looks natural — because it is.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why Pure Ingredient Quality Changes Everything&lt;/strong&gt;&lt;br&gt;
This combination only works well when the ingredients are fresh and pure. Old henna or cassia that has been exposed to air loses its active compounds. The colour result becomes unpredictable — often greener or muddier than expected.&lt;/p&gt;

&lt;p&gt;For buyers in France sourcing henna for personal use or salon application, certified &lt;a href="https://kirpalexport.com/7-best-natural-methods-to-color-hair-without-harsh-ingredients-france-guide/" rel="noopener noreferrer"&gt;&lt;strong&gt;henna hair color&lt;/strong&gt;&lt;/a&gt; powder from verified manufacturers is always the better choice. Farm-to-package traceability and active protective packaging preserve the lawsone and cassia compounds that actually create the colour.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Managing Expectations — What Natural Brown Really Looks Like&lt;/strong&gt;&lt;br&gt;
Natural light brown built from plant ingredients has a warmth that synthetic dyes rarely replicate. It catches light differently. It has dimension — because the colour sits on the outside of the hair shaft, not inside it. Roots grow out softly rather than harshly.&lt;/p&gt;

&lt;p&gt;The trade-off is time. The first application may look more golden than brown. By the third application, the tone deepens and settles into something richer. Patience is part of the process. But for people in France who have made the switch, most say they would not go back.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A Quick Note on Gray Coverage&lt;/strong&gt;&lt;br&gt;
Gray hairs take on the most vibrant colour in any natural treatment. In a light brown blend, gray strands will appear as the brightest golden highlights — which actually looks quite beautiful against a natural brown base. It is different from full gray coverage with synthetic dye, but for many people it is a more flattering result.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; Always mix the powder fresh before each application. Do not store leftover paste — the active compounds begin degrading within hours of being mixed with water.&lt;/p&gt;

</description>
      <category>naturalhaircolor</category>
      <category>haircolor</category>
      <category>hairdye</category>
      <category>hennahairdye</category>
    </item>
    <item>
      <title>Market fit: where _henna manufacturers_ add the most value</title>
      <dc:creator>Kirpal Export</dc:creator>
      <pubDate>Thu, 29 Jan 2026 10:40:14 +0000</pubDate>
      <link>https://dev.to/kirpal_export/market-fit-where-henna-manufacturers-add-the-most-value-2cn1</link>
      <guid>https://dev.to/kirpal_export/market-fit-where-henna-manufacturers-add-the-most-value-2cn1</guid>
      <description>&lt;p&gt;Top &lt;a href="https://kirpalexport.com/author/admin/" rel="noopener noreferrer"&gt;henna manufacturers&lt;/a&gt; serve B2B customers: cosmetic OEMs, salon chains, and importers. First, they offer certified lines (organic, GMP) for North America and Europe. Next, they offer ultra-fine meshes and documented lawsone for East Asia and Japan. Also, they supply bulk grades for Middle Eastern ritual and textile markets. Meanwhile, henna exporters adapt labeling for regional rules, and henna suppliers optimize pack sizes for wholesale. Finally, henna distributors that carry certified, tested lots win steady reorder business from professional buyers. For product examples showing finished botanical care, see Indalo’s herbal shampoo collection.&lt;/p&gt;

</description>
      <category>hennamanufacturers</category>
      <category>hennasuppliers</category>
      <category>hennaexporters</category>
      <category>hennawholesale</category>
    </item>
  </channel>
</rss>
