mastodon.world is one of the many independent Mastodon servers you can use to participate in the fediverse.
Generic Mastodon server for anyone to use.

Server stats:

8.1K
active users

#data_question

0 posts0 participants0 posts today
datatofu<p><a href="https://mastodon.social/tags/data_question" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>data_question</span></a></p><p>List the first 5 rows of the following data as DataFrame output.<br>```<br>dictionary = {"Name" :["Alex","Bob","Cathy","Don","Emma","Frank"],<br> "Age" :[15,40,30,60,19,25],<br> "income" :[300,800,1000,850,100,250]}<br>```</p><p>tags: <a href="https://mastodon.social/tags/ai" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ai</span></a> <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://mastodon.social/tags/rstats" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rstats</span></a> <a href="https://mastodon.social/tags/datascience" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>datascience</span></a> <a href="https://mastodon.social/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a> <a href="https://mastodon.social/tags/tech" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tech</span></a></p>
datatofu<p><a href="https://mastodon.social/tags/data_question" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>data_question</span></a></p><p>Create a DataFrame from the first few rows of the following dataset.<br>```<br>dictionary = {"Name" :["Alex","Bob","Cathy","Don","Emma","Frank"],<br> "Age" :[15,40,30,60,19,25],<br> "income" :[300,800,1000,850,100,250]}<br>```</p><p>Tags: <a href="https://mastodon.social/tags/ai" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ai</span></a> <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://mastodon.social/tags/datascience" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>datascience</span></a> <a href="https://mastodon.social/tags/rstats" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rstats</span></a> <a href="https://mastodon.social/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a> <a href="https://mastodon.social/tags/tech" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tech</span></a></p>
datatofu<p><a href="https://mastodon.social/tags/data_question" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>data_question</span></a></p><p>⚠️ Raw data warning ⚠️</p><p>Check for missing values in each column of the data at <a href="http://bit.ly/imdbratings" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">http://</span><span class="">bit.ly/imdbratings</span><span class="invisible"></span></a></p><p>📋 It should lead to a raw GitHub source: Checked 2025.05.19 11:54</p><p>Tags: <a href="https://mastodon.social/tags/ai" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ai</span></a> <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://mastodon.social/tags/rstats" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rstats</span></a> <a href="https://mastodon.social/tags/datascience" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>datascience</span></a> <a href="https://mastodon.social/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a> <a href="https://mastodon.social/tags/tech" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tech</span></a></p>
datatofu<p><a href="https://mastodon.social/tags/data_question" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>data_question</span></a></p><p>Assuming you are working with a dataset of indeterminate size.</p><p>Make two DataFrames consisting of the first and last few rows of the data, and vertically concatenate them.</p><p>tags: <a href="https://mastodon.social/tags/ai" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ai</span></a> <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://mastodon.social/tags/datascience" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>datascience</span></a> <a href="https://mastodon.social/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a> <a href="https://mastodon.social/tags/rstats" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rstats</span></a> <a href="https://mastodon.social/tags/tech" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tech</span></a></p>
datatofu<p><a href="https://mastodon.social/tags/data_question" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>data_question</span></a></p><p>Convert the attached data into DataFrames for EDA. </p><p>One DataFrame should have the `department_name`, `employee_id`, and `employee_name` columns. The other DataFrame should have the `salary`, `employee_id`, and `employee_name` columns.</p><p>Tags: <a href="https://mastodon.social/tags/ai" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ai</span></a> <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://mastodon.social/tags/datascience" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>datascience</span></a> <a href="https://mastodon.social/tags/rstats" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rstats</span></a> <a href="https://mastodon.social/tags/tech" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tech</span></a> <a href="https://mastodon.social/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a></p>
datatofu<p><a href="https://mastodon.social/tags/data_question" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>data_question</span></a></p><p>Write a function or query that checks the top 3 authors and their books from a given dataset or database.</p><p>Tags: <a href="https://mastodon.social/tags/ai" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ai</span></a> <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://mastodon.social/tags/rstats" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rstats</span></a> <a href="https://mastodon.social/tags/datascience" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>datascience</span></a> <a href="https://mastodon.social/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a> <a href="https://mastodon.social/tags/tech" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tech</span></a> <a href="https://mastodon.social/tags/sql" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sql</span></a></p>
datatofu<p><a href="https://mastodon.social/tags/data_question" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>data_question</span></a></p><p>Check the `user_id` with between 1 and 3 instances in the following dataset.<br>```<br>table = [(7494212, 1535308430),<br> (7494212, 1535308433),<br> (1475185, 1535308444),<br> (6946725, 1535308475),<br> (6946725, 1535308476),<br> (6946725, 1535308477)]<br>```</p><p>Tags: <a href="https://mastodon.social/tags/ai" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ai</span></a> <a href="https://mastodon.social/tags/datascience" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>datascience</span></a> <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://mastodon.social/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a> <a href="https://mastodon.social/tags/rstats" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rstats</span></a> <a href="https://mastodon.social/tags/tech" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tech</span></a></p>
datatofu<p><a href="https://mastodon.social/tags/data_question" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>data_question</span></a></p><p>Write a function that takes strings as input and concatenates them with error handling.</p><p>tags: <a href="https://mastodon.social/tags/ai" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ai</span></a> <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://mastodon.social/tags/rstats" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rstats</span></a> <a href="https://mastodon.social/tags/datascience" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>datascience</span></a> <a href="https://mastodon.social/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a> <a href="https://mastodon.social/tags/tech" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tech</span></a></p>
datatofu<p><a href="https://mastodon.social/tags/data_question" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>data_question</span></a> </p><p>Write a function that adds an arbitrarily long sequence of numbers. </p><p>Tags: <a href="https://mastodon.social/tags/ai" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ai</span></a> <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://mastodon.social/tags/datascience" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>datascience</span></a> <a href="https://mastodon.social/tags/rstats" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rstats</span></a> <a href="https://mastodon.social/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a> <a href="https://mastodon.social/tags/tech" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tech</span></a></p>
datatofu<p><a href="https://mastodon.social/tags/data_question" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>data_question</span></a></p><p>Write a function that adds two numbers. </p><p>Tags: <a href="https://mastodon.social/tags/ai" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ai</span></a> <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> #<a href="https://mastodon.social/tags/rstats" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rstats</span></a> <a href="https://mastodon.social/tags/datascience" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>datascience</span></a> <a href="https://mastodon.social/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a> <a href="https://mastodon.social/tags/tech" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tech</span></a></p>
datatofu<p><a href="https://mastodon.social/tags/data_question" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>data_question</span></a></p><p>Convert the given sequence into a pandas series with an explicit index of a, b, c, d:<br>0.25, 0.5, 0.75, 1.0</p><p>tags: <a href="https://mastodon.social/tags/ai" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ai</span></a> <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://mastodon.social/tags/datascience" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>datascience</span></a> <a href="https://mastodon.social/tags/tech" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tech</span></a> <a href="https://mastodon.social/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a> <a href="https://mastodon.social/tags/rstats" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rstats</span></a></p>
Continued thread

#data_question
Use `normal` to generate normally distributed steps with some mean and standard deviation.

💡hint: edit your `steps` filter from the preceding question, with 5000 walks at 1000 steps each, to resemble this array
```
steps = np.random.normal(loc = 0, scale = 0.25, size = (nwalks, nsteps))
```