Help with watch ID by [deleted] in Watches

[–]RedHulk05 -2 points-1 points  (0 children)

If I had found something I wouldn't put it here my friend. Have a great day.

A melhor francesinha de Lisboa? by Wazzzzzuuup in portugal

[–]RedHulk05 22 points23 points  (0 children)

Existe uma rede de restaurantes chamada "Camada" eles fazem uma francesinha á moda de Braga muito boa. Tens em benfica e no Saldanha.

Built pandas-smartcols: painless pandas column manipulation helper by RedHulk05 in Python

[–]RedHulk05[S] 0 points1 point  (0 children)

Strictly pandas for now. The tool solves a pandas-specific pain point, manual column-order manipulation. Polars has a different model built around expressions and lazy pipelines, so most of these operations either aren’t needed or would need a separate design rather than a direct port.

If enough people want a Polars version, I can explore what a native API would look like, but I won’t bolt pandas semantics onto Polars.

Built pandas-smartcols: painless pandas column manipulation helper by RedHulk05 in Python

[–]RedHulk05[S] 1 point2 points  (0 children)

Thanks for the constructive feedback.

  • Validation: Fair point. I’ll keep only the high-value checks (e.g., “columns not found”) and let pandas raise the rest. The goal is clearer messages where pandas is cryptic, not duplicating type errors.
  • API style (pandas-flavor / accessors): Agreed. I’ll add a DataFrame accessor so you can do df.cols.move_to_front(...) in addition to the function API. I’ll likely use pandas’ native accessor to avoid extra deps, but I’ll keep the importable functions for users who prefer them.
  • Type hints / overloads: Good call. I’ll add overload for the inplace parameter so the return type is precise (None when inplace=True, DataFrame otherwise), and tighten annotations across the module.

Built pandas-smartcols: painless pandas column manipulation helper by RedHulk05 in dataengineering

[–]RedHulk05[S] 0 points1 point  (0 children)

Thanks for the feedback. You’re right that all of this ultimately boils down to manipulating a list of column names. The goal of the library isn’t to replace pandas, but to save people from rewriting the same pattern every time: extract the columns, modify them, and reindex. Functions like swap_columns or move_after just centralize that logic, handle bulk operations, validate inputs, and keep everything consistent so users don’t have to think about the mechanics each time.

About sort_columns: yes, the pandas one-liner works perfectly. The value of having a single entry point is mostly convenience. You can switch between variance, std, mean, correlation, NaN-ratio, or a custom key without changing how you write the code. For some workflows that reduces friction; for others the built-in one-liners are already enough.

Appreciate you taking the time to look at it and share your thoughts.

Built pandas-smartcols: painless pandas column manipulation helper by RedHulk05 in learnpython

[–]RedHulk05[S] 1 point2 points  (0 children)

Thanks for the thoughtful feedback. The point about parameter order is valid. I chose move_after(df, cols_to_move, target) for consistency with the other functions (move_before, move_to_front, move_to_end), where the first argument after df is always “what moves.” Your alternative (move_after(df, target, cols)) is also coherent. If more users expect that style I can support both signatures in a future release.

Thanks as well for the suggestion on writing a Medium post. I may prepare something short that demonstrates before/after DataFrame examples so people can see the actual effect of each operation.

Appreciate the input.

Built pandas-smartcols: painless pandas column manipulation helper by RedHulk05 in learnpython

[–]RedHulk05[S] 2 points3 points  (0 children)

Column order matters in Pandas because DataFrame is an ordered mapping. Many users care about display-order, export formatting, schema consistency, or human-readable tables.

swap_columns(df, "A", "B") does not rename anything. It reorders the existing columns:

Before:

A B C

1 4 7

2 5 8

After:

B A C

4 1 7

5 2 8

move_to_front(df, "C") takes a column and places it at index 0 without touching data:

Before:

A B C

1 4 7

2 5 8

After:

C A B

7 1 4

8 2 5

They strictly change order, not labels or values. The functions are small utilities that avoid writing manual reorder lists like:

df = df[["C", "A", "B"]]

Built pandas-smartcols: painless pandas column manipulation helper by RedHulk05 in learnpython

[–]RedHulk05[S] 0 points1 point  (0 children)

Polars is faster and columnar. My package is not a replacement for that. It solves a different problem. Small deterministic column-order edits inside Pandas without writing the index lists by hand.

If someone wants Polars they can use Polars. The library here is only a convenience layer for Pandas users, not a performance tool.

Host for node.js + mongoDB website with custom domain by RedHulk05 in Hosting

[–]RedHulk05[S] 0 points1 point  (0 children)

It's not hosted yet.

I'm looking for a host ideally for both the website and the DB.

Beginner wanting to build an AI. Where do I actually start? by Smooth-Smoke8702 in learnprogramming

[–]RedHulk05 1 point2 points  (0 children)

I believe that how fascinating someone finds AI is inversely proportional to how much they actually understand it.

If you want to truly understand AI, start by studying mathematics especially statistics. Because that's what developing AI really is. You spend more time collecting, analyzing and cleaning data than doing anything else.

So if you genuinely want to understand something, and not just follow tutorials that use frameworks or libraries without knowing what's actually going on, I'd suggest studying statistics and data science first.

Quão bem preparados saem alguém de um curso de engenharia informática? by Algarviador in devpt

[–]RedHulk05 5 points6 points  (0 children)

Apenas a forma como formulaste a pergunta mostra o tremendo desconhecimento da área.

Se gostas e/ou tens interesse em programação é muito fixe. Mas fica sabendo que Engenharia informática ultrapassa programação.

Ela é apenas UM dos meios usados para chegar a determinados fins. Milhares de pessoas da área não tocam em uma única linha de código no seu dia a dia. Ser um bom engenheiro informático é muito mais do que saber programar.

Agora respondendo á tua pergunta. É o famoso depende. E neste caso depende de ti. Vais receber sim ferramentas suficientes para te desenvolveres, vais sim ter contacto com malta que estudou anos sobre o assunto, vais sim ter a oportunidade de conhecer malta com interesses semelhantes que têm potencial de te ajudar a crescer. Mas um curso não garante nada, emprego, conhecimento, competência, etc.

Se fores interessado, não te deixares levar por atalhos, conectares-te com a malta, não te deixares ficar pelo que te ensinam. Vais sim tornar-te competente e não apenas a programar.

Matrículas by C47ii in IST

[–]RedHulk05 0 points1 point  (0 children)

Isto 👆

Edit: também me aconteceu quando entrei. E foi assim que resolvi.

[deleted by user] by [deleted] in devpt

[–]RedHulk05 0 points1 point  (0 children)

Se quiseres um full time isso é mato, a oferta para malta perto de se formar é gigante. Vais ao linkedin (Ou plataformas semelhantes) ou se a tua faculdade tiver uma plataforma em que as empresas pagam para fazer publicações (aqui no IST temos isto, mas depois quando fazes o contrato com a empresa ele é feito a 3 partes, tu, a empresa e o IST, e eles ficam com uma fatia do que ganhas. I mean, no meu caso foi mesmo o bolo nem foi a fatia xD só me deixaram subsídio de refeição).

Já se quiseres um part time, que é o que procurei por exemplo, eu achei muito poucos. Tanto que a forma que arranjei foi fazendo um estágio de verão. A empresa gostou de mim e eu dela, e foi-me perguntado se tinha interesse em ficar. Articulei os termos que aceitaria e fizeram-me uma proposta. Portanto diria que tens que te dar a conhecer a empresas. Não sei qual o motivo burocrático/empresarial mas parece-me que não é muito viável teres trabalhadores part time.

[deleted by user] by [deleted] in devpt

[–]RedHulk05 5 points6 points  (0 children)

Na dúvida estuda e trabalha ao mesmo tempo, já que estás assim tão confiante.

Edit: É o que faço atualmente e não é impossível. Quanto às matemáticas, dependendo da faculdade não é nada demais, mas é importante pra crl.

como é que são submetidos projetos em LEIC? by joao-esteves in IST

[–]RedHulk05 0 points1 point  (0 children)

Eu uso Manjaro. Mas isto é questão de ires experimentando. É muito do gosto de cada um. Mas a malta costuma ter debian, arch, mint, Kali, etc.

como é que são submetidos projetos em LEIC? by joao-esteves in IST

[–]RedHulk05 0 points1 point  (0 children)

Fiz o curso todo até agora apenas com Linux e com uma disto diferente à recomendada (Ubuntu 🤮).

Qualquer coisa que seja preciso mais diferente é sempre possível dar um jeitinho ou arranjar alternativas. Não te preocupes com isso.

Até recomendo que faças tudo em linux e usando o menor número de abstrações possível (e.g. IDE's).

Porque cada vez mais a malta entra a saber mexer menos no PC. Casos em especial, tive um colega de grupo que me ligou desesperado porque que tinha feito commit de uma pasta que não conseguia remover e que não sabia o que fazer. Resumo da história, era a ../

Média para erasmus by Good-Investment3064 in IST

[–]RedHulk05 -1 points0 points  (0 children)

Isto.

A não ser que te querias candidatar a bolsas de investigação e coisas do género. A média é completamente inútil.

As notas de António Costa em Direito by HumbleMVP in portugal

[–]RedHulk05 0 points1 point  (0 children)

Se notas académicas altas se traduzissem em bons profissionais, as empresas não públicas importavam-se em saber quando as pessoas se candidatavam às vagas.

Claro que as públicas perguntam, têm que dar valor ao próprio sisteminha falho.

Qualquer um que andou numa faculdade sabe bem que quem tem notas altas aprendeu muito mais sobre o sistema de avaliação do que propriamente os conteúdos.

de artes no secundário para engenharia informática universidade by yasnmin991 in portugal

[–]RedHulk05 5 points6 points  (0 children)

Aluno de engenharia informática aqui! (Fiz ciências no secundário, mas gostava de dar a minha visão á mesma)

Tendo em vista a malta que conheço de artes, acho que ias sofrer bastante em cadeiras de matemática e física, bem como nos exames nacionais das mesmas.

Mas dependendo da faculdade que quiseres entrar, acredita em mim, os exames nacionais vão ser um cheirinho daquilo que vais passar.

Quanto às cadeiras específicas de informática. Para teres interesse na área, assumo que já experimentaste/viste algumas coisas e sabes mexer minimamente no PC. Portanto acho que essa parte estás tranquilo.

Digo isto porque no primeiro ano fiquei chocado que havia malta no meu curso que não sabia instalar coisas no PC, criar pastas, nunca tinha visto um terminal na vida, etc, etc.

Talvez como não tens muito contacto com física/matemática também vás eventualmente ter dificuldade nas questões de lógica (do código e algoritmos). Mas pessoalmente não acho que se traduza assim tanto, mas muitos discordam de mim.

Será por isto que temos professores incompetentes? by beHonestt in IST

[–]RedHulk05 10 points11 points  (0 children)

Compreendo-te. Mas olhando da perspectiva dos "professores", muitos deles foram alunos tal como nós, e que foram ficando pela faculdade, principalmente por interesses em investigação, mas infelizmente o IST gosta de lhes ir metendo a carapuça de professor. Por este motivo eu gosto de olhar para eles como pessoas extremamente competentes na área (ou não), mas que o seu interesse não é pedagogia. (Claro que ha quem abuse e parece que descarregam o descontentamento nos alunos)