data-science

Controlling matplotlib plot interval, 100% RAM usage problem

Hello Stackoverflow community:) I am developing a small code that plots the graph from 2 lists filled from an equation as l ... 001 print (energias) print (wavelenghts) plt.plot (energias, wavelenghts, color='blue', marker = 'o', linestyle = 'solid')

Separate bar chart-python [colab]

People How do I make the bars of income and expenses separate and not overlapped on the chart? Thank you for being able to he ... alores['gastos'], label = 'Gastos', color = 'red') #plotando gastos plt.title('Fluxo de caixa') plt.legend() plt.plot()

Why should we scale/standardize values of variables and how to reverse this transformation?

When working with prediction algorithms that use multivariates I came across the function scale of the R, which whose purpose ... s make a difference for example in the accuracy of my algorithm's prediction model? And how can I reverse the transformation?

Calculating the average and weighted average with For

Why am I having the error File"", line 50 print ("this is the value of the sum of the products between the samples and ... álise da média ponderada", Nponderadai) print ("Esta é a média ponderada do conjunto de dados": PiXi/Nponderadai)

KeyError: '> R ' in Google Python Colab

I copied the following code from a data visualization tutorial in Python, but it doesn't perform properly, warning KeyError a ... k in range(len(entrada)-1): ---> 15 cont[entrada[k]+entrada[k+1]] += 1 16 17 # html KeyError: '>R'

How to open a file.sql not pandas?

I intend to make a dataframe of a database that I imported from pgadmin4 as a 'vialactea' file.sql ' when I try to run pandas ... ----> 1 vialactea = pandas.read_sql('vialactea.sql') NameError: read_sql() missing 1 required positional argument: 'con'

How to read an excel table in pandas by skipping the first lines, without losing information?

Hello, I have a problem to solve a little complicated, I have several xls tables in which I have to withdraw some data, these ... to turn around, if I should clean the data or if I can treat them like this, thank you very much to anyone willing to help.

How does the train test split method work in Scikit Learn?

I am learning machine learning and in most examples the method train_test_split() is used and there is not a very precise exp ... he return variables train and test? is used only for productivity or there is an increase on the accuracy rate of training?

What is intelligent digital mesh (Digital Mesh)?

Simply and objectively, what would be this term that many say is a trend in the area of Information Technology?

How to plot or overlay graphs of a function with two variables using matplotlib?

I am having difficulty finding the correct graph in my plot, I am modeling two equations of physics of two variables, I belie ... with the Code And this was the expected result for spectral densities as a function of wavelength would be that ->

How to generate a horizontal multiple chart using python

Good afternoon, I'm doing a job for college where I need to generate a multiple chart in horizontal bars. I am using the foll ... ple of the chart generated in excel: Follows dataframe I'm using: Since now I appreciate the answers, very much thank you!