<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Ask Ghassem - Recent questions in Programming</title>
<link>https://ask.ghassem.com/questions/programming</link>
<description>Powered by Question2Answer</description>
<item>
<title>Which code has best runtime and why?(the one commented or the other one)</title>
<link>https://ask.ghassem.com/1027/which-code-has-best-runtime-and-why-the-one-commented-the-other</link>
<description># for key, value in dict.items():&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;# &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if value &amp;gt;= long:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;# &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;long = value&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;# &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;long_name = key&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;# &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if value &amp;lt; short:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;# &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;short = value&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;# &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;short_name = key&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;long = max(dict.values())&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;long_name = max(dict, key=dict.get)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;short = min(dict.values())&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;short_name = min(dict, key=dict.get)</description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/1027/which-code-has-best-runtime-and-why-the-one-commented-the-other</guid>
<pubDate>Fri, 02 Sep 2022 14:39:49 +0000</pubDate>
</item>
<item>
<title>how to output f1-score instead of accuracy</title>
<link>https://ask.ghassem.com/1019/how-to-output-f1-score-instead-of-accuracy</link>
<description>&lt;p&gt;I have the code below, outputting the accuracy. How can I output the F1-score instead? Thanks in advance,&lt;/p&gt;

&lt;pre&gt;
&lt;code&gt; clf.fit(data_train,target_train)  
preds = clf.predict(data_test)  
# accuracy for the current fold only     
r2score = clf.score(data_test,target_test)&lt;/code&gt;&lt;/pre&gt;</description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/1019/how-to-output-f1-score-instead-of-accuracy</guid>
<pubDate>Sat, 02 Apr 2022 13:04:21 +0000</pubDate>
</item>
<item>
<title>I cannot get this code to work. please help.</title>
<link>https://ask.ghassem.com/1018/i-cannot-get-this-code-to-work-please-help</link>
<description>&lt;p&gt;from keras.models import Sequential&amp;nbsp;&lt;br&gt;
from keras.layers import Dense&amp;nbsp;&lt;br&gt;
from keras.layers import LSTM&amp;nbsp;&lt;br&gt;
from sklearn.model_selection import train_test_split&lt;/p&gt;

&lt;p&gt;model = Sequential()&amp;nbsp;&lt;br&gt;
model.add(LSTM( 10, input_shape=(1, 1)))&amp;nbsp;&lt;br&gt;
model.add(Dense(1, activation=&quot;linear&quot;))&amp;nbsp;&lt;br&gt;
model.compile(loss=&quot;mse&quot;, optimizer=&quot;adam&quot;)&lt;/p&gt;

&lt;p&gt;X, y = get_data()&lt;/p&gt;

&lt;p&gt;X_train, X_test, y_train, y_test = train_test_split(x, y, test_size=0.2, random_state=1)&lt;br&gt;
X_train_2, X_val, y_train_2, y_val = train_test_split(X_train, y_train, test_size=0.25, random_state=1)&lt;/p&gt;

&lt;p&gt;model.fit(X_train, y_train, epochs=800, validation_data=(X_val, y_val), shuffle=False)&lt;/p&gt;
html, body, table, thead, input, textarea, select {color: #bab5ab!important; background: #35393b;} input[type=&quot;text&quot;], textarea, select {color: #bab5ab!important; background: #35393b;} [data-darksite-inline-background-image-gradient] {background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5))!important; -webkit-background-size: cover!important; -moz-background-size: cover!important; -o-background-size: cover!important; background-size: cover!important;} [data-darksite-force-inline-background] * {background-color: rgba(0,0,0,0.7)!important;} [data-darksite-inline-background] {background-color: rgba(0,0,0,0.7)!important;} [data-darksite-inline-color] {color: #fff!important;} [data-darksite-inline-background-image] {background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3))!important}
</description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/1018/i-cannot-get-this-code-to-work-please-help</guid>
<pubDate>Mon, 21 Mar 2022 05:59:53 +0000</pubDate>
</item>
<item>
<title>Looking for program to graph a network with 2 clusters.</title>
<link>https://ask.ghassem.com/918/looking-for-program-to-graph-a-network-with-2-clusters</link>
<description>&lt;p&gt;I&#039;m a PhD student using qualitative content analysis to look at a number of documents to identify a norm cluster. The structure of the norms I&#039;m trying to look at is that &quot;ideations&quot; link to &quot;behaviors&quot;. I&#039;ve coded the documents so that I know I have a spreadsheet with the coded behaviors in rows and the ideations in columns. The number in a cell then shows the overlap between a behavior and an ideation.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;I&#039;m looking for a program&amp;nbsp;that would allow me to graphically portray this so that the ideations appear as bubbles clustered together, size dependent upon the number of times they were coded, with all behaviors clustered together in the same way and lines (size dependent on the strength of the connection) connecting the two. A simple example of this can be found on page 28 of &lt;a rel=&quot;nofollow&quot; href=&quot;https://minerva-access.unimelb.edu.au/bitstream/handle/11343/214510/EJIR%20Norm%20structure%20and%20evolution%20for%20Minerva.pdf?sequence=1&amp;amp;isAllowed=y&quot;&gt;this&lt;/a&gt;&amp;nbsp;(problem is constant in my question).&lt;/p&gt;

&lt;p&gt;Thanks in advance for any answers.&lt;/p&gt;</description>
<category>Programming</category>
<guid isPermaLink="true">https://ask.ghassem.com/918/looking-for-program-to-graph-a-network-with-2-clusters</guid>
<pubDate>Fri, 28 Aug 2020 09:46:16 +0000</pubDate>
</item>
<item>
<title>How to print confusion matrix if I am using stratifiedkfold method?</title>
<link>https://ask.ghassem.com/894/how-to-print-confusion-matrix-using-stratifiedkfold-method</link>
<description></description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/894/how-to-print-confusion-matrix-using-stratifiedkfold-method</guid>
<pubDate>Thu, 06 Aug 2020 21:41:19 +0000</pubDate>
</item>
<item>
<title>I am facing the error after importing torch module in python. How can I solve it? The error link is given below</title>
<link>https://ask.ghassem.com/893/facing-error-after-importing-torch-module-python-solve-error</link>
<description>&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;https://ibb.co/MgXvrkL&quot;&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://ibb.co/MgXvrkL&quot;&gt;https://ibb.co/MgXvrkL&lt;/a&gt;&lt;/p&gt;</description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/893/facing-error-after-importing-torch-module-python-solve-error</guid>
<pubDate>Fri, 31 Jul 2020 14:56:42 +0000</pubDate>
</item>
<item>
<title>How to split into train and test using PKL file?</title>
<link>https://ask.ghassem.com/892/how-to-split-into-train-and-test-using-pkl-file</link>
<description></description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/892/how-to-split-into-train-and-test-using-pkl-file</guid>
<pubDate>Thu, 30 Jul 2020 22:08:47 +0000</pubDate>
</item>
<item>
<title>Suggestion For Model</title>
<link>https://ask.ghassem.com/890/suggestion-for-model</link>
<description></description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/890/suggestion-for-model</guid>
<pubDate>Sun, 19 Jul 2020 19:49:48 +0000</pubDate>
</item>
<item>
<title>How to create def for cross_val_score related to linear regression problem?</title>
<link>https://ask.ghassem.com/674/create-crossvalscore-related-linear-regression-problem</link>
<description>&lt;pre class=&quot;prettyprint lang-python&quot; data-pbcklang=&quot;python&quot; data-pbcktabsize=&quot;4&quot;&gt;
def cross_val_score(estimator,X,y,scoring,cv):
&amp;nbsp; &amp;nbsp; scores=cross_val_score
&amp;nbsp; &amp;nbsp; scores_rmse=np.sqrt(-scores)
&amp;nbsp; &amp;nbsp; print(&#039;Scores: &#039;,scores_rmse)
&amp;nbsp; &amp;nbsp; print(&quot;Mean:&quot;, scores_rmse.mean())
&amp;nbsp; &amp;nbsp; print(&quot;Standard deviation:&quot;, scores_rmse.std())&lt;/pre&gt;

&lt;p&gt;This is the def I created and passed to below&lt;/p&gt;

&lt;pre class=&quot;prettyprint lang-python&quot; data-pbcklang=&quot;python&quot; data-pbcktabsize=&quot;4&quot;&gt;
cross_val_score(SGDRegressor,X_train,y_train,scoring=&#039;neg_mean_squared_error&#039;,cv=5) &lt;/pre&gt;

&lt;p&gt;I am getting below error...&lt;/p&gt;

&lt;pre class=&quot;prettyprint lang-python&quot; data-pbcklang=&quot;python&quot; data-pbcktabsize=&quot;4&quot;&gt;
ValueError                                Traceback (most recent call last)
&amp;lt;ipython-input-181-275d240df219&amp;gt; in &amp;lt;module&amp;gt;()
----&amp;gt; 1 plot_validation_curve(lin_reg_SGD,X_train,y_train,&#039;alpha&#039;, [0.001,0.01],scoring=&#039;neg_mean_squared_error&#039;,cv=5)
3 frames

/usr/local/lib/python3.6/dist-packages/sklearn/utils/validation.py in check_consistent_length(*arrays)
    203     if len(uniques) &amp;gt; 1:
    204         raise ValueError(&quot;Found input variables with inconsistent numbers of&quot;
--&amp;gt; 205                          &quot; samples: %r&quot; % [int(l) for l in lengths])
    206 
    207 

ValueError: Found input variables with inconsistent numbers of samples: [13903, 13903, 22]
SEARCH STACK OVERFLOW&lt;/pre&gt;


</description>
<category>Programming</category>
<guid isPermaLink="true">https://ask.ghassem.com/674/create-crossvalscore-related-linear-regression-problem</guid>
<pubDate>Wed, 03 Jul 2019 13:37:35 +0000</pubDate>
</item>
<item>
<title>What are some best features of Python3 in comparison to Python2?</title>
<link>https://ask.ghassem.com/636/what-are-some-best-features-of-python3-in-comparison-python2</link>
<description>Python3 and Python2 seems so similar, and the only changes which are obvious are some changes in functions such as print that now needs parentheses. Are there other improvements?</description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/636/what-are-some-best-features-of-python3-in-comparison-python2</guid>
<pubDate>Mon, 20 May 2019 16:11:31 +0000</pubDate>
</item>
<item>
<title>How to convert equations in documents to LaTeX?</title>
<link>https://ask.ghassem.com/614/how-to-convert-equations-in-documents-to-latex</link>
<description>In Wikipedia, or any other document there are some math equations I am looking a simple way to convert to LaTeX. Is there any easy way for it?</description>
<category>LaTeX</category>
<guid isPermaLink="true">https://ask.ghassem.com/614/how-to-convert-equations-in-documents-to-latex</guid>
<pubDate>Sat, 13 Apr 2019 00:51:10 +0000</pubDate>
</item>
<item>
<title>Who can write a recursive Python program for Fibonacci sequence 0,1,1,2,3,5,8,...?</title>
<link>https://ask.ghassem.com/583/who-can-write-recursive-python-program-fibonacci-sequence</link>
<description>Please also check if the fibo(7) = 8</description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/583/who-can-write-recursive-python-program-fibonacci-sequence</guid>
<pubDate>Fri, 15 Mar 2019 20:33:17 +0000</pubDate>
</item>
<item>
<title>How to use Watson Assistant V2 in my nodejs code?</title>
<link>https://ask.ghassem.com/570/how-to-use-watson-assistant-v2-in-my-nodejs-code</link>
<description>&lt;p&gt;I wanted to use Watson Assistant V2 in my following nodejs code, but it cannot be found and gave me error.&lt;/p&gt;

&lt;pre class=&quot;prettyprint lang-java&quot; data-pbcklang=&quot;java&quot; data-pbcktabsize=&quot;4&quot;&gt;
var AssistantV2 = require(&#039;watson-developer-cloud/assistant/v2&#039;); // Watson SDK&lt;/pre&gt;

&lt;p&gt;What should I do?&lt;/p&gt;</description>
<category>Javascript</category>
<guid isPermaLink="true">https://ask.ghassem.com/570/how-to-use-watson-assistant-v2-in-my-nodejs-code</guid>
<pubDate>Sun, 24 Feb 2019 01:53:25 +0000</pubDate>
</item>
<item>
<title>What are Decorators?</title>
<link>https://ask.ghassem.com/472/what-are-decorators</link>
<description></description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/472/what-are-decorators</guid>
<pubDate>Mon, 29 Oct 2018 22:59:50 +0000</pubDate>
</item>
<item>
<title>What is a Magic class methods ?</title>
<link>https://ask.ghassem.com/470/what-is-a-magic-class-methods</link>
<description></description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/470/what-is-a-magic-class-methods</guid>
<pubDate>Mon, 29 Oct 2018 22:57:15 +0000</pubDate>
</item>
<item>
<title>If s=&#039;Sammy&#039; what is the output of s[2:]?</title>
<link>https://ask.ghassem.com/469/if-s-sammy-what-is-the-output-of-s-2</link>
<description></description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/469/if-s-sammy-what-is-the-output-of-s-2</guid>
<pubDate>Mon, 29 Oct 2018 22:54:58 +0000</pubDate>
</item>
<item>
<title>How do I create comments in my code?</title>
<link>https://ask.ghassem.com/467/how-do-i-create-comments-in-my-code</link>
<description></description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/467/how-do-i-create-comments-in-my-code</guid>
<pubDate>Mon, 29 Oct 2018 22:45:18 +0000</pubDate>
</item>
<item>
<title>Hey, anyone knows how to save workspace in jupyter python? I would like to save the variables and functions, etc.</title>
<link>https://ask.ghassem.com/441/anyone-knows-workspace-jupyter-python-variables-functions</link>
<description></description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/441/anyone-knows-workspace-jupyter-python-variables-functions</guid>
<pubDate>Wed, 24 Oct 2018 13:53:22 +0000</pubDate>
</item>
<item>
<title>ploting the xticks to be datatime</title>
<link>https://ask.ghassem.com/432/ploting-the-xticks-to-be-datatime</link>
<description>&lt;p&gt;I have a dataframe&amp;nbsp;like below&lt;/p&gt;

&lt;pre class=&quot;prettyprint lang-python&quot; data-pbcklang=&quot;python&quot; data-pbcktabsize=&quot;4&quot;&gt;
                    MT_001	    MT_002	    hour
2012-01-01 00:15:00	3.807107	22.759602	00:15:00
2012-01-01 00:30:00	5.076142	22.759602	00:30:00
2012-01-01 00:45:00	3.807107	22.759602	00:45:00
2012-01-01 01:00:00	3.807107	22.759602	01:00:00
2012-01-01 01:15:00	5.076142	22.048364	01:15:00&lt;/pre&gt;

&lt;p&gt;I can easily plot it using&lt;/p&gt;

&lt;pre class=&quot;prettyprint lang-python&quot; data-pbcklang=&quot;python&quot; data-pbcktabsize=&quot;4&quot;&gt;
data.plot()
plt.show()&lt;/pre&gt;

&lt;p&gt;However, this doesn&#039;t show the xlabel. What if i want to see the graph where the xlabel&amp;nbsp;shows the ticks&amp;nbsp;with 4 hours apart?&lt;/p&gt;</description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/432/ploting-the-xticks-to-be-datatime</guid>
<pubDate>Sat, 20 Oct 2018 00:47:40 +0000</pubDate>
</item>
<item>
<title>How can you tell a Python library is a good one and useful?</title>
<link>https://ask.ghassem.com/425/how-can-you-tell-a-python-library-is-a-good-one-and-useful</link>
<description>If a big company such as Google behind it, with high probability it is a great library such as TensorFlow. But in general how can I found out?</description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/425/how-can-you-tell-a-python-library-is-a-good-one-and-useful</guid>
<pubDate>Fri, 19 Oct 2018 03:46:23 +0000</pubDate>
</item>
<item>
<title>In a dataframe of a size (5,10) with random values, how to have exactly 5 NAN values in each row?</title>
<link>https://ask.ghassem.com/420/dataframe-size-with-random-values-have-exactly-values-each</link>
<description></description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/420/dataframe-size-with-random-values-have-exactly-values-each</guid>
<pubDate>Wed, 17 Oct 2018 16:49:07 +0000</pubDate>
</item>
<item>
<title>plotting categorical radio</title>
<link>https://ask.ghassem.com/414/plotting-categorical-radio</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I am trying to gain insight of the data but having hard time plotting it.&lt;/p&gt;

&lt;p&gt;Suppose I have a data frame like below&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;1&quot; style=&quot;width:500px&quot;&gt;
	&lt;thead&gt;
		&lt;tr&gt;
			&lt;th scope=&quot;col&quot;&gt;ID&lt;/th&gt;
			&lt;th scope=&quot;col&quot;&gt;Feature 1&lt;/th&gt;
			&lt;th scope=&quot;col&quot;&gt;Class&lt;/th&gt;
		&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td&gt;1&lt;/td&gt;
			&lt;td&gt;a&lt;/td&gt;
			&lt;td&gt;good&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;2&lt;/td&gt;
			&lt;td&gt;a&lt;/td&gt;
			&lt;td&gt;good&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;3&lt;/td&gt;
			&lt;td&gt;b&lt;/td&gt;
			&lt;td&gt;good&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;4&lt;/td&gt;
			&lt;td&gt;b&lt;/td&gt;
			&lt;td&gt;bad&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;5&lt;/td&gt;
			&lt;td&gt;a&lt;/td&gt;
			&lt;td&gt;bad&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;6&lt;/td&gt;
			&lt;td&gt;a&lt;/td&gt;
			&lt;td&gt;bad&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;7&lt;/td&gt;
			&lt;td&gt;b&lt;/td&gt;
			&lt;td&gt;bad&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;In the above dataframe&amp;nbsp;I have one feature &quot;a&quot; and &quot;b&quot; each has a good and bad class value.&lt;/p&gt;

&lt;p&gt;for e.g&lt;/p&gt;

&lt;p&gt;feature &quot;a&quot; has 2 good and 2 bad classes&amp;nbsp;&lt;/p&gt;

&lt;p&gt;feature &quot;b&quot; has 1 good and 2 bad classes&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;How do i visualize this and plot it in python ?&lt;/li&gt;
	&lt;li&gt;How would I do it for more than one features in different subplots?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Sorry if this question seems like a very basic question to ask&amp;nbsp;&lt;/p&gt;</description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/414/plotting-categorical-radio</guid>
<pubDate>Wed, 17 Oct 2018 02:25:36 +0000</pubDate>
</item>
<item>
<title>My own transformation for dropping feature doesn&#039;t work</title>
<link>https://ask.ghassem.com/413/my-own-transformation-for-dropping-feature-doesnt-work</link>
<description>&lt;p&gt;I made my own transformation to drop some of the features not required in the dataframe but I can&#039;t seem to get it working. Thoughts ?&lt;/p&gt;

&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://repl.it/@Neo_sauga/HarmfulNearApplicationstack&quot;&gt;https://repl.it/@Neo_sauga/HarmfulNearApplicationstack&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/413/my-own-transformation-for-dropping-feature-doesnt-work</guid>
<pubDate>Wed, 17 Oct 2018 00:52:29 +0000</pubDate>
</item>
<item>
<title>How to fetch the data from a url using Python?</title>
<link>https://ask.ghassem.com/399/how-to-fetch-the-data-from-a-url-using-python</link>
<description>&lt;p&gt;I am not sure why my below code is not working any thoughts ?&lt;/p&gt;

&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://repl.it/@Neo_sauga/UnselfishFatBrains&quot;&gt;https://repl.it/@Neo_sauga/UnselfishFatBrains&lt;/a&gt;&lt;/p&gt;</description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/399/how-to-fetch-the-data-from-a-url-using-python</guid>
<pubDate>Mon, 15 Oct 2018 20:19:08 +0000</pubDate>
</item>
<item>
<title>How to force Jupyter Notebook to print all the variables in each cell, not just the last one?</title>
<link>https://ask.ghassem.com/316/force-jupyter-notebook-print-variables-each-cell-just-last</link>
<description></description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/316/force-jupyter-notebook-print-variables-each-cell-just-last</guid>
<pubDate>Thu, 11 Oct 2018 23:13:47 +0000</pubDate>
</item>
<item>
<title>How to update &quot;conda&quot; version itself?</title>
<link>https://ask.ghassem.com/313/how-to-update-conda-version-itself</link>
<description>&lt;p&gt;I can update all the libraries and&amp;nbsp;packages on Anaconda using the following command:&lt;/p&gt;

&lt;pre class=&quot;prettyprint lang-python&quot; data-pbcklang=&quot;python&quot; data-pbcktabsize=&quot;4&quot;&gt;
conda update --all&amp;nbsp;&lt;/pre&gt;

&lt;p&gt;But it does not update &lt;strong&gt;conda&lt;/strong&gt;&amp;nbsp;itself. Is there any special command for it?&lt;/p&gt;</description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/313/how-to-update-conda-version-itself</guid>
<pubDate>Wed, 10 Oct 2018 16:55:17 +0000</pubDate>
</item>
<item>
<title>Please provide information about Certificate in Data Science at School of Continuing Studies, University of Toronto</title>
<link>https://ask.ghassem.com/287/provide-information-certificate-science-continuing-university</link>
<description>I really appreciate you providing some details about data science certificate at UofT SCS, and enrollment dates.</description>
<category>Programming</category>
<guid isPermaLink="true">https://ask.ghassem.com/287/provide-information-certificate-science-continuing-university</guid>
<pubDate>Sun, 07 Oct 2018 11:56:15 +0000</pubDate>
</item>
<item>
<title>Could you please introduce resources for learning more about Git and GitHub?</title>
<link>https://ask.ghassem.com/286/could-please-introduce-resources-learning-more-about-github</link>
<description>Could you please introduce a good yet concise source/website to learn more about Git and Github?</description>
<category>Programming</category>
<guid isPermaLink="true">https://ask.ghassem.com/286/could-please-introduce-resources-learning-more-about-github</guid>
<pubDate>Sun, 07 Oct 2018 11:51:22 +0000</pubDate>
</item>
<item>
<title>Can you share with us how to download ipynb file as pdf through latex?</title>
<link>https://ask.ghassem.com/250/can-you-share-with-how-download-ipynb-file-pdf-through-latex</link>
<description></description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/250/can-you-share-with-how-download-ipynb-file-pdf-through-latex</guid>
<pubDate>Wed, 03 Oct 2018 00:47:10 +0000</pubDate>
</item>
<item>
<title>Access denied while updating Anaconda?</title>
<link>https://ask.ghassem.com/198/access-denied-while-updating-anaconda</link>
<description>&lt;p&gt;I am trying to update the Anaconda through cmd terminal but I am getting an error message of Access is denied. Although I am updating it through Admin account only. What should be the next steps to be done?&lt;/p&gt;

&lt;p&gt;&lt;img alt=&quot;&quot; height=&quot;728&quot; src=&quot;https://i.imgur.com/mOg9Bcg.png&quot; width=&quot;1366&quot;&gt;&lt;/p&gt;</description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/198/access-denied-while-updating-anaconda</guid>
<pubDate>Sun, 30 Sep 2018 02:04:14 +0000</pubDate>
</item>
<item>
<title>What is the difference between single quotation (&#039; &#039;) and double (&quot;&quot;) quotation in Python?</title>
<link>https://ask.ghassem.com/171/difference-between-single-quotation-double-quotation-python</link>
<description>Is there any big difference between ingle quotation (&amp;#039; &amp;#039;) and double (&amp;quot;&amp;quot;) quotation in Python?</description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/171/difference-between-single-quotation-double-quotation-python</guid>
<pubDate>Fri, 28 Sep 2018 14:30:42 +0000</pubDate>
</item>
<item>
<title>What do L1-norm and L2-norm mean as it applies to Norm?</title>
<link>https://ask.ghassem.com/149/what-do-l1-norm-and-l2-norm-mean-as-it-applies-to-norm</link>
<description>&lt;p&gt;How do I use the information provided in &lt;a rel=&quot;nofollow&quot; href=&quot;https://en.wikipedia.org/wiki/Norm_(mathematics)&quot;&gt;this link&lt;/a&gt;&amp;nbsp;to apply in defining a L1-norm and L2-norm function in python?&lt;/p&gt;</description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/149/what-do-l1-norm-and-l2-norm-mean-as-it-applies-to-norm</guid>
<pubDate>Tue, 25 Sep 2018 16:02:31 +0000</pubDate>
</item>
<item>
<title>Can someone please post the video tutorial for Pandas, Numpy and Matplotlib ?</title>
<link>https://ask.ghassem.com/69/someone-please-post-video-tutorial-pandas-numpy-matplotlib</link>
<description>Hello,&lt;br /&gt;
&lt;br /&gt;
If someone can post the video tutorial for Pandas, Numpy and Matplotlib. I would appreciate it. I know that Lynda.com has those videos but I still have to get my Library card.&lt;br /&gt;
&lt;br /&gt;
Thanks,</description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/69/someone-please-post-video-tutorial-pandas-numpy-matplotlib</guid>
<pubDate>Wed, 19 Sep 2018 13:20:32 +0000</pubDate>
</item>
<item>
<title>Can someone please post instructions on how to install Anaconda?</title>
<link>https://ask.ghassem.com/68/can-someone-please-post-instructions-how-install-anaconda</link>
<description>Can someone please provide detail instructions on how to install Anaconda and how to use Jupyter notebook with it ?</description>
<category>Programming</category>
<guid isPermaLink="true">https://ask.ghassem.com/68/can-someone-please-post-instructions-how-install-anaconda</guid>
<pubDate>Wed, 19 Sep 2018 13:14:19 +0000</pubDate>
</item>
<item>
<title>What are the best tools and resources for learning programming?</title>
<link>https://ask.ghassem.com/8/what-are-the-best-tools-and-resources-learning-programming</link>
<description>I am wondering if anyone can suggest the best resources and tools for learning programming?</description>
<category>Programming</category>
<guid isPermaLink="true">https://ask.ghassem.com/8/what-are-the-best-tools-and-resources-learning-programming</guid>
<pubDate>Sun, 26 Aug 2018 08:10:32 +0000</pubDate>
</item>
<item>
<title>What are the best resources for studying SQL?</title>
<link>https://ask.ghassem.com/7/what-are-the-best-resources-for-studying-sql</link>
<description>I am wondering if anyone can suggest the best resources for studying SQL?</description>
<category>SQL</category>
<guid isPermaLink="true">https://ask.ghassem.com/7/what-are-the-best-resources-for-studying-sql</guid>
<pubDate>Sun, 26 Aug 2018 07:58:51 +0000</pubDate>
</item>
<item>
<title>What are the best resources for studying R?</title>
<link>https://ask.ghassem.com/6/what-are-the-best-resources-for-studying-r</link>
<description>I am wondering if anyone can suggest the best resources for studying R?</description>
<category>R</category>
<guid isPermaLink="true">https://ask.ghassem.com/6/what-are-the-best-resources-for-studying-r</guid>
<pubDate>Sun, 26 Aug 2018 07:58:02 +0000</pubDate>
</item>
<item>
<title>What are the best resources for studying Python?</title>
<link>https://ask.ghassem.com/5/what-are-the-best-resources-for-studying-python</link>
<description>What are the best resources for studying Python?</description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/5/what-are-the-best-resources-for-studying-python</guid>
<pubDate>Sun, 26 Aug 2018 07:57:03 +0000</pubDate>
</item>
</channel>
</rss>