Jump to content
Fórum Script Brasil
  • 0

AJUDA input dentro de uma df


Question

Olá amigos, sou iniciante em Python. Queria Saber, como eu coloco esta "tabela_lida" através do input, dentro do meu x=df.query [+tabela_lida+]
 
import pandas as pd 
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline

df = pd.read_csv("https://www.dropbox.com/s/k3owtgaywmj66/fake-class-correl034763.csv?dl=1") 
tabela_lida = input("Digite uma das tabelas: ")										

(a, b) = np.polyfit(x=df.query[+tabela_lida+], y=df["Nota Final"], deg = 1)			
print(a,b)

 

Edited by Tadeu Sales
Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Cloud Computing


  • Forum Statistics

    • Total Topics
      149422
    • Total Posts
      645925
×
×
  • Create New...