<?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: Alfredo Aguiar Arce</title>
    <description>The latest articles on DEV Community by Alfredo Aguiar Arce (@alfredoaguiararce).</description>
    <link>https://dev.to/alfredoaguiararce</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%2F958688%2Ffcc655ab-b1cf-4822-996d-32f4499521d3.jpg</url>
      <title>DEV Community: Alfredo Aguiar Arce</title>
      <link>https://dev.to/alfredoaguiararce</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alfredoaguiararce"/>
    <language>en</language>
    <item>
      <title>Elevating Data Analysis with a Pinch of AI Wizardry and JavaScript</title>
      <dc:creator>Alfredo Aguiar Arce</dc:creator>
      <pubDate>Fri, 26 May 2023 23:52:49 +0000</pubDate>
      <link>https://dev.to/alfredoaguiararce/elevating-data-analysis-with-a-pinch-of-ai-wizardry-and-javascript-5cii</link>
      <guid>https://dev.to/alfredoaguiararce/elevating-data-analysis-with-a-pinch-of-ai-wizardry-and-javascript-5cii</guid>
      <description>&lt;p&gt;Last week, just when I was casually strolling through the vast land of GitHub, I stumbled upon a project that caught my attention like a squirrel spotting a shiny nut: Pandas AI.&lt;/p&gt;




&lt;p&gt;Let me tell you, folks, &lt;a href="https://github.com/gventuri/pandas-ai"&gt;Pandas AI&lt;/a&gt; is like a magical wand for Python developers who want to add some serious artificial intelligence mojo to their data analysis game. It's a nifty library designed to partner up with the famous Pandas tool, not to steal its thunder, mind you.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/xT0xeJpnrWC4XWblEk/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/xT0xeJpnrWC4XWblEk/giphy.gif" alt="mind blowing" width="350" height="233"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, this got my gears turning, my friends. I thought, why not embark on a coding adventure of my own? And thus, I birthed &lt;a href="https://github.com/alfredoaguiararce/arrays-ai"&gt;ArraysAi &lt;/a&gt; into this wild world of software sorcery. Just like its Pandas sibling, ArraysAi aims to sprinkle some AI spice onto your data analysis endeavors, making your life easier than figuring out where the missing semicolon in your code went.&lt;/p&gt;

&lt;p&gt;Picture this, my fellow developers: a fully functional project that you can chat with, just like you chat with your pals or those talkative pigeons in the park. I'm talking about asking questions, crunching data, and getting answers faster than you can say "Hello World." It's like having a conversation with your PDFs, except this time it's actually useful!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/8xgqLTTgWqHWU/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/8xgqLTTgWqHWU/giphy.gif" alt="thumbs up" width="320" height="240"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But hey, let's not get ahead of ourselves. I'm still in the early stages, my coding comrades. That's why I need your help, your wisdom, and your wicked feedback. Together, we can iterate, improve, and unleash a rock-solid version that will blow your developer socks off. So, bring on the feedback, folks! I'm all ears, ready to conquer the realm of data analysis with a dash of AI wizardry. Let's do this!&lt;/p&gt;




&lt;p&gt;Visit our GitHub repository &lt;a href="https://github.com/alfredoaguiararce/arrays-ai"&gt;ArraysAi &lt;/a&gt;to explore the magic. Share your feedback, ideas, and insights. Let's collaborate, iterate, and create a data analysis experience like no other.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Arrays-AI: Utilizing AI for Data Analysis in JavaScript</title>
      <dc:creator>Alfredo Aguiar Arce</dc:creator>
      <pubDate>Thu, 25 May 2023 03:55:58 +0000</pubDate>
      <link>https://dev.to/alfredoaguiararce/arrays-ai-utilizing-ai-for-data-analysis-in-javascript-5h9p</link>
      <guid>https://dev.to/alfredoaguiararce/arrays-ai-utilizing-ai-for-data-analysis-in-javascript-5h9p</guid>
      <description>&lt;p&gt;The "arrays-ai" library is here to revolutionize JavaScript array manipulation using the power of artificial intelligence. With Arrays-AI, you can effortlessly perform operations like filtering, aggregation, sorting, and element removal on arrays of objects, all through natural language commands. The library leverages the OpenAI API to process these commands and apply the corresponding operations to your array.&lt;/p&gt;

&lt;p&gt;Installation is a breeze. Simply use npm to install the library:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install &lt;/span&gt;arrays-ai
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Alternatively, you can download the source code directly from the GitHub repository and incorporate it into your project.&lt;/p&gt;

&lt;p&gt;To get started, import the library into your project:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;ArraysAi&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;arrays-ai&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;arraysai&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nx"&gt;ArraysAi&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Configure Arrays-AI with your OpenAI API key:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nx"&gt;arraysai&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;Configure&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;apiKey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;YOUR_API_KEY&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Next, set the array data that you want to manipulate:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;myArray&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;collection_1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;collection_2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;...];&lt;/span&gt;
&lt;span class="nx"&gt;arraysai&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;SetData&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;myArray&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;By default, the library responds in English. However, you can set the language to Spanish or other supported languages using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nx"&gt;arraysai&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;SetLanguage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;Languages&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;SPANISH&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now comes the exciting part—manipulating your array using natural language queries. For example, you can ask how many records have a null age in the first array:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nx"&gt;arraysai&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;Ask&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;How many records have a null age in the first array?&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;then&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;answer&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;answer&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// There are two records in the first array that have a null age.&lt;/span&gt;
  &lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The "Ask()" function employs OpenAI's artificial intelligence to interpret your query and perform the corresponding manipulation on the array. You can choose to receive a verbose response that includes the original question and answer for better understanding.&lt;/p&gt;

&lt;p&gt;Arrays-AI also supports TypeScript and provides type checking at compile time for seamless integration into your projects.&lt;/p&gt;

&lt;p&gt;If you're interested in contributing to the project, you can report bugs, suggest improvements, or propose new features through GitHub issues or pull requests.&lt;/p&gt;

&lt;p&gt;Arrays-AI is released under the MIT license, so feel free to explore, use, and contribute. If you find the project useful, consider showing your support by making a donation via PayPal.&lt;/p&gt;

&lt;p&gt;Let's unleash the power of artificial intelligence for JavaScript array manipulation with Arrays-AI!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/alfredoaguiararce/arrays-ai"&gt;Explore Arrays-AI on GitHub&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.npmjs.com/package/arrays-ai"&gt;NPM&lt;/a&gt;&lt;/p&gt;

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