Posts by Anderson Chaves • 141 points
14 posts
-
0
votes4
answers13845
viewsA: How to install the Pandas library in Python 3
Hello, If you already have python and Pip installed, do the following: python -m pip install pandas Another way is by using the Pip command directly: pip install pandas The two forms should work…
pandasanswered Anderson Chaves 141 -
0
votes1
answer100
viewsA: Sklearn - error in model training
As the sklearn documentation "working with textual data" found on this link, some feature extractors are easily available with the module to be used. A simple example is the CountVectorizer that…
sklearnanswered Anderson Chaves 141 -
5
votes1
answer140
viewsQ: What is the difference between a Warehouse date and a Lake date?
Considering the concepts of data Warehouse and of data Lake, what notable differences we can cite between them?
-
0
votes1
answer82
viewsQ: How do I write a tabular file in an instance of Azure Data Lake Store with the Python API?
Suppose I have an instance of Data Lake Store in my Azure inscription and I would like to create a Python script to write a tabular file with tab (CSV type or similar) in that instance. Without…
-
0
votes1
answer469
viewsQ: How to use the results and variables of one notebook Jupyter in another?
Suppose there is a Jupyter notebook called notebook1.ipynb where several variables are calculated with interesting results. Suppose, then, as part of another analysis in another notebook called…
ipython-notebookasked Anderson Chaves 141 -
0
votes1
answer469
viewsA: How to use the results and variables of one notebook Jupyter in another?
Jupyter owns a magic command called %run that allows you to call and execute another external code from inside the notebook that is running, thus keeping its results and variables. Ex: Being in the…
ipython-notebookanswered Anderson Chaves 141 -
1
votes1
answer1702
viewsA: How to copy a specific data frame line to another data frame
Hello, If you are trying to make a cutout of dataframe by indices, use df.iloc[linha, coluna]. The loc is used when you want to crop with a column name or a row value. To convert a pandas.Series in…
-
0
votes1
answer289
viewsA: Consultation in public database
If you see one dataframe as a table and as a Dictionary in Python you will notice that what you have as data, by what you have shown, is a set of tables, or a table of tables. So unless you want to…
-
1
votes1
answer4239
viewsA: How to remove special character and string column point from a data frame?
You can use the function apply() of objects of the type Series. With it you can apply any function that returns something. So, you can define a correction function and apply it. For example: def…
-
2
votes1
answer186
viewsA: Slice proportional to dataframe size
Use np.array_split() In [1]: import pandas as pd In [2]: df = pd.DataFrame({'A' : ['foo', 'bar', 'foo', 'bar', ...: 'foo', 'bar', 'foo', 'foo'], ...: 'B' : ['one', 'one', 'two', 'three', ...: 'two',…
-
1
votes1
answer576
viewsA: Filler
It seems to me that, from the description of your problem, that you are facing a predictive problem, and more precisely, it is the problem of fixing the incomplete values of a data set using the…
-
0
votes4
answers13845
viewsA: How to install the Pandas library in Python 3
In general, the command pip3 install pandas should work if you have the pip3 installed. To check you can also use the command which pip3 that should return the location where it is installed. If you…
pandasanswered Anderson Chaves 141 -
1
votes4
answers191
viewsA: Can you make one simpler than that?
Here’s the code you need. #include <stdio.h> int main(void) { int I = 3; int F = 10; while(I<F){ printf("%d, %d ", I, F); I++; F--; } return 0; } This should compute what you want. If you…
-
2
votes1
answer389
viewsA: Problem concatenating csv files
Based on pandas version 0.20.1, there is a function called pandas.DataFrame.drop_duplicates here in documentation that can help you. You can do so, for example: df1 = pd.DataFrame(data=[['1', '2'],…